DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to render a text prompt to a PNG from the terminal with Qwen Image 2 1 Studio

Turn one text prompt into a local image file on an Apple Silicon Mac with a single command.

Short answer: Clone the repo, then run uv sync inside it; then 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; run uv run qwen-image-2-1 "A neon shop sign that reads QWEN" -m ~/models/Qwen-Image-2.1. All steps.

  • Top pick
  • Content
  • Intermediate
  • 3 hours
  • From the README
  • Any agent

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

  1. Clone the repo, then run uv sync inside it.
  2. 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)
  3. Run uv run qwen-image-2-1 "A neon shop sign that reads QWEN" -m ~/models/Qwen-Image-2.1.
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer