> ## Documentation Index
> Fetch the complete documentation index at: https://docs.myrouter.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Z Image Turbo

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.

<Tip>
  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](/docs/models/reference-get-async-task-result) to retrieve the generated result.
</Tip>

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Key}}.
</ParamField>

## Request Body

<ParamField body="seed" type="integer" default={-1}>
  Random seed for generation. -1 means random seed. Range: -1 to 2147483647.

  Range: \[-1, 2147483647]
</ParamField>

<ParamField body="size" type="string" default="1024*1024">
  Output image pixel dimensions (width\*height). Each dimension ranges from 256 to 1536 pixels.
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  Positive prompt for generation.
</ParamField>

<ParamField body="enable_base64_output" type="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.
</ParamField>

## Response

<ResponseField name="task_id" type="string" required={true}>
  Use the task\_id to call the [Get Async Task Result API](/docs/models/reference-get-async-task-result) to retrieve the generated output.
</ResponseField>
