Skip to main content
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>"
  ],
  "base64": false,
  "webhook": "<string>",
  "track_id": 123
}'
{
  "status": "success",
  "generationTime": 123,
  "id": 123,
  "output": [
    "<string>"
  ],
  "proxy_links": [
    "<string>"
  ],
  "meta": {}
}
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
--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 woman wearing the dress",
  "init_image": [
    "https://assets.modelslab.ai/characters/68e7a7f153307.png",
    "https://i.pinimg.com/736x/6e/ab/48/6eab481a1ee8fcaec32a316d2768a61.jpg"
  ],
  "base64": false,
  "webhook": null,
  "track_id": null
}

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

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

Response

200 - application/json

Qwen Edit response

  • Option 1
  • Option 2
  • Option 3
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