Skip to main content
POST
/
z-image-turbo
/
async
curl --request POST \
  --url https://api.modellix.ai/api/v1/alibaba/z-image-turbo/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A futuristic city with neon lights at night"
}
'
{
  "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 with text rendering

Required string length: 1 - 800
Example:

"A futuristic city with neon lights at night"

size
string
default:1024*1536

Image size (format: width*height). Freely selectable within constraints

Example:

"1024*1536"

seed
integer

Random seed for reproducible results

Required range: 0 <= x <= 2147483647
Example:

42

prompt_extend
boolean
default:false

Enable intelligent prompt rewriting to enrich the description

Example:

false

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required