Qwen Image 2.0
Qwen Image 2.0 Image Generation
- Asynchronous processing mode, returns task ID for subsequent queries
- Supports text-to-image, image-to-image and other generation modes
- Supports 1K/2K resolution tiers, generate up to 6 images
POST
Documentation Index
Fetch the complete documentation index at: https://gccai.heqingsong.uk/llms.txt
Use this file to discover all available pages before exploring further.
Supported Models
| Model | Description | Max Images | Pricing |
|---|---|---|---|
qwen-image-2.0 | Standard version, balanced quality and performance | 6 | Fixed price |
qwen-image-2.0-pro | Pro version, stronger text rendering, more refined realistic textures | 6 | Fixed price |
Authorizations
All endpoints require Bearer Token authenticationGet API Key:Visit API Key Management to get your API KeyAdd to request header:
Body
Model name
qwen-image-2.0- Standard version, balanced quality and performanceqwen-image-2.0-pro- Pro version, stronger text rendering, more refined realistic textures
Text description for image generation, up to 800 characters
Image aspect ratioSupported aspect ratios:
1:1- Square (default)4:3- Landscape 4:33:4- Portrait 3:416:9- Landscape widescreen9:16- Portrait vertical3:2- Landscape 3:22:3- Portrait 2:3
Resolution tier
1K- Standard resolution (default)2K- High definition resolution
Number of images to generateRange: 1-6
Negative prompt (content you don’t want to appear), up to 500 characters
Reference image URL array (image-to-image mode)Limitations:
- Must be publicly accessible URLs
- Base64 format not supported
Resolution Reference Table
Output size is controlled by the combination ofsize (ratio) + resolution (resolution tier).
| Ratio | 1K Tier | 2K Tier |
|---|---|---|
1:1 | 1024×1024 | 2048×2048 |
4:3 | 1152×864 | 2048×1536 |
3:4 | 864×1152 | 1536×2048 |
16:9 | 1280×720 | 2048×1152 |
9:16 | 720×1280 | 1152×2048 |
3:2 | 1248×832 | 2048×1360 |
2:3 | 832×1248 | 1360×2048 |
- Only
size→ defaults to 1K tier:{"size": "16:9"}→ 1280×720 size+resolution→ specified tier:{"size": "16:9", "resolution": "2K"}→ 2048×1152
Usage Examples
Text-to-Image (minimal request)Response
Response status code
Response data array
Notes
- Asynchronous Processing: After submission, a
task_idis returned. Poll/v1/tasks/{task_id}to get results - Image Storage: Generated images are mirrored to platform CDN and are valid long-term
- Billing Rules: Billed per successfully generated image, no charge for failures
- Image URL Requirements: Input images must be publicly accessible URLs, base64 not supported