Qwen Image 3.0 Pro API
Complete API reference for the Qwen Image 3.0 Standard and Pro models powered by Alibaba Qwen.
Model Variants
This API supports four model variants:
Quick Comparison
Supported Aspect Ratios
All four models support these aspect ratios:
16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3
Endpoint
POST /api/v1/image/task
Authentication
Authorization: Bearer YOUR_API_KEY
Text-to-Image Generation
Use qwen-image-3.0 for the Standard model or qwen-image-3.0-pro for the Pro model.
Request Parameters
Required
The width-to-height ratio must be one of: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3.
Optional
Standard Example Request
const response = await fetch('https://api.flaq.ai/api/v1/image/task', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model_name: 'qwen-image-3.0',
prompt: 'A professional product photo with soft studio lighting',
width: 16,
height: 9,
resolution: '1k',
seed: 42
})
});
const { data } = await response.json();
const taskId = data.task_id;
Pro Example Request
const response = await fetch('https://api.flaq.ai/api/v1/image/task', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model_name: 'qwen-image-3.0-pro',
prompt: 'A detailed editorial product scene with precise typography and cinematic lighting',
width: 16,
height: 9,
resolution: '2k',
seed: 42
})
});
const { data } = await response.json();
const taskId = data.task_id;
Image Editing
Use qwen-image-3.0-edit for the Standard Edit model or qwen-image-3.0-pro-edit for the Pro Edit model.
Request Parameters
Required
The width-to-height ratio must be one of: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3.
Optional
Standard Edit Example Request
const response = await fetch('https://api.flaq.ai/api/v1/image/task', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model_name: 'qwen-image-3.0-edit',
prompt: 'Transform the input into a polished editorial portrait with soft studio lighting',
width: 16,
height: 9,
resolution: '1k',
image_url_list: ['https://example.com/image1.jpg'],
seed: 42
})
});
const { data } = await response.json();
const taskId = data.task_id;
Pro Edit Multi-Image Example Request
const response = await fetch('https://api.flaq.ai/api/v1/image/task', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model_name: 'qwen-image-3.0-pro-edit',
prompt: 'Combine the products from these references into one cohesive campaign image',
width: 16,
height: 9,
resolution: '2k',
image_url_list: [
'https://example.com/image1.jpg',
'https://example.com/image2.jpg',
'https://example.com/image3.jpg'
],
seed: 42
})
});
const { data } = await response.json();
const taskId = data.task_id;
Initial Response
All models return a task_id for polling:
{
"code": 0,
"data": {
"task_id": "{task_id}",
"task_status": "submitted",
"response_url": "https://api.flaq.ai/api/v1/image/{task_id}"
},
"message": "success"
}
Polling Response
Poll GET /api/v1/image/{task_id} to check the task status:
{
"code": 0,
"data": {
"task_id": "{task_id}",
"task_status": "succeed",
"task_status_msg": null,
"response_url": "https://api.flaq.ai/api/v1/image/{task_id}",
"task_result": {
"credit": 0.0997,
"images": [
{
"url": "https://example.com/generated-image.jpeg"
}
]
}
},
"message": "success"
}
Status Values
submitted: Task accepted
processing: Generation in progress
succeed: Generation completed successfully
failed: Generation failed
Best Practices
Text-to-Image Tips
- Be Specific: Include the subject, style, lighting, composition, and text requirements in the prompt.
- Choose the Resolution: Select
1k or 2k based on the required output resolution.
- Select the Aspect Ratio: Match the ratio to the destination, such as 16:9 for banners or 9:16 for vertical content.
- Use Seed for Reproducibility: Set a fixed
seed when you need repeatable generation settings.
Image Editing Tips
- Use Clear Instructions: Describe what should change and what should remain consistent.
- Order Multiple Inputs Deliberately: Provide 1–3 images and explain the role of each reference in the prompt.
- Choose the Output Resolution: Select
1k or 2k independently from the input image dimensions.
- Use High-Quality Inputs: Clear source images generally produce more controlled editing results.