Home/ IMAGE/ PromptEnhancer: Tencent Hunyuan’s Prompt Rewriter for Image Models
IMAGE

PromptEnhancer: Tencent Hunyuan’s Prompt Rewriter for Image Models

Tencent Hunyuan PromptEnhancer rewrites image prompts. Explore model options, setup, memory guidance and its custom license restrictions.

Published Sep 15, 2026 · 3 min read
Laptop text editor, visual reference and notebook for planning video prompts.
TL;DR: PromptEnhancer (CVPR 2026) rewrites rough prompts into structured ones for text-to-image and image editing. 7B and 32B models, GGUF options. License: Tencent Hunyuan Community License.

Image models reward precise prompts, and most people don’t write them. PromptEnhancer is Tencent Hunyuan’s answer: a dedicated model that rewrites a rough prompt into a clearer, structured one while keeping the subject, action, style and layout you asked for. It works for text-to-image prompts and for image-editing instructions.

RepositoryHunyuan-PromptEnhancer/PromptEnhancer
MaintainerTencent Hunyuan
Primary languagePython
GitHub stars3,770 (as of 15 September 2026)
Last push18 August 2026
License statusTencent Hunyuan Community License

What it does

The README describes a prompt-rewriting utility with chain-of-thought rewriting at its core (the method is detailed in the technical report). Its listed features:

  • Two modes: text-to-image prompt enhancement, and image-to-image editing instructions refined with the source image as visual context.
  • Intent preservation across rewriting: subject, action, style, layout and attributes.
  • Several model options: a 7B model, a 32B model, an Img2Img editing model and quantized GGUF versions.

The team has also released a T2I-Keypoints-Eval dataset and evaluation script for measuring how well generated images follow the key points of a prompt.

Who it’s for

  • Builders of image-generation apps who want a prompt pre-processing step in front of their model.
  • Researchers evaluating prompt following in text-to-image systems.

Getting started

Install with pip install -r requirements.txt, or use the provided GGUF install script for quantized models with CUDA. The README recommends starting with PromptEnhancer-7B, downloaded from Hugging Face with huggingface-cli download. Its own sizing table:

ModelDownload sizeMemory (per README)
PromptEnhancer-7B13GB8GB+
PromptEnhancer-32B64GB32GB+
32B-Q8_0 (GGUF)35GB35GB+
32B-Q6_K (GGUF)27GB27GB+
32B-Q4_K_M (GGUF)20GB20GB+

A hosted Gradio demo of the 32B model is linked from the README if you want to try it before downloading anything.

License status

Checked October 17, 2026: The repository publishes the Tencent Hunyuan Community License Agreement. Its territory excludes the EU, UK and South Korea, and it includes use restrictions and additional conditions for very large services. Do not describe this as an unrestricted permissive license. Check the separate terms accompanying each model checkpoint.

Limitations and open questions

  • Adding a 7B–32B language model in front of your image model means extra latency and memory per generation.
  • The README’s memory figures are guidance, not tested minimums across hardware.
  • We have not measured whether rewritten prompts improve results with image models other than Hunyuan’s.

Sources

Related: HunyuanVideo-1.5, Tencent Hunyuan’s open video model · more repo profiles.

This profile was drafted with AI assistance from the project’s public repository and reviewed by The Signal’s editors before publication. See our AI Disclosure.

The Signal newsletter

Keep getting this

One edition a week on open models, local setups and the tools around them.

Read the latest issue

Email delivery opens once the newsletter platform is connected.