Qwen Edit
curl --request POST \
--url https://modelslab.com/api/v6/image_editing/qwen_edit \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"prompt": "<string>",
"init_image": [
"<string>"
],
"safety_checker": true,
"base64": false,
"webhook": "<string>",
"track_id": 123,
"model_id": "qwen-edit-2509"
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {}
}Image Editing API
Qwen Edit
This endpoint allows you to edit images using Qwen model.
POST
/
image_editing
/
qwen_edit
Qwen Edit
curl --request POST \
--url https://modelslab.com/api/v6/image_editing/qwen_edit \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"prompt": "<string>",
"init_image": [
"<string>"
],
"safety_checker": true,
"base64": false,
"webhook": "<string>",
"track_id": 123,
"model_id": "qwen-edit-2509"
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {}
}
Request
Make aPOST request to below endpoint and pass the required parameters as a request body to the endpoint.
curl
--request POST 'https://modelslab.com/api/v6/image_editing/qwen_edit' \
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
{
"key":"",
"prompt": "The girl holding a Pepsi can from image 2 in her left hand.",
"init_image": [
"https://assets.modelslab.ai/generations/9398f98f-8b37-4d2b-98b8-04e0d22167e3.jpg",
"https://assets.modelslab.ai/generations/57df2bbf-512a-4a9a-bf99-35cde14113e7.jpg"
],
"safety_checker": true,
"model_id": "qwen-edit-2509",
"base64": false,
"webhook": null,
"track_id": null
}
Body
application/json
Your API Key used for request authorization
The text prompt describing the content you want in the generated image
Link the image you want your generations to edit and manipulate
Whether to run the safety checker
Set to true for base64 response
URL to receive POST API call when complete
ID for webhook identification
The model version to use for image editing
Available options:
qwen-edit-2509, qwen-edit-2511 Response
200 - application/json
Qwen Edit response
- Option 1
- Option 2
- Option 3
Available options:
success Time taken to generate the image in seconds
Unique identifier for the generation request
Array of generated image URLs
Array of proxy image URLs
Metadata about the generation process
Was this page helpful?
⌘I

