# Z-Image Turbo Text to Image API

> Turbo is Z-Image's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.

Source: https://www.sandbase.ai/model/z-image/turbo
API reference: https://www.sandbase.ai/model/z-image/turbo/docs

## Facts

- Provider: Z-Image
- Type: Image model
- Model ID: `z-image/turbo`
- Price: $0.01 per run
- Capabilities: text to image
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "z-image/turbo",
  "prompt": "A hyper-realistic, close-up portrait of a tribal elder from the Omo Valley, painted with intricate white chalk patterns and adorned with a headdress made of dried flowers, seed pods, and rusted bottle caps. The focus is razor-sharp on the texture of the skin, showing every pore, wrinkle, and scar that tells a story of survival. The background is a blurred, smoky hut interior, with the warm glow of a cooking fire reflecting in the subject'"'"'s dark, soulful eyes. Shot on a Leica M6 with Kodak Portra 400 film grain aesthetic.",
  "aspect_ratio": "16:9",
  "output_format": "png"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Z-Image Turbo Text to Image through SandBase?

Create a SandBase API key, then send requests with the model ID "z-image/turbo" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Z-Image account?

No. One SandBase API key and balance gives you access to Z-Image Turbo Text to Image and the other models in the catalog; you do not need to sign up with Z-Image separately.

## README

### Z-Image Turbo Text to Image

Z-Image Turbo, Alibaba's fast 6B model, generates photorealistic images with bilingual text in a few steps.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Text instruction. |
| `aspect_ratio` | `21:9` / `16:9` / `3:2` / `4:3` / `5:4` / `1:1` / `4:5` / `3:4` / `2:3` / `9:16` | `16:9` | Output shape. |
| `output_format` | `jpeg` / `png` | `png` | Output file format. |
| `seed` | integer | random | Fix it to compare prompt changes. |

#### Billing

$0.015 per image.

| Request | Price |
|---|---|
| One image | $0.015 |

Failed runs are not charged.

#### Prompting

- Write subject, setting, style, then light.

#### Also on SandBase

Related: `alibaba/z-image/base`, `alibaba/z-image/turbo/edit`.
