Qwen Image 2.1 Pro API
Qwen Image 2.1 Pro is Alibaba's professional closed image model for text-to-image generation, prompt-guided editing, and multi-reference composition up to native 2K.
Qwen Image 2.1 Pro is a professional, closed version of Alibaba Qwen team's image model, released on September 20, 2026. It combines text-to-image generation with prompt-guided editing in a single model, and it can compose from up to 10 reference images. Prompts are rewritten by a large language model before generation, and the model supports both a direct mode and an agent mode with optional thinking. It generates natively at 2K resolution with RGBA output, so transparent backgrounds are available without post-processing. The positive prompt accepts 2 to 3000 characters, and three region-specification methods are offered for editing: colored circles drawn on the image, painted mask regions, or an original image plus a separate mask.
The model is aimed at professional visual production: product photography, marketing visuals, multi-image composition such as merging six portraits into a group photo or ten furniture photos into one room scene, transparent-background icons, game UI assets, and localized retouching. Qwen reports that it leads on background structure stability during iterative edits and recommends it for transparent image generation and locked-background editing. On Qwen's own undisclosed Qwen-Image-Bench, it scores 62.36 points, above Qwen-Image-2.1 at 60.28 and Nano Banana 2.0 at 59.82.
Those benchmark figures are self-built and undisclosed, with no table, sub-scores, or scoring method, so they are Qwen's claims rather than independent measurements. User tests report lower generation quality than GPT Image 1.0, with more errors and artifacts, and the official release does not provide per-image generation seconds, VRAM usage, throughput on specific GPUs, or API pricing details.
Updated:
MODEL ID
qwen-image-2.1-pro- Input
- text / image
- Output
- image
Highlights
- Text-to-image and guided editing in one model
- Up to 10 reference images per request
- Native 2K output and RGBA transparency
- Direct and agent modes with optional thinking
- Three region-specification methods
Providers
Compare API prices across providers. Select a provider to view all charges and conditions.
| Uptime | |||
|---|---|---|---|
| $0 | $0.046 |
Historical observations are not a live health check. Missing data does not mean an outage.
Benchmarks
- 62.36
Qwen-Image-Bench
Qwen's own undisclosed benchmark, measured in points
- 60.28
Qwen-Image-Bench
Score for Qwen-Image-2.1, measured in points
- 67.01
Qwen-Image-Bench
Score for GPT Image 2.5 Sunburst, measured in points
- 59.82
Qwen-Image-Bench
Score for Nano Banana 2.0, measured in points
- 55.33
Qwen-Image-Bench
Score for FLUX 2 Max, measured in points
- 60.2
Qwen-Image-Bench
Score for the Qwen-Image-2.1-Pro variant on the same internal benchmark, measured in points
- 1228
Qwen-Image-Bench
Score Qwen claims on the same internal benchmark, measured in points
Scores as published by the model provider.
Quick Start
Submit an image task, poll its status, then save the images. These examples use curl and Python 3 (standard library only).
POST https://openapi.felo.ai/api/v1/images/generations
1Get your API key
Create a key from your Felo API Platform account and set it as an environment variable.
export FELO_API_KEY="YOUR_API_KEY"2Make your first request
Optional values vary by model. This example leaves them unset; confirm supported values in Playground before adding them. Request fields sit alongside model and prompt, without an input wrapper.
curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-o created.json \
-d '{
"prompt": "A studio product photo of a ceramic coffee cup on warm linen, soft morning light",
"model": "qwen-image-2.1-pro"
}'3Poll the task
Submission returns task_id. Poll every 3 seconds while queued or running; stop on succeeded, failed or interrupted. This example stops waiting after 30 minutes. Keep created.json to resume querying the same task instead of submitting again.
python3 - <<'PY'
import json, os, time
from pathlib import Path
from urllib.parse import quote
from urllib.request import Request, urlopen
task = json.loads(Path("created.json").read_text())
task_id = task["task_id"]
url = "https://openapi.felo.ai/api/v1/images/generations/" + quote(task_id, safe="")
headers = {"Authorization": "Bearer " + os.environ["FELO_API_KEY"]}
deadline = time.monotonic() + 1800
while task["status"] in ("queued", "running"):
if time.monotonic() >= deadline:
raise TimeoutError(f"Keep task_id={task_id} to resume polling")
time.sleep(3)
with urlopen(Request(url, headers=headers), timeout=60) as response:
task = json.load(response)
if task.get("task_id") != task_id or task.get("kind") != "image":
raise ValueError("Unexpected task response")
print(task["status"])
if task["status"] != "succeeded":
raise RuntimeError(task.get("error") or task["status"])
if not task.get("outputs"):
raise ValueError("Task succeeded without image outputs")
Path("task.json").write_text(json.dumps(task))
print("Saved task.json")
PY4Download the output
After success, save outputs from task.json. Results may be HTTPS URLs, URL objects or b64_json. Download signed URLs promptly; media downloads do not use your API key.
python3 - <<'PY'
import base64, json
from pathlib import Path
from urllib.request import urlopen
task = json.loads(Path("task.json").read_text())
if task.get("status") != "succeeded" or not task.get("outputs"):
raise ValueError("No completed image outputs")
extensions = {"image/png": ".png", "image/jpeg": ".jpg", "image/webp": ".webp", "image/gif": ".gif", "image/avif": ".avif"}
for index, output in enumerate(task["outputs"], 1):
item = output if isinstance(output, dict) else {}
url = output if isinstance(output, str) else item.get("url") or item.get("unsigned_url")
mime = item.get("media_type") or "image/png"
if url and url.startswith("https://"):
with urlopen(url, timeout=60) as response:
data = response.read()
mime = response.headers.get_content_type()
elif url and url.startswith("data:image/") and ";base64," in url:
header, encoded = url.split(",", 1)
mime = header[5:].split(";", 1)[0]
data = base64.b64decode(encoded, validate=True)
elif item.get("b64_json"):
data = base64.b64decode(item["b64_json"], validate=True)
else:
raise ValueError("Unrecognized image output")
path = Path(f"image-{index}" + extensions.get(mime, ".bin"))
path.write_bytes(data)
print(path)
PYinput_references
For image editing, replace the example URL with your HTTPS image URL or a base64 image data URL. Submit once, then use the same polling and saving steps.
curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-o created.json \
-d '{
"prompt": "Keep the product and framing. Replace the background with a sunlit marble countertop.",
"model": "qwen-image-2.1-pro",
"input_references": [
{
"type": "image_url",
"image_url": {
"url": "https://example.com/product.png"
}
}
]
}'Supported parameters
- n
- seed
- resolution
- aspect_ratio
- input_references
Prefer the full reference?
API reference →Frequently asked questions
What is Qwen Image 2.1 Pro?
Qwen Image 2.1 Pro is a professional, closed version of Alibaba Qwen team's image model, released on September 20, 2026. It combines text-to-image generation with prompt-guided editing in a single model, and it can compose from up to 10 reference images. Prompts are rewritten by a large language model before generation, and the model supports both a direct mode and an agent mode with optional thinking. It generates natively at 2K resolution with RGBA output, so transparent backgrounds are available without post-processing. The positive prompt accepts 2 to 3000 characters, and three region-specification methods are offered for editing: colored circles drawn on the image, painted mask regions, or an original image plus a separate mask. The model is aimed at professional visual production: product photography, marketing visuals, multi-image composition such as merging six portraits into a group photo or ten furniture photos into one room scene, transparent-background icons, game UI assets, and localized retouching. Qwen reports that it leads on background structure stability during iterative edits and recommends it for transparent image generation and locked-background editing. On Qwen's own undisclosed Qwen-Image-Bench, it scores 62.36 points, above Qwen-Image-2.1 at 60.28 and Nano Banana 2.0 at 59.82. Those benchmark figures are self-built and undisclosed, with no table, sub-scores, or scoring method, so they are Qwen's claims rather than independent measurements. User tests report lower generation quality than GPT Image 1.0, with more errors and artifacts, and the official release does not provide per-image generation seconds, VRAM usage, throughput on specific GPUs, or API pricing details.
How is usage billed?
Your bill depends on the provider you use, its prices and your usage. Longer inputs or other conditions may have different prices.
What inputs and outputs does Qwen Image 2.1 Pro support?
It accepts text and image input and produces image output. It can compose and edit from up to 10 reference images.
How long can prompts be?
The positive prompt parameter accepts 2 to 3000 characters. Prompts are rewritten by a large language model before generation.
What resolution and aspect ratios does it produce?
It generates natively at 2K resolution, with a maximum resolution of 2752 pixels. Output resolution ranges from 0.26 to 4.19 megapixels, with aspect ratios from 1:8 to 8:1.
Does it support transparent backgrounds?
Yes. It produces native RGBA output with transparent backgrounds, and Qwen recommends it for transparent image generation and native RGBA cutouts.
How does it differ from Qwen-Image-2.1?
Qwen Image 2.1 Pro is the professional closed version in the Qwen series, while Qwen-Image-2.1 is the open-weight version. Qwen-Image-2.1 open weights use the Qwen Research License, free for research but not for commercial use without a separate agreement.
What should I know about its benchmark results?
Its Qwen-Image-Bench results are self-built and undisclosed, with no table, sub-scores, or scoring method. They are Qwen's claims rather than independent measurements.