{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "janishar-qwen-image-2-1-studio--expand-short-prompts-with-enhancer",
 "repo": "janishar/qwen-image-2.1-studio",
 "repo_url": "https://github.com/janishar/qwen-image-2.1-studio",
 "repo_slug": "janishar-qwen-image-2-1-studio",
 "title": "Rewrite a short prompt with the 9B enhancer before rendering",
 "page_title": "How to rewrite a short prompt with the 9B enhancer before rendering with Qwen Image 2 1 Studio",
 "summary": "Let the PE enhancer expand a rough idea and pick the aspect ratio before the image model runs.",
 "who": "A creator with a brief one-line idea who wants a more detailed prompt without writing it by hand.",
 "problem": "A short prompt often gives a generic image, and writing a detailed prompt takes time for each render.",
 "outcome": "A render made from an enhanced prompt, with the ratio chosen by the enhancer unless you set one.",
 "steps": [
  "Run `uv sync` and download the image model.",
  "Download the text enhancer with `hf download Qwen/Qwen-Image-2.1-PE-T2I --local-dir ~/models/Qwen-Image-2.1-PE-T2I`.",
  "Run `export QWEN_IMAGE_21_PE_T2I_PATH=~/models/Qwen-Image-2.1-PE-T2I` and `export QWEN_IMAGE_21_PATH=~/models/Qwen-Image-2.1`.",
  "Run `uv run qwen-image-2-1 \"a corgi playing guitar in the rain\" --enhance` and compare the render with a run that has no --enhance."
 ],
 "agent_prompt": "In the qwen-image-2.1-studio repo, export QWEN_IMAGE_21_PE_T2I_PATH and QWEN_IMAGE_21_PATH to local model directories, then run `uv run qwen-image-2-1 \"<short prompt>\" --enhance`. Expect output/output.png rendered from a rewritten prompt. Verify the image shows more detail than the short prompt alone.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "3 hours",
 "basis": "readme",
 "caveat": "The enhancer weights add about 18 GB of disk, and the README says --think can make a render slower by minutes.",
 "category": "Content",
 "tags": [
  "Content"
 ],
 "lang": "python",
 "requirements": [
  "A Mac with Apple Silicon and 64 GB of unified memory, the setup the README says it is built and tested on",
  "uv and git installed",
  "Roughly 30 GB of disk for the image model weights, plus about 18 GB per enhancer if you use --enhance",
  "Access to the Hugging Face Hub for the weight downloads"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/janishar-qwen-image-2-1-studio/expand-short-prompts-with-enhancer/",
 "md": "https://dedupedai.com/use-cases/janishar-qwen-image-2-1-studio/expand-short-prompts-with-enhancer/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/janishar-qwen-image-2-1-studio--expand-short-prompts-with-enhancer.json",
 "api_version": "v1"
}
