Alibaba
Qwen Image 2.0
qwen-image-2.0-pro
Alibaba's unified architecture model for image generation and editing, skilled at long-form Chinese text rendering, supporting instructions up to 1000 tokens and 2K output
Try qwen-image-2.0-pro
Input
Showcases
View all showcasesOutput
imagePricing
qwen-image-2.0-pro per image
| Unit Price | $0.107 |
|---|
Positioning Overview
Qwen Image 2.0 Pro is a high-end text-to-image model in Alibaba's Qwen Image 2.0 series, invoked through the unified HiAPI.ai interface. It is aimed at developers who need high-quality commercial-grade generated images, and it stands out in Chinese text rendering and long-instruction comprehension, supporting output at up to 2K resolution. It is suitable for content production scenarios such as posters, briefs, and long-form comic strips and infographics, as well as for automated image generation pipelines that require stable, reproducible results and controllable negative constraints.
Core Highlights
- Chinese text rendering is the core differentiator—according to public evaluations, its Chinese text rendering can stably present a variety of fonts and long-form content, making it suitable for visual materials that contain copy.
- Long instructions with dual positive/negative prompts—prompts support up to 800 characters, and a separate negative prompt can be set to control elements to avoid separately from the content to generate.
- Controllable output dimensions and reproducibility—five 2K-level landscape and portrait composition sizes are provided, and combined with the seed parameter, specified results can be reproduced, facilitating batch and regression testing.
Capability Description
Image generation from Chinese and English prompts: prompts can be in either Chinese or English; text that needs to be rendered should be written out directly. The output is a single image, suitable for entering design or content workflows directly.
Five 2K-level size options: supports five landscape and portrait compositions—2688*1536, 2368*1728, 2048*2048, 1728*2368, and 1536*2688—which can be matched directly to layouts such as posters, covers, and long images.
Negative prompt constraints: describe elements to avoid via negative_prompt to reduce irrelevant content or style deviations, lowering rework and secondary screening costs.
Automatic prompt optimization: prompt_extend is enabled by default to automatically complete prompts for better results, at the cost of a small amount of extra latency; it can be disabled as needed.
Seed reproduction and watermark toggle: seed ranges from 0 to 2147483647, making it easy to reproduce the same result; watermark controls whether an AI-generated watermark is attached to the output.
Applicable Scenarios
- Designers and marketing teams: posters and briefs containing Chinese copy—input prompts with explicit copy and layout descriptions to produce 2K-level visual materials ready for direct layout use, for event promotion and commercial proposals.
- Content teams: multi-panel comics and long-form infographic production—generate panel by panel according to storyboards and use a fixed seed to maintain stylistic consistency, producing complete sets of illustration assets for serialized content and social media long images.
- Engineering teams: batch automated image generation pipelines—call with parameterized fixed sizes, seeds, and negative prompts to stably produce image assets with uniform specifications, integrating into content production and design workflows.
Limitations and Selection Advice
The maximum output is 2K-level resolution; if 4K or more refined local editing is needed, other models should be evaluated. This model focuses on composition generation and Chinese text presentation; retrieval-augmented and multi-step reasoning knowledge-driven tasks are not its strength. The prompt limit is 800 characters, so overly long and complex instructions need to be condensed. Enabling prompt optimization introduces extra latency, so it can be disabled when latency-sensitive. The output is a single image; batch requirements require looping calls yourself.
What's new
View changelog →- New model qwen-image-2.0-pro is now live: supports text-to-image, standard price $0.107/image
Frequently asked questions
View all FAQs →-
What is Qwen Image 2.0 best for?
A cost-efficient Chinese-friendly model with negative prompts, prompt extension, optional seed, and five 2K pixel-size presets.
-
Does Qwen Image 2.0 accept reference images?
No. This route is text-to-image only.
-
Which output settings are supported?
The page exposes 2688×1536, 2368×1728, 2048×2048, 1728×2368, 1536×2688 and ; use the Playground contract for the final available set.
-
How is Qwen Image 2.0 billed?
Billing is per successful generated image. Resolution or quality differences, when present, are reflected by the live page price.
Create a generation task
https://api.hiapi.ai/v1/tasks Headers
AuthorizationstringRequiredAccount API key. Required on every request. Example: Bearer YOUR_HIAPI_API_KEY. Get your API key
Content-TypestringOptionalThe request body is always parsed as JSON; when sent, only application/json (optionally with charset) is accepted — any other value returns 415. Example: application/json.
Idempotency-KeystringOptionalIdempotency key, up to 255 bytes. Retries with the same key from the same account create the task only once; replays return the original taskId.
On network timeouts or client retries, the same key creates the task only once — no double charges (scope: the API key's account). Use a business-unique identifier as the key (e.g. "order-42"); replays return the original taskId, and keys expire 24 hours after the first request. See the Unified Async API overview for the full scenario matrix.
Body
modelstringRequiredCurrent fixed value: qwen-image-2.0-pro
routestringOptionalCurrent fixed value: default
inputobjectRequired
Business parameters for qwen-image-2.0-pro and route default — see the parameter table below.
seedintegerOptionalmin 0max 2147483647Random seed used to reproduce the generation result; takes an integer between 0 and 2147483647.
sizestringOptionalDefault: "2048*2048"Output image size, in the format "width*height"; the total pixel count must be between 512x512 and 2048x2048, default 2048*2048.
2688*15362368*17282048*20481728*23681536*2688promptstringRequiredminLength 1maxLength 800Text description of the image content, either Chinese or English; write out explicitly any text you want to appear in the image.
watermarkbooleanOptionalDefault: falseWhether to add an AI-generated watermark to the output image, boolean, default false.
prompt_extendbooleanOptionalDefault: trueWhether to automatically optimize the prompt for better generation results, boolean, default true; enabling it slightly increases latency.
negative_promptstringOptionalDefault: ""Negative prompt describing content to avoid in the generated image, string, default empty.
callbackobjectOptional
Terminal-state notification config. When omitted, no callback is delivered — poll the task yourself. See the callback note below.
Provide callback.url when creating a task and HiAPI POSTs to your service once the task reaches a terminal state — no polling needed. The callback payload mirrors the task detail structure; signature verification, delivery retries and idempotency are documented on the Unified Async API overview page.
urlstringRequiredRequired when callback is present. A POST is sent to this URL once the task reaches a terminal state; must be a valid http(s) URL.
whenstringOptionalDefault: "final"Only final is supported today — notified on both success and fail.
finalstoragestringOptionalDefault: "temp"Artifact storage tier: temp (default, retained about 7 days) or persistent (long-term, billed by size). Insufficient balance or exceeding the storage cap silently downgrades to temp; the effective tier is shown in the task detail response.
temppersistentRequest examples
# Submit an async task; returns a taskId immediately (no waiting for generation)
curl -X POST "https://api.hiapi.ai/v1/tasks" \
-H "Authorization: Bearer $HIAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-image-2.0-pro",
"input": {
"size": "2048*2048",
"prompt": "…",
"watermark": false,
"prompt_extend": true,
"negative_prompt": ""
}
}' const res = await fetch("https://api.hiapi.ai/v1/tasks", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HIAPI_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "qwen-image-2.0-pro",
input: {
"size": "2048*2048",
"prompt": "…",
"watermark": false,
"prompt_extend": true,
"negative_prompt": ""
}
}),
});
const task = await res.json();
// { code: 200, message: "success", data: { taskId } } import os, requests
res = requests.post(
"https://api.hiapi.ai/v1/tasks",
headers={"Authorization": f"Bearer {os.environ['HIAPI_API_KEY']}"},
json={
"model": "qwen-image-2.0-pro",
"input": {
"size": "2048*2048",
"prompt": "…",
"watermark": False,
"prompt_extend": True,
"negative_prompt": ""
}
},
)
print(res.json()) # { code, message, data: { taskId } } 200 OK
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR"
}
} 400 Bad Request
{
"code": 400,
"message": "invalid request",
"data": null,
"error_code": "INVALID_REQUEST"
} Get task detail
https://api.hiapi.ai/v1/tasks/:id Response fields
taskIdstringRequiredTask ID, always prefixed with tk-hiapi-.
modelstringRequiredResolved full model name. Tasks submitted with the route parameter return base@route (e.g. gpt-image-2/text-to-image@ext); otherwise identical to the name passed at creation.
routestringOptionalPresent only when the task was submitted with an explicit route parameter; echoes the submitted value.
statusstringRequiredTask status.
queued Queued, not started yet.
handling Being processed.
archiving Processing finished, artifacts being prepared.
success Terminal: completed, artifacts available (output returned).
fail Terminal: failed (error returned).
After submission, check status: success and fail are terminal, everything else is non-terminal. Poll every 1–3 seconds until terminal. On success, download artifacts from output[].url and transfer them before expireAt; pass storage: "persistent" at creation time when long-term retention is needed.
creatednumberRequiredTask creation time (Unix seconds).
completednumberRequiredUnix seconds when the task reached a terminal state; fixed to 0 while not terminal.
outputarrayOptional
Present only when status == success. Artifact list — always an array; a single task may return multiple types at once (e.g. video + first_frame).
Array [ object ]
Array items
urlstringRequiredArtifact URL, directly downloadable.
typestringRequiredCurrent possible values: video, image, audio, first_frame, last_frame, thumbnail; more may be added later.
expireAtnumberRequiredUnix seconds until which the artifact remains accessible; download or transfer before it expires.
errorobjectOptional
Present only when status == fail.
codestringRequiredBusiness error code.
messagestringRequiredError description.
Response examples
Success
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR",
"model": "happyhorse-1-0",
"status": "success",
"created": 1777282033,
"completed": 1777282099,
"output": [
{
"url": "https://cdn.hiapi.ai/tasks/.../video.mp4",
"type": "video",
"expireAt": 1777886899
}
]
}
} Processing (non-terminal)
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "archiving",
"created": 1777282033,
"completed": 0
}
} Failed
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "fail",
"created": 1777282033,
"completed": 1777282099,
"error": {
"code": "TASK_FAILED",
"message": "task failed"
}
}
} Articles
View all articles →Related Models
View all models →Same Type
-
FLUX.2 Black Forest Labs $0.035 /image -
FLUX.1 Fill Pro Black Forest Labs $0.071 /image -
Seedream 4.5 ByteDance $0.045 /image -
BRIA Eraser Bria $0.058 /image -
851 Labs Background Remover 851 Labs $0.002 /image -
Qwen Image 2.0 Alibaba $0.042 /image -
FASHN Tryon v1.6 FASHN $0.107 /image -
Ideogram V4.5 Ideogram $0.011 /image -
FIBO 1.5 Bria $0.058 /image -
FLUX.1 Schnell Black Forest Labs $0.005 /image -
Ideogram V3 Character Ideogram $0.090 /image -
Qwen Image 3.0 Alibaba $0.036 /image
Same Provider
-
Qwen Image 3.0 Alibaba $0.036 /image -
Wan 2.7 Video Alibaba $0.100 /second -
HappyHorse 1.0 Alibaba $0.168 /second -
HappyHorse 1.1 Alibaba $0.160 /second -
Wan 2.6 Flash Alibaba $0.043 /second -
Z-Image Alibaba $0.008 /image -
Wan 3.0 Video Alibaba $0.040 /second -
Wan 2.7 Image Alibaba $0.035 /image -
Qwen Image 2.0 Alibaba $0.042 /image -
Qwen Audio 3.0 TTS Alibaba $0.030 /1,000 characters -
Qwen Image 2.1 Alibaba $0.020 /image


