Key capabilities
- Text-to-image — Generate images from text descriptions
- Flexible size — Specify output dimensions with
size - URL or Base64 — Choose
response_formatasurlorb64_json
Quick example
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Must be qwen-image-plus |
prompt | string | Yes | Text description of the image |
n | integer | No | Number of images. Default: 1 |
size | string | No | Output size, e.g. 1024x1024 |
response_format | string | No | url (default) or b64_json |
Response
| Field | Description |
|---|---|
data[].url | Generated image URL (valid ~24 hours) |
data[].b64_json | Base64 image (only when response_format=b64_json) |
data[].revised_prompt | AI-expanded prompt used for generation |
created | Unix timestamp |
API Reference
View the interactive API playground for Qwen Image Plus.