Introduction
Z-Image Turbo API turns a prompt of up to 1,000 characters into one PNG in five preset ratios, with optional seed and prompt expansion controls. Tongyi reports sub-second Turbo inference on an H800 GPU; this hardware-specific model measurement does not promise an API completion time, which also includes queueing and result delivery.
| Field | Value |
|---|---|
| Input | Text |
| Output | Image |
| Endpoints | Text to Image |
| Required input | Prompt (up to 1,000 characters) |
| Aspect ratios | 1:1, 4:3, 3:4, 16:9, 9:16 |
| Reproducibility | Turbo accepts |
| Content policy | NSFW requests use Turbo’s ordinary text-to-image endpoint without a maturity switch; the platform adds no separate content filter to this compact image workflow. |
Key features & highlights
Twenty iterations instead of one careful prompt
Tongyi reports sub-second Turbo inference on an H800 GPU; this hardware-specific model measurement does not promise an API completion time, which also includes queueing and result delivery.
Snapshot texture, not studio gloss
Its strongest register is the unglamorous one: phone-camera mirror selfies, fluorescent overhead light, slight motion blur, damp hair. Ask for a snapshot and it delivers something that reads as taken rather than rendered, which is exactly what heavier models tend to over-polish away.
Request parameters
| Parameter | Required | Description |
|---|---|---|
prompt | Yes | Up to 1,000 characters — a small budget on purpose. This endpoint comes back fast enough to treat wording as an experiment: change one thing per run instead of rewriting wholesale. at least 1 characters · at most 1000 characters |
aspect_ratio | No | Output shape — five values, square by default, from 16:9 landscape to 9:16 portrait. |
enable_prompt_expansion | No | Off by default, so the prompt is used as written. Switch it on to have the model rewrite a short prompt into a fuller description before generating, for better results. Default: |
output_format | No |
|
seed | No | Turbo accepts |
Pricing
$0.01 / image
Use cases
Character sweeps at volume
Character portraiture and role-play scene setting explored twenty directions at a time, with nothing to flag and no separate endpoint. Each run draws its own frame, so keep the prompts that land and vary wardrobe and setting one clause at a time.
Concepting before a finishing model
For Turbo’s 1,000-character budget, describe the scene, light and texture concretely, then compare small wording changes.
Content that looks like a real snapshot
Mirror selfies, gym strip lights and harsh overhead bulbs, candid phone-camera framing — the register that reads as an actual photograph in a feed. Ask for the flaws explicitly: fluorescent cast, motion blur, uneven focus.
Prompt guide & pro tips
Generate at the ratio you will publish
Five ratios, each mapped to a fixed size near the native range, so quality stays even instead of degrading at the extremes. Pick the one the placement uses — cropping afterwards discards composition the model already built for the frame you asked for.
Keep the brief tight and concrete
For Turbo’s 1,000-character budget, describe the scene, light and texture concretely, then compare small wording changes.
Keep the prompt with the keeper
Keep the Turbo scene and seed fixed for comparisons; changes in the image are not a proof of exact reproducibility.
Z-Image Turbo API turns a prompt of up to 1,000 characters into one PNG in five preset ratios, with optional seed and prompt expansion controls.
Turbo’s enable_prompt_expansion defaults to false and uses the submitted text directly; switching it on expands the brief and applies the higher prompt-expansion rate shown in the estimate.
Turbo accepts seed from 0 to 2147483647 for controlled comparisons; omit it for a fresh random start, and do not rely on a saved seed to recreate the same pixels.
NSFW requests use Turbo’s ordinary text-to-image endpoint without a maturity switch; the platform adds no separate content filter to this compact image workflow.
For Turbo’s 1,000-character budget, describe the scene, light and texture concretely, then compare small wording changes.
iPhone mirror selfie, an adult woman in a charcoal sports bra and low-slung grey joggers standing in an empty late-night gym, midriff bare, one hand holding the phone, hair damp, casual confident smirk, overhead fluorescent light, slight motion blur, authentic amateur snapshot look.
API quick start
# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "alibaba/z-image-turbo/text-to-image",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"aspect_ratio": "1:1",
"output_format": "png",
"enable_prompt_expansion": false
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"
See the API reference for authentication, the complete schema, polling, and error handling.












