Qwen Image 3
Overview
Qwen Image 3.0 is Alibaba’s advanced image generation model for realistic images, structured layouts, rich visual details, and high-quality typography.
Test API KEY: key_00000000000000000000000000000000Endpoints
1. Create Task
Request
POST https://api.pixwithapi.online/api/task/createHeaders
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
| Api-Key | {API_KEY} | Yes |
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Generation prompt, 1–800 characters. |
| image_urls | array | Conditional | Provide 1–3 reference images for image-to-image mode. Omit for text-to-image mode. |
| model_id | string | Yes | 0-58 |
| options | object | Yes | Generation options. |
| options.prompt_optimization | boolean | No | Translate and optimize the prompt before generation. Default: false. |
| options.aspect_ratio | string | No | Output aspect ratio. Valid values: '1:1', '3:2', '2:3', '4:3', '3:4', '16:9', '9:16', '21:9'. Default: '16:9'. |
| options.resolution | string | No | Output resolution. Valid values: '1K', '2K'. Default: '1K'. |
Example Request — Text-to-Image
{
"prompt": "A premium product poster with precise typography and realistic studio lighting",
"model_id": "0-58",
"options": {
"prompt_optimization": true,
"aspect_ratio": "16:9",
"resolution": "1K"
}
}Example Request — Image-to-Image
{
"prompt": "Combine these references into a polished editorial layout",
"image_urls": [
"https://cdn.pixwithapi.online/images/example-1.jpg",
"https://cdn.pixwithapi.online/images/example-2.webp"
],
"model_id": "0-58",
"options": {
"prompt_optimization": true,
"aspect_ratio": "3:2",
"resolution": "2K"
}
}Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | int | 1=success, 0=error |
| message | string | Success and failure messages |
| data | object | |
| data.task_id | string | Task identifier. |
| data.estimated_time | int | Estimated time in seconds. |
Response
{
"code": 1,
"message": "success",
"data": {
"task_id": "d425ab4dc256f0ebaa84862b9cea8a3d",
"estimated_time": 60
}
}Last updated on