Skip to main content
POST
/
v3
/
async
/
qwen-image-txt2img
Qwen-Image Text-to-Image
curl --request POST \
  --url https://api.myrouter.ai/v3/async/qwen-image-txt2img \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "prompt": "<string>",
  "size": "<string>"
}
'
{
  "task_id": "<string>"
}
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.