API ReferenceImage ModelsQwen Image 2.0 Pro
Qwen Image 2.0 Pro Image API
Generate or process images with Qwen Image 2.0 Pro through the PixMind API.
Qwen text-to-image generation with flexible aspect ratios and one output per request.
Provider
AlibabaModel ID
qwen-image-2.0-proEndpoint
POST /api-platform/v1/generationsModel notes
- API pricing has not been published for this route yet.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Stable PixMind model ID. Use `qwen-image-2.0-pro`. Allowed values: |
prompt | string | Yes | Natural-language generation or editing instructions. |
aspectRatio | string | No | Requested output aspect ratio. Allowed values: Default: |
Request example
cURL
curl https://aihub-admin.aimix.pro/api-platform/v1/generations \
-H "Authorization: Bearer $PIXMIND_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-image-2.0-pro",
"prompt": "A polished campaign image with clean composition and controlled lighting",
"aspectRatio": "1:1"
}'JavaScript
const response = await fetch("https://aihub-admin.aimix.pro/api-platform/v1/generations", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.PIXMIND_API_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "qwen-image-2.0-pro",
"prompt": "A polished campaign image with clean composition and controlled lighting",
"aspectRatio": "1:1"
})
});
const task = await response.json();Accepted task response
Generation is asynchronous. Save taskId and poll GET /api-platform/v1/tasks/{taskId} until status is ready or failed.
200 OK
{
"code": 1000,
"data": {
"id": "img_44160",
"taskId": 44160,
"type": "image",
"model": "qwen-image-2.0-pro",
"status": "processing"
}
}API pricing
| Configuration | Price |
|---|---|
| API price not published | — |
API pricing uses the apiPlatform role and is separate from PixMind Studio credits. The accepted task response is the final pricing snapshot.