Qwen Image 2.0 Pro
qwen-image-2.0-proUse the Qwen Image 2.0 Pro API for image generation and editing. Use a text prompt to create a new image or provide a reference for an edit. Create illustrations, design concepts, and visual assets. Compare the available provider routes, request examples, and usage prices on OpenAny.
Auto route pricing
Route source: Alibaba
- Published rate
- $0.056 / image
- Billing unit
- / image
- Context / Max output
- — / —
- Live routes
- 1
On this page
Overview
Use the Qwen Image 2.0 Pro API for image generation and editing. Use a text prompt to create a new image or provide a reference for an edit. Create illustrations, design concepts, and visual assets. Compare the available provider routes, request examples, and usage prices on OpenAny.
Playground
Result preview
Alibaba · 0ms
Response example. Run to see the actual response.

{
"url": "https://openmodels.market/api/v1/public/files/download?key=key-market%2Fplaygrounds%2F2026%2F07%2F21%2Fd1a2a417-2269-40e9-ba48-32aed019b4c9.png"
}Agent handoff preview
Providers
| Provider | Pricing | Latency | Uptime | Supply | Route |
|---|---|---|---|---|---|
Live | Input $0.056 / image | 0ms | — | Verified |
- Unit price
- $0.056
Source: the selected provider route in OpenAny's public model catalog. A price update timestamp is not supplied.
API
- Base URL
https://api.openany.si/v1- POST
/v1/images- Authentication
Authorization: Bearer $OPENANY_API_KEY
Request parameters
| Parameter | Type / range | Default value | Required | Description |
|---|---|---|---|---|
input | object | — | Yes | Input data containing the messages array. |
model | string | — | Yes | model |
parameters | object | — | No | Image editing parameters. |
Request example
curl 'https://api.openany.si/v1/images' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"messages": [
{
"content": [
{
"image": "https://openany.si/brand/playground-default-image.png"
},
{
"text": "Create a high-quality ecommerce poster for a white ceramic coffee cup, clean layout, realistic lighting, clear Chinese and English typography."
}
],
"role": "user"
}
]
},
"model": "qwen-image-2.0-pro"
}'Response example
Configured response example · not a live result
{
"url": "https://openmodels.market/api/v1/public/files/download?key=key-market%2Fplaygrounds%2F2026%2F07%2F21%2Fd1a2a417-2269-40e9-ba48-32aed019b4c9.png"
}Error handling
400Check the model ID and request fields.429Retry with exponential backoff.5xxRetry only temporary provider failures.JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input",
"model"
],
"properties": {
"input": {
"type": "object",
"required": [
"messages"
],
"properties": {
"messages": {
"type": "array",
"items": {
"type": "object",
"required": [
"role",
"content"
],
"properties": {
"role": {
"enum": [
"user"
],
"type": "string",
"description": "Message role. Must be user."
},
"content": {
"type": "array",
"items": {
"type": "object",
"oneOf": [
{
"required": [
"text"
]
},
{
"required": [
"image"
]
}
],
"properties": {
"text": {
"type": "string",
"description": "Image editing instruction describing the target elements and visual features. Supports Chinese and English. qwen-image-2.0 series supports up to 1300 tokens; other models support up to 800 tokens. Only one text input is supported per request."
},
"image": {
"type": "string",
"description": "Input image as a public HTTP/HTTPS URL or Base64 string in data:{mime_type};base64,{data} format. Supported formats: JPG, JPEG, PNG, BMP, TIFF, WEBP, and GIF first frame only. Recommended width and height: 384 to 3072 pixels. Maximum file size: 10 MB."
}
}
},
"contains": {
"type": "object",
"required": [
"text"
]
},
"maxItems": 4,
"description": "Message content array. Must contain 1 to 3 image objects and exactly one text object. For multi-image input, images are referenced by position. The output aspect ratio is determined by the last image.",
"maxContains": 1,
"minContains": 1
}
}
},
"maxItems": 1,
"minItems": 1,
"description": "Single-turn input. Must contain exactly one message with role user."
}
},
"description": "Input data containing the messages array."
},
"model": {
"type": "string"
},
"parameters": {
"type": "object",
"properties": {
"n": {
"type": "integer",
"default": 1,
"maximum": 6,
"minimum": 1,
"description": "Number of images to generate. qwen-image-2.0, qwen-image-edit-max, and qwen-image-edit-plus series support 1 to 6. qwen-image-edit supports only 1."
},
"seed": {
"type": "integer",
"maximum": 2147483647,
"minimum": 0,
"description": "Random seed. Same seed produces more consistent but not identical results. If omitted, a random seed is used."
},
"size": {
"type": "string",
"description": "Output resolution in width*height format. qwen-image-2.0 series supports total pixels between 512*512 and 2048*2048. qwen-image-edit-max/plus require width and height each between 512 and 2048 and auto-adjust to the nearest multiple of 16. Recommended examples: 1024*1024, 768*1152, 1024*1536, 1152*768, 1536*1024, 720*1280, 1080*1920, 1280*720, 1920*1080. qwen-image-edit does not support this parameter."
},
"watermark": {
"type": "boolean",
"default": false,
"description": "Whether to add a Qwen-Image watermark to the bottom-right corner of the image."
},
"prompt_extend": {
"type": "boolean",
"default": true,
"description": "Whether to enable prompt rewriting. Improves results when prompts lack detail. Not supported by qwen-image-edit."
},
"negative_prompt": {
"type": "string",
"description": "Content that should not appear in the generated image. Supports Chinese and English. Maximum length: 500 characters; excess content is truncated automatically."
}
},
"description": "Image editing parameters."
}
}
}Examples
Request example
POST /v1/imagescurl 'https://api.openany.si/v1/images' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"messages": [
{
"content": [
{
"image": "https://openany.si/brand/playground-default-image.png"
},
{
"text": "Create a high-quality ecommerce poster for a white ceramic coffee cup, clean layout, realistic lighting, clear Chinese and English typography."
}
],
"role": "user"
}
]
},
"model": "qwen-image-2.0-pro"
}'