Models/Alibaba/Qwen 2.1
LiveAlibaba · Qwen image model2 endpoints

Qwen 2.1 API — Text to Image & Image to Image

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.

🖼️ Qwen 2.1

Text-to-image generation and reference-image editing, with transparent backgrounds and up to 2K resolution2 models
Text to ImageNewFeatured
🖼️ Qwen 2.1

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.

1K / 2K
$0.03–$0.05/image
Try it →
Image to ImageNew
🖼️ Qwen 2.1

Qwen 2.1 Image to Image

Edit and recombine up to 10 reference images from a text prompt, with an optional inpainting mask for precise local edits.

1K / 2K
$0.03–$0.05/image
Try it →

What is the Qwen 2.1 API?

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.

What Qwen 2.1 can do

Photorealistic Generation

Renders realistic scenes, portraits, and product shots with legible on-image typography.

Multi-Image Editing

Combine and edit up to 10 reference images in a single request, in the order the prompt refers to them.

Local Inpainting

Supply a mask to regenerate only the white-marked region of one reference image, leaving the rest untouched.

Transparent Backgrounds

Output a real alpha channel on PNG or WebP for drop-in compositing.

9 Aspect Ratios

From square 1:1 to ultra-wide 21:9/9:21, plus an auto mode that matches the first reference image.

1K / 2K Resolution

Choose the faster 1K tier or 2K for four times the pixels.

How to Call the Qwen 2.1 API

Submit a JSON request with your Muapi API key, save the request ID, and poll the shared result endpoint.

1. Generate an image

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.

2. Edit or recombine images

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.

3. Poll the result

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.

Qwen 2.1 API FAQ

Is the Qwen 2.1 API available on Muapi?

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.

How much does the Qwen 2.1 API cost on Muapi?

Both endpoints are priced at $0.03 per 1K image and $0.05 per 2K image, pay-as-you-go with no subscription required.

How many reference images can Qwen 2.1 Image to Image use?

Between 1 and 10 images per request. More references reduce how much detail each individual one keeps, so stay within 4 when fidelity matters.

Can I generate transparent-background images?

Yes — set background to transparent and use png or webp as the output format; it's not supported with jpeg.

What's the API pattern for Qwen 2.1 on Muapi?

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.

How is Qwen 2.1 different from Qwen 3.0 on Muapi?

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.

Ready for Qwen 2.1?

Create a free Muapi account and start calling Qwen 2.1 Text to Image or Image to Image in minutes — no waitlist.