Who it is forA designer or developer on an Apple Silicon Mac who needs a quick image from a written idea and does not want to send the prompt to a hosted service.
The problemRunning a large diffusion model usually means wiring up a Python pipeline by hand, loading weights and handling devices before any image appears.
The outcomeA PNG at output/output.png rendered from the prompt by the local Qwen-Image-2.1 model.
What you need first
- 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
Steps
- Clone the repo, then run
uv syncinside it. - Download the image model with
hf download Qwen/Qwen-Image-2.1 --include "model_index.json" "processor/*" "scheduler/*" "text_encoder/*" "transformer/*" "vae/*" --local-dir ~/models/Qwen-Image-2.1. (inferred, check the README) - Run
uv run qwen-image-2-1 "A neon shop sign that reads QWEN" -m ~/models/Qwen-Image-2.1. - Open output/output.png and check that it matches the prompt.
Prompt for your agent
In the qwen-image-2.1-studio repo, run `uv run qwen-image-2-1 "<prompt>" -m <model-path>` with the prompt set to <prompt> and the model directory set to <model-path>. Expect a PNG at output/output.png. Verify the file exists and the image matches the prompt.
Caveat. The image model is about 30 GB of bf16 weights and the README tests only on macOS Apple Silicon with 64 GB of memory, so other machines may fail or run very slowly.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for janishar/qwen-image-2.1-studio and "Render a text prompt to a PNG from the terminal"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer