Qwen 2.1 Text to Image
Generate photorealistic images and clean on-image typography from a text prompt, with transparent backgrounds and up to 2K resolution.
The Qwen 2.1 API gives you programmatic access to Alibaba's Qwen 2.1 image model — text-to-image generation and reference-image editing with transparent backgrounds, 9 aspect ratios, and up to 2K resolution, through one Muapi API key, from $0.03 per image.
Generate photorealistic images and clean on-image typography from a text prompt, with transparent backgrounds and up to 2K resolution.
Edit and recombine up to 10 reference images from a text prompt, with an optional inpainting mask for precise local edits.
The Qwen 2.1 API gives applications programmatic access to Alibaba's Qwen 2.1 image model — text-to-image generation with strong prompt comprehension and legible typography, and reference-image editing that can recombine up to 10 images or apply a masked local edit.
Muapi exposes both Qwen 2.1 endpoints through one REST API. Use the Qwen 2.1 playground or the API directly, and compare it against Qwen 3.0 and every other image model in the catalog.
Renders realistic scenes, portraits, and product shots with legible on-image typography.
Combine and edit up to 10 reference images in a single request, in the order the prompt refers to them.
Supply a mask to regenerate only the white-marked region of one reference image, leaving the rest untouched.
Output a real alpha channel on PNG or WebP for drop-in compositing.
From square 1:1 to ultra-wide 21:9/9:21, plus an auto mode that matches the first reference image.
Choose the faster 1K tier or 2K for four times the pixels.
Submit a JSON request with your Muapi API key, save the request ID, and poll the shared result endpoint.
curl -X POST https://api.muapi.ai/api/v1/qwen2-1-text-to-image \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"A corgi wearing a yellow rain hat sitting on stone steps after the rain, shallow depth of field","aspect_ratio":"16:9","resolution":"1K"}'
# Response: {"request_id":"REQUEST_ID"}Call qwen2-1-text-to-image with a prompt, aspect ratio, and resolution.
curl -X POST https://api.muapi.ai/api/v1/qwen2-1-image-to-image \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"Replace the backpack in the first image with the colour scheme from the second image","images_list":["https://example.com/a.jpg","https://example.com/b.jpg"],"resolution":"1K"}'
# Response: {"request_id":"REQUEST_ID"}Call qwen2-1-image-to-image with a prompt and 1–10 reference image URLs.
curl https://api.muapi.ai/api/v1/predictions/REQUEST_ID/result \ -H "x-api-key: YOUR_API_KEY"
Poll until the task is completed, then read the returned image URL.
Yes. Qwen 2.1 Text to Image and Image to Image are both live on Muapi. Create a free account and API key and call the endpoint directly — no waitlist.
Both endpoints are priced at $0.03 per 1K image and $0.05 per 2K image, pay-as-you-go with no subscription required.
Between 1 and 10 images per request. More references reduce how much detail each individual one keeps, so stay within 4 when fidelity matters.
Yes — set background to transparent and use png or webp as the output format; it's not supported with jpeg.
Same shared pattern as every Muapi model: submit a request with your API key to get a request_id, then poll the predictions endpoint for the result. See the code examples above for a working request.
They're separate Alibaba Qwen generations with their own endpoints and pricing. See the full Qwen Image page to compare Qwen 3.0, Qwen Image 2.0, and the original Qwen Image line.
Create a free Muapi account and start calling Qwen 2.1 Text to Image or Image to Image in minutes — no waitlist.