diff --git a/docs.json b/docs.json index 1d5a3dda05..d7c8aed106 100644 --- a/docs.json +++ b/docs.json @@ -703,6 +703,7 @@ { "group": "Tencent", "pages": [ + "tutorials/partner-nodes/tencent/hy-4", "tutorials/partner-nodes/tencent/hy-image-3-5" ] }, @@ -4832,6 +4833,7 @@ { "group": "Tencent", "pages": [ + "zh/tutorials/partner-nodes/tencent/hy-4", "zh/tutorials/partner-nodes/tencent/hy-image-3-5" ] }, @@ -8925,6 +8927,7 @@ { "group": "Tencent", "pages": [ + "ja/tutorials/partner-nodes/tencent/hy-4", "ja/tutorials/partner-nodes/tencent/hy-image-3-5" ] }, @@ -13035,6 +13038,7 @@ { "group": "Tencent", "pages": [ + "ko/tutorials/partner-nodes/tencent/hy-4", "ko/tutorials/partner-nodes/tencent/hy-image-3-5" ] }, @@ -17072,6 +17076,7 @@ { "group": "Tencent", "pages": [ + "es/tutorials/partner-nodes/tencent/hy-4", "es/tutorials/partner-nodes/tencent/hy-image-3-5" ] }, diff --git a/es/tutorials/partner-nodes/pricing.mdx b/es/tutorials/partner-nodes/pricing.mdx index aa1a071a6f..f19db45080 100644 --- a/es/tutorials/partner-nodes/pricing.mdx +++ b/es/tutorials/partner-nodes/pricing.mdx @@ -3,7 +3,7 @@ title: "Precios de los Nodos asociados" description: "Precios en créditos de los Nodos asociados de cada proveedor (Anthropic, OpenAI, Kling, Luma), por modelo, tipo de token y tipo de generación." sidebarTitle: "Precios" mode: "wide" -translationSourceHash: 88ee7601 +translationSourceHash: dad5182f translationFrom: tutorials/partner-nodes/pricing.mdx translationBlockHashes: "_intro": a779f1c1 @@ -42,7 +42,7 @@ translationBlockHashes: "Runway": bd14d7ff "Sonilo": 48b9c581 "sync.so": 590402a9 - "Tencent": 3638a7e0 + "Tencent": cbe22aa6 "Topaz": 5d08cf76 "Tripo": 842e861e "Pruna": f1b6a267 @@ -1386,6 +1386,14 @@ Créditos totales = **(créditos / seg) × `duration`**. ## Tencent +### Texto + +Las tarifas de la insignia son **por 1K tokens**; la tabla es **por 1M tokens**. Las imágenes opcionales suman tokens de entrada a la tarifa de entrada. + +| Modelo | Créditos de entrada / 1M | Créditos de salida / 1M | +| :---- | -----------------: | :------------------ | +| hy4 | 251.6 | 754.6 | + ### Imagen **HY Image 3.5 Preview** cobra una tarifa por cada imagen generada. Las salidas `1K` y `2K`, y los tamaños `custom` de hasta 4.19 megapíxeles, cuestan la tarifa base. El modelo renderiza la salida `4K` a 2K y luego le aplica upscale; cuesta más, al igual que un tamaño `custom` superior a 4.19 megapíxeles. diff --git a/es/tutorials/partner-nodes/tencent/hy-4.mdx b/es/tutorials/partner-nodes/tencent/hy-4.mdx new file mode 100644 index 0000000000..ec093d62b1 --- /dev/null +++ b/es/tutorials/partner-nodes/tencent/hy-4.mdx @@ -0,0 +1,74 @@ +--- +title: "Tencent HY4 en ComfyUI: imagen a prompt y análisis de imágenes" +description: "Ejecuta Tencent HY4 en ComfyUI para convertir una imagen de referencia en un prompt, una descripción o un desglose de gráficos, con control de tokens." +sidebarTitle: "HY4" +translationSourceHash: c3364e65 +translationFrom: tutorials/partner-nodes/tencent/hy-4.mdx +translationBlockHashes: + "_intro": d33dd548 + "What the Tencent HY node is good at": 385d0037 + "Tencent HY4 image to prompt workflow": 6a4f6d35 + "Get started": 43365e00 +--- +import ReqHint from "/snippets/es/tutorials/partner-nodes/req-hint.mdx"; +import UpdateReminder from "/snippets/es/tutorials/update-reminder.mdx"; + +**Tencent HY4** es el modelo de lenguaje grande de Tencent, disponible en ComfyUI a través del nodo socio `Tencent HY`. El nodo recibe un prompt de texto y hasta 20 imágenes, y devuelve texto: un prompt artístico escrito a partir de una imagen de referencia, una descripción de imagen, un desglose de gráfico o cualquier otra respuesta que pidas. + +Hy4 se lanzó el 4 de noviembre de 2026. Es la primera generación Hy con comprensión visual, y Tencent reporta mejoras sobre Hy4 preview en el seguimiento de instrucciones, la comprensión de contexto largo y las tareas agénticas de horizonte largo. El nodo llama al modelo a través de Comfy API, así que no se requieren descargas de modelos ni una GPU local. + +La plantilla que se cubre aquí es el ejemplo image to prompt: lee una foto y escribe un prompt separado por comas que puedes pegar en un modelo de imagen. + +## Para qué sirve el nodo Tencent HY + +- **De imagen a prompt**: escribe un prompt estructurado que cubre sujeto, composición, cámara, iluminación, color, textura y estilo +- **Comprensión de imágenes**: descripciones, desglose de gráficos y diagramas, y revisión de detalles finos en fotos, capturas de pantalla y documentos +- **Varias imágenes por solicitud**: hasta 20 imágenes en una sola llamada, donde cada imagen de un lote cuenta una vez +- **Control por instrucciones**: `system_prompt` mantiene un rol permanente, mientras que `prompt` lleva la tarea de esta ejecución +- **Alternar el razonamiento**: `reasoning` hace que el modelo piense antes de responder, para las tareas que lo necesitan +- **Respuestas largas**: `max_tokens` acepta hasta 64000 tokens + + + + +## Flujo de trabajo de Tencent HY4 de imagen a prompt + +La plantilla carga una foto de referencia, solicita a Tencent HY un prompt de arte estándar y, si quieres, puede guardar el prompt y la respuesta junto con la ejecución. + +Vista previa del flujo de trabajo de Tencent HY4 de imagen a prompt + + + {/* + Open in Comfy Cloud + */} + + Descarga el JSON o busca "Tencent: Hy4" en la Biblioteca de plantillas + + + +**Materiales de entrada** + +Sube este archivo al nodo `LoadImage` correspondiente: + + + + Nodo `LoadImage` · `blue_poppies_field.png` + + + +### Pasos para ejecutar el flujo de trabajo + +Este flujo de trabajo muestra cómo generar una respuesta con Tencent HY y, si lo necesitas, guardar esa conversación en ComfyUI. Carga una imagen de referencia, ejecuta el grafo y lee la respuesta en `Preview Any`. Si quieres una copia guardada, mantén `Save Text` para escribir el prompt y la respuesta en `output/Hy4/`; si no necesitas guardar, omite o elimina ese nodo. + +### Consejos para los prompts + +- Indica el formato de salida. La línea de la plantilla `Only output positive prompt, no extra explanations` es lo que mantiene la respuesta lista para pegar +- Cuando conectes varias imágenes, refiérete a ellas en orden (`the first image`, `the second image`) para que los detalles correspondan a la imagen correcta +- Coloca las instrucciones repetidas en `system_prompt` y deja `prompt` para la tarea, por ejemplo `You write photography prompts for a stock library` +- La `seed` solo decide si el nodo se vuelve a ejecutar. Las respuestas siguen variando entre ejecuciones + +## Empezar + +Actualiza ComfyUI, busca `Tencent: Hy4` en la Biblioteca de plantillas y abre el flujo de trabajo de imagen a prompt. + +Tencent HY4 factura según el consumo de tokens de la API. Consulta la [tabla de precios](/es/tutorials/partner-nodes/pricing) para conocer las tarifas de Hy4. diff --git a/ja/tutorials/partner-nodes/pricing.mdx b/ja/tutorials/partner-nodes/pricing.mdx index 5f46d96947..08b07e8736 100644 --- a/ja/tutorials/partner-nodes/pricing.mdx +++ b/ja/tutorials/partner-nodes/pricing.mdx @@ -3,7 +3,7 @@ title: "Partner Node 価格" description: "Anthropic、OpenAI、Kling、Luma など全プロバイダーの Partner Node クレジット価格。モデル、トークン種別、生成種別ごとに分類。" sidebarTitle: "料金" mode: "wide" -translationSourceHash: 88ee7601 +translationSourceHash: dad5182f translationFrom: tutorials/partner-nodes/pricing.mdx translationBlockHashes: "_intro": a779f1c1 @@ -42,7 +42,7 @@ translationBlockHashes: "Runway": bd14d7ff "Sonilo": 48b9c581 "sync.so": 590402a9 - "Tencent": 3638a7e0 + "Tencent": cbe22aa6 "Topaz": 5d08cf76 "Tripo": 842e861e "Pruna": f1b6a267 @@ -1392,6 +1392,14 @@ Text to Music: 合計クレジット = **(クレジット / 秒)× `duration ## Tencent +### テキスト + +バッジレートは **1Kトークンあたり**。表は **100万トークンあたり**。画像を追加すると入力トークンとして入力レートで加算されます。 + +| モデル | 入力クレジット / 1M | 出力クレジット / 1M | +| :---- | -----------------: | :------------------ | +| hy4 | 251.6 | 754.6 | + ### 画像 **HY Image 3.5 Preview** は生成した画像 1 枚につき 1 つのレートで課金されます。`1K`、`2K` 出力、および 4.19 メガピクセル以下の `custom` サイズは基本レートです。`4K` 出力は 2K でレンダリングした後にモデルがアップスケールするためレートが高くなり、4.19 メガピクセルを超える `custom` サイズも同じく高いレートになります。 diff --git a/ja/tutorials/partner-nodes/tencent/hy-4.mdx b/ja/tutorials/partner-nodes/tencent/hy-4.mdx new file mode 100644 index 0000000000..df09df6b74 --- /dev/null +++ b/ja/tutorials/partner-nodes/tencent/hy-4.mdx @@ -0,0 +1,74 @@ +--- +title: "Tencent HY4: ComfyUI 画像からプロンプト生成と画像分析" +description: "ComfyUI で Tencent HY4 を実行し、参照画像をアートプロンプト、キャプション、チャートの内訳に変換できます。推論、複数画像、トークン制御にも対応しています。" +sidebarTitle: "HY4" +translationSourceHash: c3364e65 +translationFrom: tutorials/partner-nodes/tencent/hy-4.mdx +translationBlockHashes: + "_intro": d33dd548 + "What the Tencent HY node is good at": 385d0037 + "Tencent HY4 image to prompt workflow": 6a4f6d35 + "Get started": 43365e00 +--- +import ReqHint from "/snippets/ja/tutorials/partner-nodes/req-hint.mdx"; +import UpdateReminder from "/snippets/ja/tutorials/update-reminder.mdx"; + +**Tencent HY4** は Tencent の大規模言語モデルで、ComfyUI では `Tencent HY` パートナーノードを通じて利用できます。このノードはテキストプロンプトと最大 20 枚の画像を受け取り、テキストを返します。参照画像から作成したアートプロンプト、キャプション、チャートの内訳、その他依頼した任意の回答などです。 + +Hy4 は 2026 年 11 月 4 日にリリースされました。視覚的理解を備えた初の Hy 世代であり、Tencent によれば Hy4 プレビューと比較して、指示への追従性、長文コンテキストの理解、長期的なエージェントタスクにおいて改善が見られます。このノードは Comfy API を通じてモデルを呼び出すため、モデルのダウンロードやローカル GPU は必須ではありません。 + +ここで扱うテンプレートは画像からプロンプトへの変換例です。写真を読み取り、画像モデルに貼り付けられるカンマ区切りのプロンプトを生成します。 + +## Tencent HY ノードが得意なこと + +- **画像からプロンプト**: 被写体、構図、カメラ、ライティング、色、質感、スタイルを網羅する構造化プロンプトを生成します +- **画像理解**: 写真、スクリーンショット、ドキュメントに対するキャプション、チャートや図の分解、細部の確認 +- **1リクエストで複数画像**: 1回の呼び出しで最大20枚の画像を処理でき、バッチ内の各画像は1回としてカウントされます +- **指示の制御**: `system_prompt` は常設の役割を保持し、`prompt` は今回の実行におけるタスクを担います +- **推論の切り替え**: `reasoning` を有効にすると、必要なタスクでモデルが回答前に思考します +- **長い回答**: `max_tokens` は最大64000トークンまで受け付けます + + + + +## Tencent HY4 画像からプロンプトへのワークフロー + +テンプレートは参照写真を読み込み、Tencent HY にスタンダードなアートプロンプトを要求し、必要に応じてプロンプトと回答を実行と一緒に保存できます。 + +Tencent HY4 image to prompt workflow preview + + + {/* + Open in Comfy Cloud + */} + + JSON をダウンロードするか、テンプレートライブラリで "Tencent: Hy4" を検索してください + + + +**入力素材** + +このファイルを対応する `LoadImage` ノードにアップロードしてください: + + + + `LoadImage` ノード · `blue_poppies_field.png` + + + +### ワークフローを実行する手順 + +このワークフローは、Tencent HY で返信を生成し、必要に応じてその会話履歴を ComfyUI に保存する方法を示します。参照画像を読み込んでグラフを実行し、`Preview Any` で回答を確認してください。保存が必要なら `Save Text` を残すとプロンプトと回答が `output/Hy4/` に書き出されます。不要ならそのノードをスキップまたは削除してください。 + +### プロンプト作成のヒント + +- 出力形式を明示してください。テンプレートの `Only output positive prompt, no extra explanations` という行が、回答をそのまま貼り付けられる状態に保つ役割を果たします +- 複数の画像を接続する場合は、順番に言及してください(`the first image`、`the second image`)。そうすることで詳細が正しい画像に紐づきます +- 繰り返し使う指示は `system_prompt` に置き、`prompt` はタスク用に残してください。例えば `You write photography prompts for a stock library` +- `seed` はノードを再実行するかどうかだけを決めます。回答は実行ごとに変わります + +## はじめる + +ComfyUI を更新し、テンプレートライブラリで `Tencent: Hy4` を検索して、画像からプロンプトを生成するワークフローを開きます。 + +Tencent HY4はAPIのトークン使用量に基づいて課金されます。Hy4の料金については[料金表](/ja/tutorials/partner-nodes/pricing)をご覧ください。 diff --git a/ko/tutorials/partner-nodes/pricing.mdx b/ko/tutorials/partner-nodes/pricing.mdx index 04478241f5..35c58b2bd4 100644 --- a/ko/tutorials/partner-nodes/pricing.mdx +++ b/ko/tutorials/partner-nodes/pricing.mdx @@ -3,7 +3,7 @@ title: "Partner Node 가격" description: "Anthropic, OpenAI, Kling, Luma 등 모든 제공업체의 Partner Node 크레딧 가격을 모델, 토큰 유형, 생성 유형별로 구분합니다." sidebarTitle: "가격 정책" mode: "wide" -translationSourceHash: 88ee7601 +translationSourceHash: dad5182f translationFrom: tutorials/partner-nodes/pricing.mdx translationBlockHashes: "_intro": a779f1c1 @@ -42,7 +42,7 @@ translationBlockHashes: "Runway": bd14d7ff "Sonilo": 48b9c581 "sync.so": 590402a9 - "Tencent": 3638a7e0 + "Tencent": cbe22aa6 "Topaz": 5d08cf76 "Tripo": 842e861e "Pruna": f1b6a267 @@ -1390,6 +1390,14 @@ Sonilo 텍스트로 음악 생성: 총 크레딧 = **(크레딧 / 초) × `durat ## Tencent +### 텍스트 + +배지 요금은 **1K 토큰당**이며, 표는 **1M 토큰당**입니다. 이미지를 추가하면 입력 요금으로 입력 토큰에 합산됩니다. + +| 모델 | 입력 크레딧 / 1M | 출력 크레딧 / 1M | +| :---- | -----------------: | :------------------ | +| hy4 | 251.6 | 754.6 | + ### 이미지 **HY Image 3.5 Preview**는 생성된 이미지 한 장당 하나의 요금으로 청구됩니다. `1K`, `2K` 출력과 4.19 메가픽셀 이하의 `custom` 크기는 기본 요금입니다. `4K` 출력은 2K로 렌더링한 뒤 모델이 업스케일하므로 요금이 더 높고, 4.19 메가픽셀을 초과하는 `custom` 크기도 같은 높은 요금이 적용됩니다. diff --git a/ko/tutorials/partner-nodes/tencent/hy-4.mdx b/ko/tutorials/partner-nodes/tencent/hy-4.mdx new file mode 100644 index 0000000000..55b011aa17 --- /dev/null +++ b/ko/tutorials/partner-nodes/tencent/hy-4.mdx @@ -0,0 +1,74 @@ +--- +title: "Tencent HY4: ComfyUI 이미지에서 프롬프트 생성 및 이미지 분석" +description: "ComfyUI에서 Tencent HY4를 실행하여 참조 이미지를 아트 프롬프트, 캡션 또는 차트 분석으로 바꾸고, 추론, 다중 이미지, 토큰 제어를 활용하세요." +sidebarTitle: "HY4" +translationSourceHash: c3364e65 +translationFrom: tutorials/partner-nodes/tencent/hy-4.mdx +translationBlockHashes: + "_intro": d33dd548 + "What the Tencent HY node is good at": 385d0037 + "Tencent HY4 image to prompt workflow": 6a4f6d35 + "Get started": 43365e00 +--- +import ReqHint from "/snippets/ko/tutorials/partner-nodes/req-hint.mdx"; +import UpdateReminder from "/snippets/ko/tutorials/update-reminder.mdx"; + +**Tencent HY4**는 Tencent의 대규모 언어 모델로, ComfyUI에서 `Tencent HY` 파트너 노드를 통해 사용할 수 있습니다. 이 노드는 텍스트 프롬프트와 최대 20개의 이미지를 입력받아 텍스트를 반환합니다. 참조 이미지를 바탕으로 작성된 아트 프롬프트, 캡션, 차트 분석, 또는 요청하는 그 밖의 어떤 답변이든 가능합니다. + +Hy4는 2026년 11월 4일에 출시되었습니다. 시각적 이해를 갖춘 최초의 Hy 세대이며, Tencent는 Hy4 preview에 비해 지시 따르기, 긴 문맥 이해, 장기 과제 에이전트 작업에서 개선되었다고 보고합니다. 이 노드는 Comfy API를 통해 모델을 호출하므로 모델 다운로드도, 로컬 GPU도 필요하지 않습니다. + +여기에서 다루는 템플릿은 이미지에서 프롬프트를 생성하는 예제입니다. 사진을 읽고 이미지 모델에 붙여넣을 수 있는 쉼표로 구분된 프롬프트를 작성합니다. + +## Tencent HY 노드의 강점 + +- **이미지 → 프롬프트**: 피사체, 구도, 카메라, 조명, 색상, 질감, 스타일을 아우르는 구조화된 프롬프트를 작성합니다 +- **이미지 이해**: 사진, 스크린샷, 문서에 대한 캡션, 차트 및 다이어그램 분석, 세부 사항 확인 +- **요청당 여러 이미지**: 한 번의 호출로 최대 20개의 이미지를 처리하며, 배치의 각 이미지는 한 번씩 집계됩니다 +- **지시 제어**: `system_prompt`는 상시 역할을 담당하고, `prompt`는 이번 실행의 작업을 전달합니다 +- **추론 토글**: `reasoning`은 모델이 답변하기 전에 사고하도록 하며, 사고가 필요한 작업에 사용합니다 +- **긴 답변**: `max_tokens`는 최대 64000 토큰을 허용합니다 + + + + +## Tencent HY4 이미지-프롬프트 워크플로 + +이 템플릿은 참조 사진을 불러와 Tencent HY에 표준 아트 프롬프트를 요청하고, 필요하면 프롬프트와 답변을 실행 결과와 함께 저장할 수 있습니다. + +Tencent HY4 이미지-프롬프트 워크플로 미리보기 + + + {/* + Open in Comfy Cloud + */} + + JSON 다운로드 또는 템플릿 라이브러리에서 "Tencent: Hy4" 검색 + + + +**입력 자료** + +이 파일을 해당 `LoadImage` 노드에 업로드하세요: + + + + `LoadImage` 노드 · `blue_poppies_field.png` + + + +### 워크플로 실행 단계 + +이 워크플로는 Tencent HY로 응답을 생성하고, 필요하면 그 대화 기록을 ComfyUI에 저장하는 방법을 보여 줍니다. 참조 이미지를 불러와 그래프를 실행한 뒤 `Preview Any`에서 답변을 확인하세요. 저장이 필요하면 `Save Text`를 유지해 `output/Hy4/`에 프롬프트와 답변을 기록하고, 필요 없으면 해당 노드를 건너뛰거나 제거하세요. + +### 프롬프트 작성 팁 + +- 출력 형식을 명시하세요. 템플릿의 `Only output positive prompt, no extra explanations` 문구가 답변을 바로 붙여넣을 수 있는 형태로 유지해 줍니다 +- 여러 이미지를 연결할 때는 순서대로 언급하세요 (`the first image`, `the second image`). 그래야 세부 내용이 올바른 이미지에 적용됩니다 +- 반복되는 지시는 `system_prompt`에 넣고 `prompt`는 작업용으로 남겨 두세요. 예: `You write photography prompts for a stock library` +- `seed`는 노드의 재실행 여부만 결정합니다. 답변은 실행할 때마다 여전히 달라집니다 + +## 시작하기 + +ComfyUI를 업데이트하고 Template Library에서 `Tencent: Hy4`를 검색한 뒤, 이미지를 프롬프트로 변환하는 워크플로를 여세요. + +Tencent HY4는 API 토큰 사용량을 기준으로 과금됩니다. Hy4 요금은 [가격 표](/ko/tutorials/partner-nodes/pricing)를 참조하세요. diff --git a/tutorials/partner-nodes/pricing.mdx b/tutorials/partner-nodes/pricing.mdx index 14452effa2..eaa73185a4 100644 --- a/tutorials/partner-nodes/pricing.mdx +++ b/tutorials/partner-nodes/pricing.mdx @@ -1337,6 +1337,14 @@ Total credits = **(credits / sec) × `duration`**. ## Tencent +### Text + +Badge rates are **per 1K tokens**; table is **per 1M tokens**. Optional images add input tokens at the input rate. + +| Model | Input credits / 1M | Output credits / 1M | +| :---- | -----------------: | :------------------ | +| hy4 | 251.6 | 754.6 | + ### Image **HY Image 3.5 Preview** bills one rate per generated image. `1K` and `2K` output, and `custom` sizes up to 4.19 megapixels, cost the base rate. `4K` output is rendered at 2K and then upscaled by the model, and costs more, as does a `custom` size above 4.19 megapixels. diff --git a/tutorials/partner-nodes/tencent/hy-4.mdx b/tutorials/partner-nodes/tencent/hy-4.mdx new file mode 100644 index 0000000000..fa700d384f --- /dev/null +++ b/tutorials/partner-nodes/tencent/hy-4.mdx @@ -0,0 +1,67 @@ +--- +title: "Tencent HY4 in ComfyUI: Image to Prompt and Image Analysis" +description: "Run Tencent HY4 in ComfyUI to turn a reference image into an art prompt, a caption, or a chart breakdown, with reasoning, multi-image, and token controls." +sidebarTitle: "HY4" +--- +import ReqHint from "/snippets/tutorials/partner-nodes/req-hint.mdx"; +import UpdateReminder from "/snippets/tutorials/update-reminder.mdx"; + +**Tencent HY4** is Tencent's large language model, available in ComfyUI through the `Tencent HY` partner node. The node takes a text prompt and up to 20 images and returns text: an art prompt written from a reference image, a caption, a chart breakdown, or any other answer you ask for. + +Hy4 was released on November 4, 2026. It is the first Hy generation with visual understanding, and Tencent reports improvements over Hy4 preview in instruction following, long-context comprehension, and long-horizon agentic tasks. The node calls the model through Comfy API, so no model downloads and no local GPU are required. + +The template covered here is the image to prompt example: it reads a photo and writes a comma-separated prompt that you can paste into an image model. + +## What the Tencent HY node is good at + +- **Image to prompt**: writes a structured prompt covering subject, composition, camera, lighting, color, texture, and style +- **Image understanding**: captions, chart and diagram breakdowns, and fine detail checks on photos, screenshots, and documents +- **Multiple images per request**: up to 20 images in one call, where each image in a batch counts once +- **Instruction control**: `system_prompt` holds a standing role, while `prompt` carries the task for this run +- **Reasoning toggle**: `reasoning` makes the model think before answering, for tasks that need it +- **Long answers**: `max_tokens` accepts up to 64000 tokens + + + + +## Tencent HY4 image to prompt workflow + +The template loads a reference photo, asks Tencent HY for a standard art prompt, and can optionally save the prompt and answer with the run. + +Tencent HY4 image to prompt workflow preview + + + {/* + Open in Comfy Cloud + */} + + Download JSON or search "Tencent: Hy4" in Template Library + + + +**Input materials** + +Upload this file to the matching `LoadImage` node: + + + + `LoadImage` node · `blue_poppies_field.png` + + + +### Steps to run the workflow + +This workflow demonstrates how to generate a reply with Tencent HY and optionally save that conversation into ComfyUI. Load a reference image, run the graph, then read the answer in `Preview Any`. If you want a saved copy, keep `Save Text` so it writes the prompt and answer under `output/Hy4/`; skip or remove that node if you do not need to save. + +### Prompting tips + +- State the output format. The template's `Only output positive prompt, no extra explanations` line is what keeps the answer paste-ready +- When you connect several images, refer to them in order (`the first image`, `the second image`) so details land on the right one +- Put repeated instructions in `system_prompt` and leave `prompt` for the task, for example `You write photography prompts for a stock library` +- `seed` only decides whether the node re-runs. Answers still vary between runs + +## Get started + +Update ComfyUI, search Template Library for `Tencent: Hy4`, and open the image to prompt workflow. + +Tencent HY4 bills from API token usage. See the [pricing table](/tutorials/partner-nodes/pricing) for the Hy4 rates. diff --git a/zh/tutorials/partner-nodes/pricing.mdx b/zh/tutorials/partner-nodes/pricing.mdx index 4f74ab9b92..e619509975 100644 --- a/zh/tutorials/partner-nodes/pricing.mdx +++ b/zh/tutorials/partner-nodes/pricing.mdx @@ -3,7 +3,7 @@ title: "Partner Node 定价" description: "各提供商(包括 Anthropic、OpenAI、Kling 和 Luma)的 Partner Node 积分定价,按模型、Token 类型和生成类型细分。" sidebarTitle: "定价" mode: "wide" -translationSourceHash: 88ee7601 +translationSourceHash: dad5182f translationFrom: tutorials/partner-nodes/pricing.mdx translationBlockHashes: "_intro": a779f1c1 @@ -42,7 +42,7 @@ translationBlockHashes: "Runway": bd14d7ff "Sonilo": 48b9c581 "sync.so": 590402a9 - "Tencent": 3638a7e0 + "Tencent": cbe22aa6 "Topaz": 5d08cf76 "Tripo": 842e861e "Pruna": f1b6a267 @@ -1392,6 +1392,14 @@ Gen4 Turbo:**5s** 或 **10s**。总积分 = **(积分/秒) × `时长`**。 ## 腾讯 +### 文本 + +基于 Token 计费。徽章费率为 **每 1K Token**;表格为 **每 1M Token**。可选图片按输入费率计入输入 Token。 + +| 模型 | 输入积分 / 1M | 输出积分 / 1M | +| :---- | -----------------: | :------------------ | +| hy4 | 251.6 | 754.6 | + ### 图像 **HY Image 3.5 Preview** 按每张生成的图像计费。`1K`、`2K` 输出以及不超过 419 万像素的 `custom` 尺寸按基础费率计费。`4K` 输出会先以 2K 渲染,再由模型放大,因此费率更高;超过 419 万像素的 `custom` 尺寸同样按较高费率计费。 diff --git a/zh/tutorials/partner-nodes/tencent/hy-4.mdx b/zh/tutorials/partner-nodes/tencent/hy-4.mdx new file mode 100644 index 0000000000..7ec6aaf7f1 --- /dev/null +++ b/zh/tutorials/partner-nodes/tencent/hy-4.mdx @@ -0,0 +1,74 @@ +--- +title: "腾讯 HY4:ComfyUI 图像转提示词与图像分析" +description: "在 ComfyUI 中运行腾讯 HY4,将参考图像转化为艺术提示词、描述或图表解析,并支持推理、多图像与 token 控制。" +sidebarTitle: "HY4" +translationSourceHash: c3364e65 +translationFrom: tutorials/partner-nodes/tencent/hy-4.mdx +translationBlockHashes: + "_intro": d33dd548 + "What the Tencent HY node is good at": 385d0037 + "Tencent HY4 image to prompt workflow": 6a4f6d35 + "Get started": 43365e00 +--- +import ReqHint from "/snippets/zh/tutorials/partner-nodes/req-hint.mdx"; +import UpdateReminder from "/snippets/zh/tutorials/update-reminder.mdx"; + +**Tencent HY4** 是腾讯的大语言模型,在 ComfyUI 中可通过 `Tencent HY` 合作伙伴节点使用。该节点接收一段文本提示词和最多 20 张图像并返回文本:根据参考图像撰写的美术提示词、图像描述、图表拆解,或你要求的任何其他答案。 + +Hy4 发布于 2026 年 11 月 4 日。它是首个具备视觉理解能力的 Hy 代际模型,腾讯表示其在指令遵循、长上下文理解和长程 agentic 任务方面相较 Hy4 预览版有所提升。该节点通过 Comfy API 调用模型,因此无需下载模型,也无需本地 GPU。 + +本文介绍的模板是图像转提示词示例:它读取一张照片,并写出以逗号分隔的提示词,你可以将其粘贴到图像模型中。 + +## Tencent HY 节点擅长什么 + +- **图像转提示词**:编写结构化提示词,涵盖主体、构图、相机、光照、颜色、纹理与风格 +- **图像理解**:生成描述文字,拆解图表与示意图,并对照片、截图和文档进行精细细节核对 +- **单次请求多张图像**:一次调用最多可传入 20 张图像,批处理中的每张图像各计一次 +- **指令控制**:`system_prompt` 承载常驻角色,`prompt` 承载本次运行的任务 +- **推理开关**:`reasoning` 让模型在回答前先思考,适用于需要思考的任务 +- **长回答**:`max_tokens` 最高可接受 64000 个 token + + + + +## 腾讯 HY4 图像转提示词工作流 + +该模板会加载一张参考照片,向腾讯 HY 请求一段标准的艺术提示词,并可选择把提示词与回答随本次运行一起保存。 + +腾讯 HY4 图像转提示词工作流预览 + + + {/* + 在 Comfy Cloud 中打开 + */} + + 下载 JSON,或在模板库中搜索 "Tencent: Hy4" + + + +**输入素材** + +将此文件上传到对应的 `LoadImage` 节点: + + + + `LoadImage` 节点 · `blue_poppies_field.png` + + + +### 运行工作流的步骤 + +这个工作流演示如何用腾讯 HY 生成回复,并可选择把对话历史保存到 ComfyUI 中。加载参考图像并运行工作流后,可在 `Preview Any` 中查看回答。若需要保存,保留 `Save Text`,它会把提示词和回答写入 `output/Hy4/`;不需要保存时可跳过或移除该节点。 + +### 提示词技巧 + +- 明确说明输出格式。模板中的 `Only output positive prompt, no extra explanations` 这一行正是让回答可以直接粘贴的关键 +- 当你连接多张图像时,请按顺序引用它们(`the first image`、`the second image`),这样细节才能落到正确的图像上 +- 把重复出现的指令放入 `system_prompt`,把 `prompt` 留给具体任务,例如 `You write photography prompts for a stock library` +- `seed` 只决定节点是否重新运行。回答在不同运行之间仍会有所变化 + +## 开始使用 + +更新 ComfyUI,在模板库中搜索 `Tencent: Hy4`,然后打开图像转提示词工作流即可。 + +Tencent HY4 按 API token 用量计费。Hy4 的费率请参阅[价格表](/zh/tutorials/partner-nodes/pricing)。