Skip to main content
POST
/
v3
/
async
/
qwen-image-txt2img
Qwen-Image Text-to-Image
curl --request POST \
  --url https://api.highwayapi.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. It is especially good at creating stunning graphic posters with native text.
This is an asynchronous API that only returns the task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to retrieve the generated result.

Request Headers

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

Request Body

prompt
string
required
The text prompt for image generation.
size
string
The pixel size of the generated media (width*height). The default value is 1024*1024. Pixel range for length and width: 256 ~ 1536.

Response Parameters

task_id
string
required
The task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to obtain the generated result.