Skip to main content
POST
/
v3
/
async
/
z-image-turbo
Z Image Turbo
curl --request POST \
  --url https://api.myrouter.ai/v3/async/z-image-turbo \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "seed": 123,
  "size": "<string>",
  "prompt": "<string>",
  "enable_base64_output": true
}
'
{
  "task_id": "<string>"
}
This is an async API that only returns the async task_id. Use the task_id to call the Get Async Task Result API to retrieve the generated result.
This is an async API that only returns the task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

seed
integer
Random seed for generation. -1 means random seed. Range: -1 to 2147483647.Range: [-1, 2147483647]
size
string
default:"1024*1024"
Output image pixel dimensions (width*height). Each dimension ranges from 256 to 1536 pixels.
prompt
string
required
Positive prompt for generation.
enable_base64_output
boolean
default:false
If enabled, the output will be encoded as a BASE64 string instead of a URL. This property is only available via API.

Response

task_id
string
required
Use the task_id to call the Get Async Task Result API to retrieve the generated output.