Qwen Image 3.0 Pro API
Complete API reference for Qwen Image 3.0 Pro models powered by Alibaba Qwen.
Model Variants
This API supports two model variants:
Quick Comparison
Supported Aspect Ratios
Both models support 7 aspect ratios:
16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3
Qwen Image 3.0 Pro (Text-to-Image)
Endpoint
POST /api/v1/image/task
Authentication
Authorization: Bearer YOUR_API_KEY
Request Parameters
Required
Note: The width:height ratio must be one of: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3
Optional
Example Request
javascript
Qwen Image 3.0 Pro Edit (Image Editing)
Endpoint
POST /api/v1/image/task
Request Parameters
Required
Note: The width:height ratio must be one of: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3
Optional
Single Image Edit Example
javascript
Multi-Image Composition Example
Up to 3 images can be combined in a single request:
javascript
Response Format
Initial Response
All models return a task_id for polling:
json
Polling Response
Poll GET /api/v1/image/{taskId} to check status:
json
Status Values
submitted: Task acceptedprocessing: Generation in progresssucceed: Generation completed successfullyfailed: Generation failed
Best Practices
Text-to-Image Tips
- Be Specific: Include subject, style, lighting, and composition details in your prompt
- Aspect Ratio Selection: Choose ratio based on your use case (16:9 for web banners, 9:16 for mobile, 1:1 for social media)
- Use Seed for Reproducibility: Set a fixed
seedvalue when you need consistent results across requests
Image Editing Tips
- Clear Instructions: Be specific about what to change in the prompt
- Multi-Image Composition: Provide up to 3 images and describe how they should be combined
- Image Quality: Higher quality input images generally produce better editing results