Back to models
Live APIQwen Image
Live APIQwen ImageQwen2 Image
qwen2-imageReliable Qwen image route for text generation and image editing workflows with broad prompt and aspect-ratio support.
Model overview
- Endpoint
- /api/v1/images/generations
- Credit cost
- 10 credits / image
- Typical latency
- 20-60 sec
- Input and output
- Text or image → PNG or JPEG
Capabilities
- Text-to-image
- Image editing
- Long prompts
- Common aspect ratios
Request parameters
| Parameter | Type | Requirement | Description |
|---|---|---|---|
| model | string | Required | Model identifier. Default: qwen2-image |
| prompt | string | Required | Generation or edit instruction, up to 5000 characters. |
| image_urls | string[] | Optional | Source image URLs. Supplying an image activates edit mode. |
| aspect_ratio | string | Optional | Output aspect ratio. Default: 16:9 |
| output_format | png | jpeg | Optional | Generated file format. Default: png |
Request example
curl https://qwenapi.org/api/v1/images/generations \
-H "Authorization: Bearer $QWEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen2-image",
"prompt": "A clean architectural model photographed in a daylight studio",
"aspect_ratio": "4:3",
"output_format": "png"
}'The generation endpoint is asynchronous. Poll GET /api/v1/tasks/ with the same Bearer key.