Qwen Image 2 Pro icon
Image by Alibaba

Qwen Image 2 Pro API

The highest-fidelity tier of Alibaba's Qwen Image 2 (Feb 2026), tuned for stronger realism, sharper detail, and the most accurate text rendering, built for final production assets.

Integrate Qwen Image 2 Pro with a single API call — one key, one unified endpoint, and shared billing across every model on Apiframe.

model: "qwen-image-2-pro"
Qwen Image 2 Pro photorealistic close-up of a diamond ring on velvet with intricate facet detail in soft light

What's special about Qwen Image 2 Pro

The premium tier of the family

It shares Qwen Image 2's unified generation-and-editing architecture but is tuned for higher fidelity, trading a little speed for noticeably better output.

Best-in-class prompt adherence

It follows detailed, complex prompts with multiple elements and attributes closely, supporting instructions up to 1,000 tokens.

Production-grade typography

It renders readable, correctly spelled text in English and Chinese across posters, infographics, slide decks, signs, and labels, holding up under complex multi-block layouts.

Exceptional fine detail

It excels at intricate textures like skin pores, hair, fabric weave, jewelry, and water droplets, which matters for portrait, fashion, and product work.

Native 2K with editing built in

It outputs at 2048x2048 across flexible aspect ratios and supports reference-image editing within the same unified model.

Made for final deliverables

It targets print-ready and client-facing assets, and pairs naturally with the standard tier, letting you iterate on Qwen Image 2 and finish on Pro.

Made with Qwen Image 2 Pro

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

Qwen Image 2 Pro photorealistic jewelry close-up of a diamond ring on velvet with intricate facet detail in soft light

A photorealistic jewelry close-up of a diamond ring on velvet, intricate facet detail, soft light.

Qwen Image 2 Pro high-end fashion shot of a model in a knit sweater with visible weave and natural fabric draping

A high-end fashion shot of a model in a knit sweater, visible weave and natural fabric draping.

Qwen Image 2 Pro detailed slide deck cover titled 'ANNUAL REPORT' with a subtle chart motif and footer text

A detailed slide deck cover titled 'ANNUAL REPORT' with a subtle chart motif and footer text.

Overview

Endpoint
POST /v2/images/generate
Model ID
qwen-image-2-pro
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 Pro. 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-pro",
        "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-pro",
        "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-pro",
    "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 Pro 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-pro" "qwen-image-2-pro" 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 Pro API.

What is Qwen Image 2 Pro?

The highest-fidelity tier of Alibaba's Qwen Image 2, built for production-grade generation and editing.

How is it different from standard Qwen Image 2?

It delivers stronger realism, sharper detail, more accurate text, and better prompt adherence, at slightly slower generation, while sharing the same architecture.

What is it best at?

Text-heavy and information-dense production work, including posters, infographics, localized ads, and marketing assets.

What resolution does it produce?

Native 2K, at 2048x2048, with flexible aspect ratios.

Can it edit images, not just generate them?

Yes. Generation and editing are unified, with reference-image editing supported.

Where can you access it?

Through Apiframe, as well as Alibaba Cloud and major hosting partners.

Still have questions?

Start building with the Qwen Image 2 Pro API

Get your API key and integrate Qwen Image 2 Pro 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.