ComfyUI > Nodes > Comfyui-QwenPromptRewriter

ComfyUI Extension: Comfyui-QwenPromptRewriter

Repo Name

ComfyUI-QwenPromptRewriter

Author
lihaoyun6 (Account age: 3650 days)
Nodes
View all nodes(4)
Latest Updated
2025-10-07
Github Stars
0.07K

How to Install Comfyui-QwenPromptRewriter

Install this extension via the ComfyUI Manager by searching for Comfyui-QwenPromptRewriter
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyui-QwenPromptRewriter 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

Comfyui-QwenPromptRewriter Description

Comfyui-QwenPromptRewriter enhances prompts by utilizing the Qwen LLM, aligning them with the behavior and capabilities of the Qwen-Image/Edit online version for improved performance.

ComfyUI-QwenPromptRewriter Introduction

ComfyUI-QwenPromptRewriter is an innovative extension designed to enhance your AI art creation process by refining and rewriting prompts. This tool leverages the capabilities of the Qwen large language model to align your prompts with the effects and abilities of the Qwen-Image/Edit online version. By using this extension, AI artists can achieve more precise and effective prompts, leading to improved artistic outputs. Whether you're looking to refine your creative process or enhance the quality of your AI-generated art, ComfyUI-QwenPromptRewriter offers a streamlined solution to elevate your work.

How ComfyUI-QwenPromptRewriter Works

At its core, ComfyUI-QwenPromptRewriter functions by taking your initial prompts and processing them through the Qwen large language model. Think of it as having a skilled editor who understands the nuances of language and art, helping you craft prompts that are more aligned with your creative vision. The extension uses advanced algorithms to analyze and rewrite your prompts, ensuring they are optimized for the Qwen-Image/Edit models. This process helps in achieving more accurate and desirable results in your AI art projects.

ComfyUI-QwenPromptRewriter Features

  • Prompt Style Selection: You can choose between Qwen-Image_Edit or Qwen-Image based on the model you are using for image generation. This feature ensures that your prompts are tailored to the specific capabilities of the model, enhancing the final output.
  • LLM Model Selection: When using the Qwen-Image-Edit mode, it is recommended to select from the qwen-vl-xxx series models. These models are specifically designed to work with the editing capabilities of the Qwen-Image-Edit, providing more refined and accurate results.
  • Max Retries: This feature allows you to set the maximum number of retries in case of API call failures. It ensures that temporary issues do not disrupt your workflow, providing a more reliable and seamless experience.
  • API Key Management: For secure and efficient use, you can input your Alibaba Cloud API key. It is strongly recommended to store your API key in the api_key.txt file included with the project. This practice not only secures your key but also facilitates safe sharing of workflows without exposing sensitive information.
  • Skip Rewrite Option: If you prefer to use your original prompts without any rewriting, you can enable the skip rewrite option. This feature outputs your prompts directly, giving you full control over the creative process.

Troubleshooting ComfyUI-QwenPromptRewriter

Here are some common issues you might encounter while using ComfyUI-QwenPromptRewriter and how to resolve them:

  • API Call Failures: If you experience repeated API call failures, ensure that your API key is correctly entered in the api_key.txt file. Also, check your internet connection and verify that your Alibaba Cloud account is active and in good standing.
  • Incorrect Model Selection: If the results are not as expected, double-check that you have selected the correct prompt style and LLM model. Using the wrong model can lead to suboptimal results.
  • Prompt Not Rewritten: If your prompt is not being rewritten, ensure that the skip rewrite option is not enabled. This feature bypasses the rewriting process and outputs the original prompt.

Learn More about ComfyUI-QwenPromptRewriter

To further enhance your understanding and use of ComfyUI-QwenPromptRewriter, consider exploring additional resources such as tutorials and community forums. Engaging with other AI artists can provide valuable insights and tips for maximizing the potential of this extension. While specific resources are not listed here, searching for community forums and tutorials related to Qwen models and AI art can be a great starting point for expanding your knowledge and skills.

Comfyui-QwenPromptRewriter Related Nodes

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.