Skip to main content
POST
/
generate
/
bailian
/
qwen-image-edit-plus
Qwen Image Edit Plus Image Editing
curl --request POST \
  --url https://api.sinancode.com/v1/generate/bailian/qwen-image-edit-plus \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "images": [
    "<string>"
  ],
  "negative_prompt": "<string>",
  "prompt": "<string>",
  "prompt_extend": true,
  "seed": 1073741823,
  "size": "1664*928"
}'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
Intelligently edit and modify images based on input, supporting 1-3 reference images.

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

images
string[]
required

Input image list (1-3 images, supports URL or Base64)

Required array length: 1 - 3 elements
prompt
string
required

Edit instruction (required, max 800 characters)

Maximum length: 800
negative_prompt
string

Negative prompt (optional, max 500 characters)

Maximum length: 500
prompt_extend
boolean

Enable smart prompt rewriting (optional, default true, only supported by plus series)

seed
integer

Random seed (optional, range 0-2147483647)

Required range: 0 <= x <= 2147483647
size
enum<string>

Output image resolution (optional, default 1328*1328) Options:

  • 1664*928 (16:9)
  • 1472*1140 (4:3)
  • 1328*1328 (1:1, default)
  • 1140*1472 (3:4)
  • 928*1664 (9:16)
Available options:
1664*928,
1472*1140,
1328*1328,
1140*1472,
928*1664

Response

OK

task_id
string
required

Task ID

Example:

"01234567-89ab-cdef-0123-456789abcdef"