Unified generation and editing
It merges what used to be two separate models, Qwen-Image and Qwen-Image-Edit, into a single architecture, so creating and editing happen in one workflow.
Alibaba's next-generation image foundation model (Feb 2026), officially Qwen-Image-2.0, a lightweight unified generation-and-editing model known for professional text rendering and native 2K output.
Integrate Qwen Image 2 with a single API call — one key, one unified endpoint, and shared billing across every model on Apiframe.
model: "qwen-image-2"
It merges what used to be two separate models, Qwen-Image and Qwen-Image-Edit, into a single architecture, so creating and editing happen in one workflow.
It runs on a 7-billion-parameter architecture, down from 20 billion in the original, yet scores higher across benchmarks with faster inference.
At launch it held the number one spot on AI Arena, the blind human-evaluation platform, for both text-to-image and image editing.
Its signature strength is accurate, well-laid-out text, supporting prompts up to 1,000 tokens for infographics, presentation slides, posters, comics, and bilingual layouts.
It generates at 2048x2048 with fine, realistic texture, rendering skin, fabric, nature, and architecture in detail.
It places text on curved or reflective surfaces with correct perspective and material properties, and it follows long, complex prompts faithfully.
A few outputs generated through the Qwen Image 2 API on Apiframe.
A bilingual infographic comparing three subscription plans, clean labels in English and Chinese.
A presentation slide titled 'Q3 RESULTS' with a bar chart, three bullet callouts, and a footer.
A movie poster reading 'NIGHTFALL' with a dramatic skyline and stylized title typography.
A comic panel with two characters and readable dialogue bubbles, manga style.
A photorealistic close-up of a wool sweater on a wooden chair, fine fabric texture, soft light.
A storefront window with the text 'FRESH BAKERY' reflected on the glass, correct perspective.
Send a single POST /v2/images/generate request with your API key to
generate with Qwen Image 2. The call returns a jobId you can poll or
receive via webhook.
curl -X POST https://api.apiframe.ai/v2/images/generate \
-H "X-API-Key: afk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
"model": "qwen-image-2",
"qwenParams": {
"image": "https://example.com/input.jpg",
"negative_prompt": "What you do NOT want to see…",
"seed": 1
}
}'import requests
response = requests.post(
"https://api.apiframe.ai/v2/images/generate",
headers={
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
json={
"prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
"model": "qwen-image-2",
"qwenParams": {
"image": "https://example.com/input.jpg",
"negative_prompt": "What you do NOT want to see…",
"seed": 1
}
},
)
print(response.json()) # { "jobId": "...", "status": "QUEUED" }const response = await fetch("https://api.apiframe.ai/v2/images/generate", {
method: "POST",
headers: {
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
"prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
"model": "qwen-image-2",
"qwenParams": {
"image": "https://example.com/input.jpg",
"negative_prompt": "What you do NOT want to see…",
"seed": 1
}
}),
});
const { jobId } = await response.json();
console.log(jobId);Generation is asynchronous. A successful submission returns 202 Accepted with a jobId. Poll GET /v2/jobs/{id} (or supply a webhook_url) until the status is COMPLETED; the result field then holds the output URL(s).
{
"jobId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"status": "QUEUED"
}curl https://api.apiframe.ai/v2/jobs/JOB_ID \
-H "X-API-Key: afk_your_api_key_here"import requests, time
while True:
job = requests.get(
"https://api.apiframe.ai/v2/jobs/JOB_ID",
headers={"X-API-Key": "afk_your_api_key_here"},
).json()
if job["status"] in ("COMPLETED", "FAILED"):
break
time.sleep(2)
print(job["result"])let job;
do {
await new Promise((r) => setTimeout(r, 2000));
job = await fetch("https://api.apiframe.ai/v2/jobs/JOB_ID", {
headers: { "X-API-Key": "afk_your_api_key_here" },
}).then((r) => r.json());
} while (job.status !== "COMPLETED" && job.status !== "FAILED");
console.log(job.result);Request parameters accepted by the Qwen Image 2 endpoint. Model-specific options are nested under the params object shown below.
| Parameter | Type | Required | Default | Allowed / range | Description |
|---|---|---|---|---|---|
| prompt | string | required | — | — | Text description of what to generate. |
| model | string | required | "qwen-image-2" | "qwen-image-2" | The model identifier for this endpoint. |
| qwenParams.image | string (URL) | optional | — | — | Reference image (URL) |
| qwenParams.negative_prompt | string | optional | — | — | Negative prompt |
| qwenParams.seed | number | optional | — | step 1 | Reuse a number to reproduce the same result. |
Common questions about the Qwen Image 2 API.
Alibaba's Qwen-Image-2.0, released in February 2026, a unified image generation and editing foundation model.
It unifies generation and editing, runs on a lighter 7B architecture instead of 20B, and significantly improves text rendering and resolution.
Professional typography and text layout, including infographics, slides, posters, comics, and bilingual designs.
Native 2K, at 2048x2048.
Yes. Generation and editing are combined in a single model.
Through Apiframe, as well as the Alibaba Cloud BaiLian API and Qwen Chat.
Still have questions?
Get your API key and integrate Qwen Image 2 in minutes — Pay-as-you-go.
Questions? Join our Discord or contact sales.