header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/json
Example
{"model":"qwen-image-edit-plus","input":{"messages":[{"role":"user","content":[{"image":"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/fpakfo/image36.webp"},{"text":"Generate an image matching the depth map, following this description: a red, worn bicycle parked on a muddy path with a dense primeval forest in the background"}]}]},"parameters":{"n":2,"negative_prompt":" ","prompt_extend":true,"watermark":false}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location'/v1/images/edits' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data'{
"model": "qwen-image-edit-plus",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/fpakfo/image36.webp"
},
{
"text": "Generate an image matching the depth map, following this description: a red, worn bicycle parked on a muddy path with a dense primeval forest in the background"
}
]
}
]
},
"parameters": {
"n": 2,
"negative_prompt": " ",
"prompt_extend": true,
"watermark": false
}'