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

# Qwen-Image Image Editing

Qwen-Image Image Editing — a 20B MMDiT model for next-generation image editing. Based on the 20B Qwen-Image, it provides precise bilingual text editing (Chinese and English) while preserving style, and supports both semantic and appearance-level editing.

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

## Request Headers

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

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

## Request Body

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

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

<ParamField body="seed" type="integer" required={false}>
  Random seed for generation. -1 means a random seed will be used. Range: -1 \~ 2147483647. Default: -1.
</ParamField>

<ParamField body="output_format" type="string" required={false}>
  The format of the output image. Default is jpeg.<br />
  Enum: `jpeg`, `png`, `webp`
</ParamField>

## Response

<ResponseField name="task_id" type="string" required={true}>
  The task\_id of the async task. Use the task\_id to call the [Get Async Task Result API](/docs/models/reference-get-async-task-result) to retrieve the generated result.
</ResponseField>
