ComfyUI > Nodes > Comfy_HunyuanImage3 > Hunyuan Prompt Rewriter (DeepSeek)

ComfyUI Node: Hunyuan Prompt Rewriter (DeepSeek)

Class Name

HunyuanPromptRewriter

Category
HunyuanImage3/Prompting
Author
EricRollei (Account age: 1544days)
Extension
Comfy_HunyuanImage3
Latest Updated
2026-02-21
Github Stars
0.05K

How to Install Comfy_HunyuanImage3

Install this extension via the ComfyUI Manager by searching for Comfy_HunyuanImage3
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfy_HunyuanImage3 in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Hunyuan Prompt Rewriter (DeepSeek) Description

Enhances text prompts for creative needs using advanced language models via API integration.

Hunyuan Prompt Rewriter (DeepSeek):

The HunyuanPromptRewriter is a specialized node designed to enhance and transform text prompts using advanced language models, specifically through the DeepSeek or compatible APIs. Its primary purpose is to refine and rewrite prompts to better suit creative and artistic needs, leveraging the capabilities of the HunyuanImage-3 system. By utilizing this node, you can achieve more nuanced and contextually appropriate prompts, which can significantly enhance the quality and relevance of AI-generated content. The node operates by interfacing with a language model API, applying a specified rewrite style to the input prompt, and returning a refined version. This process is particularly beneficial for AI artists seeking to explore different narrative styles or improve the clarity and impact of their prompts.

Hunyuan Prompt Rewriter (DeepSeek) Input Parameters:

prompt

The prompt parameter is a string input that represents the initial text you wish to refine or transform. It serves as the foundation for the rewriting process, and its content will be modified based on the selected rewrite style. This parameter supports multiline text, allowing for complex and detailed prompts. The default value is "A serene landscape," but you can customize it to fit your specific creative needs.

rewrite_style

The rewrite_style parameter determines the approach used to transform the input prompt. It offers three options: "en_recaption," "en_think_recaption," and "none." Each style applies a different method of rewriting, with "en_recaption" focusing on enhancing descriptive elements, "en_think_recaption" adding a layer of introspective or thoughtful context, and "none" leaving the prompt unchanged. The default style is "en_recaption," providing a balanced enhancement suitable for most scenarios.

manual_seed

The manual_seed parameter is an optional integer that allows you to set a specific seed for the rewriting process, ensuring reproducibility of results. This can be particularly useful when you want to achieve consistent outputs across multiple runs. The seed value ranges from 0 to 0xffffffffffffffff, with a default of 0, which means no specific seed is applied.

Hunyuan Prompt Rewriter (DeepSeek) Output Parameters:

rewritten_prompt

The rewritten_prompt is the output string that contains the refined version of the input prompt. This output reflects the modifications made by the selected rewrite style, offering a more polished and contextually enriched prompt. The rewritten prompt is crucial for AI artists looking to enhance the narrative quality or stylistic elements of their text inputs, providing a foundation for generating more compelling AI-driven content.

Hunyuan Prompt Rewriter (DeepSeek) Usage Tips:

  • Ensure that your API key is correctly configured in the environment or configuration file to enable the prompt rewriting feature effectively.
  • Experiment with different rewrite_style options to discover which style best suits your creative objectives, as each style offers unique enhancements to the input prompt.
  • Utilize the manual_seed parameter to maintain consistency in your results, especially when testing different prompts or styles.

Hunyuan Prompt Rewriter (DeepSeek) Common Errors and Solutions:

Prompt rewriting failed: <error_message>

  • Explanation: This error occurs when the API call to rewrite the prompt fails, possibly due to network issues, incorrect API configuration, or server-side problems.
  • Solution: Verify your internet connection, ensure that the API URL and key are correctly set in the configuration, and check if the API service is operational.

No API key found in config or environment. Returning original prompt.

  • Explanation: This warning indicates that the node could not find a valid API key, which is necessary for accessing the rewriting service.
  • Solution: Add a valid API key to your configuration file or environment variables to enable the prompt rewriting functionality.

No <recaption> tags found in response, using full content

  • Explanation: This warning suggests that the expected <recaption> tags were not present in the API response, which may affect the accuracy of the rewritten prompt.
  • Solution: Review the API response format and ensure it aligns with the expected structure. If the issue persists, contact the API provider for support.

Hunyuan Prompt Rewriter (DeepSeek) Related Nodes

Go back to the extension to check out more related nodes.
Comfy_HunyuanImage3
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Hunyuan Prompt Rewriter (DeepSeek)