Skip to main content
POST
/
v3
/
async
/
qwen-image-edit
Qwen-Image Image Editing
curl --request POST \
  --url https://api.myrouter.ai/v3/async/qwen-image-edit \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "prompt": "<string>",
  "image": "<string>",
  "seed": 123,
  "output_format": "<string>"
}
'
{
  "task_id": "<string>"
}
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.
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
The prompt used for image generation.
image
string
required
The image used for image generation.
seed
integer
Random seed for generation. -1 means a random seed will be used. Range: -1 ~ 2147483647. Default: -1.
output_format
string
The format of the output image. Default is jpeg.
Enum: jpeg, png, webp

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.