Qwen Image 2 icon
Image by Alibaba

Qwen Image 2 API

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"
Qwen Image 2 bilingual infographic comparing three subscription plans with clean labels in English and Chinese

What's special about Qwen Image 2

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.

More capable from a lighter model

It runs on a 7-billion-parameter architecture, down from 20 billion in the original, yet scores higher across benchmarks with faster inference.

Top of the blind leaderboards

At launch it held the number one spot on AI Arena, the blind human-evaluation platform, for both text-to-image and image editing.

Professional typography rendering

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.

Native 2K realism

It generates at 2048x2048 with fine, realistic texture, rendering skin, fabric, nature, and architecture in detail.

Text that respects surfaces

It places text on curved or reflective surfaces with correct perspective and material properties, and it follows long, complex prompts faithfully.

Made with Qwen Image 2

A few outputs generated through the Qwen Image 2 API on Apiframe.

Qwen Image 2 bilingual infographic comparing three subscription plans with clean labels in English and Chinese

A bilingual infographic comparing three subscription plans, clean labels in English and Chinese.

Qwen Image 2 presentation slide titled 'Q3 RESULTS' with a bar chart, three bullet callouts, and a footer

A presentation slide titled 'Q3 RESULTS' with a bar chart, three bullet callouts, and a footer.

Qwen Image 2 movie poster reading 'NIGHTFALL' with a dramatic skyline and stylized title typography

A movie poster reading 'NIGHTFALL' with a dramatic skyline and stylized title typography.

Qwen Image 2 comic panel with two characters and readable dialogue bubbles in manga style

A comic panel with two characters and readable dialogue bubbles, manga style.

Qwen Image 2 photorealistic close-up of a wool sweater on a wooden chair with fine fabric texture in soft light

A photorealistic close-up of a wool sweater on a wooden chair, fine fabric texture, soft light.

Qwen Image 2 storefront window with the text 'FRESH BAKERY' reflected on the glass in correct perspective

A storefront window with the text 'FRESH BAKERY' reflected on the glass, correct perspective.

Overview

Endpoint
POST /v2/images/generate
Model ID
qwen-image-2
Params key
qwenParams
Modality
Image
Provider
Alibaba
Avg. completion
~15s

Capabilities

Aspect ratios1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9
Image inputSupported
Avg. time~15s

Quick start

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);

Response & job lifecycle

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).

1. Submission response (202)

{
  "jobId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
  "status": "QUEUED"
}

2. Poll for the result

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);

Input schema

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.

Frequently Asked Questions

Common questions about the Qwen Image 2 API.

What is Qwen Image 2?

Alibaba's Qwen-Image-2.0, released in February 2026, a unified image generation and editing foundation model.

How is it different from the original Qwen-Image?

It unifies generation and editing, runs on a lighter 7B architecture instead of 20B, and significantly improves text rendering and resolution.

What is it best at?

Professional typography and text layout, including infographics, slides, posters, comics, and bilingual designs.

What resolution does it produce?

Native 2K, at 2048x2048.

Can it edit images, not just generate them?

Yes. Generation and editing are combined in a single model.

Where can you access it?

Through Apiframe, as well as the Alibaba Cloud BaiLian API and Qwen Chat.

Still have questions?

Start building with the Qwen Image 2 API

Get your API key and integrate Qwen Image 2 in minutes — Pay-as-you-go.

Free credits to start
One API for every model
Webhooks, SDKs & idempotency
No provider account required

Questions? Join our Discord or contact sales.