Skip to main content
POST
Qwen Image 2.0 Edit

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
prompt
string
required

Image editing instruction (positive prompt)

Required string length: 1 - 800
Example:

"Change the background to a beach scene"

images
string<uri>[]
required

Input image URL array, supports 1-3 images

Required array length: 1 - 3 elements
Example:
negative_prompt
string

Negative prompt describing unwanted content

Maximum string length: 500
n
integer
default:1

Number of output images

Required range: 1 <= x <= 6
size
string

Output image resolution (format: widthheight, e.g., 10242048)

Example:

"1024*1024"

prompt_extend
boolean
default:true

Enable intelligent prompt rewriting

seed
integer

Random seed for reproducibility

Required range: 0 <= x <= 2147483647

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required

Detailed data about the submitted asynchronous task.