Skip to main content
POST
/
wan2.6-t2i
/
async
curl --request POST \
  --url https://modellixapi.jpushoa.com/api/v1/text-to-image/alibaba/wan2.6-t2i/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A serene mountain landscape at sunset"
}
'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "pending",
    "task_id": "task-abc123",
    "model_id": "qwen-image-plus",
    "duration": 150
  }
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
prompt
string
required

Image description text

Required string length: 1 - 2100
Example:

"A serene mountain landscape at sunset"

negative_prompt
string

Negative prompt

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

Image size (format: width*height). Total pixels between 768×768 and 1440×1440, aspect ratio between 1:4 and 4:1

Example:

"1280*1280"

n
integer
default:4

Number of images to generate

Required range: 1 <= x <= 4
Example:

4

seed
integer

Random seed

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

Enable intelligent prompt rewriting

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required