Skip to main content
POST
/
v1
/
images
/
generations
/
async
Generate image
curl --request POST \
  --url https://api.siray.ai/v1/images/generations/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "alibaba/z-image-turbo-t2i",
  "prompt": "example_value",
  "seed": -1,
  "size": "1024x768"
}
'
{
  "code": "success",
  "data": {
    "task_id": "<string>"
  },
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication using API key

Body

application/json

Request payload

Request format for image generation models

model
enum<string>
required

Model name to use for the request

Available options:
alibaba/z-image-turbo-t2i
prompt
string
required

Text prompt for generation

size
enum<string>
required

Fixed size

Available options:
1024x768,
768x1024,
1024x1024
seed
integer

Random seed for generation

Required range: -1 <= x <= 9999999999

Response

200 - application/json

Successful response

Standard async task creation response

code
string
required

Status code returned by the service

Example:

"success"

data
object
required

Response payload containing task details

message
string
required

Additional information about the request result