Skip to main content
POST
/
wan2.6-image
/
async
Wan 2.6 Image
curl --request POST \
  --url https://api.modellix.ai/api/v1/image-to-image/alibaba/wan2.6-image/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>"
}
'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "pending",
    "task_id": "task-abc123",
    "model_id": "qwen-mt-image",
    "duration": 150
  }
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
prompt
string
required

Generation prompt

Required string length: 1 - 2000
images
string<uri>[]

Input image URLs. The number of images is controlled by the parameters.enable_interleave parameter: 1) When enable_interleave=true (text-image interleaving output), 0-1 images can be input; 2) When enable_interleave=false (image editing), 1-4 images MUST be input. When inputting multiple images, multiple image objects need to be passed in the images array, and the order should follow the order of the returned image definition area.

Maximum array length: 4
negative_prompt
string

Negative prompt

Maximum string length: 500
size
string
default:1280*1280

Output image resolution

n
integer
default:4

Number of images to generate

Required range: 1 <= x <= 4
seed
integer

Random seed

Required range: 0 <= x <= 2147483647
prompt_extend
boolean
default:true

Enable intelligent prompt rewriting

enable_interleave
boolean
default:false

Enable text-image interleaving mode

max_images
integer
default:3

Max images in interleave mode output

Required range: 1 <= x <= 5

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required