Skip to main content
POST
Qwen-Image Text-to-Image
Qwen-Image — a 20B MMDiT model for next-generation text-to-image generation. Particularly excels at creating stunning graphic posters with native text.
This is an async API that only returns the task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

prompt
string
required
Text prompt for image generation.
size
string
Pixel size of the generated media (width*height). Default: 1024*1024. Width and height pixel range: 256 ~ 1536.

Response

task_id
string
required
The task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.