Skip to main content
POST
/
wan2.7-image
/
async
curl --request POST \
  --url https://api.modellix.ai/api/v1/alibaba/wan2.7-image/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A beautiful landscape with mountains and lakes at sunset"
}
'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "pending",
    "task_id": "task-abc123",
    "model_id": "model-123",
    "get_result": {
      "method": "GET",
      "url": "https://api.modellix.ai/api/v1/tasks/task-abc123"
    }
  }
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
prompt
string
required

Image description text, supports Chinese and English

Required string length: 1 - 5000
Example:

"A beautiful landscape with mountains and lakes at sunset"

size
string
default:2K

Output resolution. Preset: 1K, 2K. Or custom pixels (format: widthheight, range [768768, 2048*2048]). Does not support 4K

Example:

"2K"

n
integer

Number of images. Default mode (enable_sequential=false): 1-4, default 4. Sequential mode (enable_sequential=true): 1-12, default 12. Directly affects cost

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

1

seed
integer

Random seed for reproducible results

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

Enable thinking mode for enhanced reasoning and image quality. Only effective when enable_sequential=false. Increases generation time

enable_sequential
boolean
default:false

Enable sequential mode for generating multiple coherent images

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required