> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jiekou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Qwen-Image Text-to-Image

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.

<Tip>
  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](/en/docs/models/reference-get-async-task-result) to retrieve the generated result.
</Tip>

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum value: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Secret Key}}.
</ParamField>

## Request Body

<ParamField body="prompt" type="string" required={true}>
  The text prompt for image generation.
</ParamField>

<ParamField body="size" type="string" required={false}>
  The pixel size of the generated media (width\*height). The default value is `1024*1024`. Pixel range for length and width: 256 \~ 1536.
</ParamField>

## Response Parameters

<ResponseField name="task_id" type="string" required={true}>
  The task\_id of the asynchronous task. You should use this task\_id to request the [Get Task Result API](/en/docs/models/reference-get-async-task-result) to obtain the generated result.
</ResponseField>
