Skip to main content
POST
Qwen Edit
Qwen Edit endpoint result

Request

Make a POST request to below endpoint and pass the required parameters as a request body to the endpoint.
curl
The init_image parameter can accept a string if editing a single image or an array of strings if editing multiple images. Maximum number of images to be passed is 4.

Body

json

Body

application/json
key
string
required

Your API Key used for request authorization

prompt
string
required

The text prompt describing the content you want in the generated image

init_image
string[]
required

Link the image you want your generations to edit and manipulate

safety_checker
boolean

Whether to run the safety checker

base64
boolean
default:false

Set to true for base64 response

webhook
string<uri>

URL to receive POST API call when complete

track_id
integer

ID for webhook identification

model_id
enum<string>
default:qwen-edit-2509

The model version to use for image editing

Available options:
qwen-edit-2509,
qwen-edit-2511

Response

200 - application/json

Qwen Edit response

status
enum<string>
Available options:
success
generationTime
number

Time taken to generate the image in seconds

id
integer

Unique identifier for the generation request

output
string<uri>[]

Array of generated image URLs

Array of proxy image URLs

meta
object

Metadata about the generation process