⚡ NEW: Flux Klein 9B — Faster inference, stunning quality · Try Now
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": {}
}This endpoint allows you to edit images using Qwen model.
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": {}
}Documentation Index
Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
Use this file to discover all available pages before exploring further.
POST request to below endpoint and pass the required parameters as a request body to the endpoint.
--request POST 'https://modelslab.com/api/v6/image_editing/qwen_edit' \
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.{
"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
}
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
qwen-edit-2509, qwen-edit-2511 Qwen Edit response
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?