Skip to main content

Z-Image from Alibaba's Tongyi team is a compact 6B text-to-image model that returns a photoreal frame in roughly a second. Prompts run up to 1,000 characters, in five aspect ratios, delivered as lossless PNG.

From $0.016/image

Workbench

Input

Text to image
277/1000
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
Output shape — five values, square by default, from 16:9 landscape to 9:16 portrait. Each ratio maps to a fixed size near the native range, so quality stays even; generate at the ratio you will publish at.
Prompt expansionaffects price
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. Requests with it on are billed at the prompt-expansion rate, which is higher than the standard rate; the estimate shown before you submit already reflects it.
Output format
PNG
`png` is the only value, and also the default. It is lossless, which makes it the safe handoff into further editing. The field keeps the request explicit; it changes neither the image nor the price.
Seed
Integer from 0 to 2147483647 for the random start; leave it out and every run draws its own. With the same prompt, ratio and seed the result lands very close to the earlier image, so store the seed with any image you keep and change one clause at a time against it. It fixes the starting noise, not the output pixel for pixel. No effect on price. no lower than 0 · no higher than 2147483647
Safety checkerOff

SpicyAPI does not run a safety checker on this model. Your prompt and media go to the model as written, and the model itself decides what comes back.

Checking your account before enabling submission and pricing.

Output

Ready for a new run
vanity-mirror-before-curtainExample result

Related models and next tasks

Missing the model you need?

Tell us what to add and where you would use it. Requests go to the people who decide what gets onboarded next.

One photoreal PNG per call, in about a second

The Z-Image Turbo text to image API turns a written prompt into one photoreal image, typically in about a second. It takes a prompt of up to 1,000 characters and one of five aspect ratios, and returns the frame as a lossless PNG. An optional seed supports controlled comparisons; aspect_ratio selects the frame shape rather than custom width or height.

Open the playground
One photoreal PNG per call, in about a second
Base model
Alibaba's Apache-2.0 Z-Image-Turbo checkpoint, released 2025-11-26
Parameters
6B, distilled to about eight model passes per image
Typical latency
About one second per image
Accepted fields
prompt (required), aspect_ratio, output_format, seed and enable_prompt_expansion
Reproducibility
Optional seed: integer from 0 to 2147483647 for controlled comparisons
Task window
Asynchronous; a task must reach a terminal state within 5 minutes
Iteration
A loop short enough to stay insideAbout a second per image means a question about wording gets an answer while you are still asking it. A session here usually ends up as a dozen readings of one idea, each one a small edit to the line before it.
Framing
Ratio is a decision, not a cropThe aspect_ratio field is the only framing control this endpoint has: five fixed values, no free pixel dimensions. Each one composes its own frame, so the shape you ask for is the shape the model builds around, and a tall frame is generated tall.
Integration
The call returns a task handleSubmitting a prompt starts an asynchronous task; poll it until it reaches a terminal state, which has to happen within five minutes, then read the PNG from platform storage. Keep the request body beside any frame you save, since a repeat call draws a different one.

What the Z-Image API does well

Photographic detail at speed

Photographic detail at speed

Alibaba describes the Turbo checkpoint as delivering strong photorealistic image generation while maintaining aesthetic quality, and prompts that name materials and light are the ones that get there. Write the weave of the fabric, the wear on the metal and the direction the light comes from, and the surface detail follows. Adjectives about quality do far less work here than a named light source.

Even quality across ratios

Even quality across ratios

Each aspect ratio resolves to its own fixed pixel size near the model's native megapixel range, so a 9:16 story frame is composed for that shape from the first pass instead of being cropped out of a square. The five values cover square, both 4:3 orientations and both 16:9 orientations, and there is no custom width or height on this endpoint.

  • Two languages, in the prompt and in the frame

    Alibaba describes the Turbo checkpoint as accurately rendering complex Chinese and English text, so a sign or a product label named in the prompt tends to come back as readable characters. Keep it to a few prominent words, since dense small type is not what a 6B model is built for. Alibaba's own published examples are written in both languages, and the prompt reaches the model as typed.

  • Keep the seed fixed for a clearer comparison

    Use the same prompt, aspect_ratio and seed, changing one clause at a time. Once a wording change looks better, try several seeds to see whether that improvement holds across different samples.

  • Lossless edges for compositing

    Output is PNG, the only value output_format accepts, so nothing along a contour has passed through lossy compression before it reaches you. The image goes straight into a composite, a mask or a further edit without the ringing a compressed source would add first, and the one encode a delivery needs happens at the end of that chain.

  • One image, one price

    One call returns one image, and the five ratios all cost the same: there is no step count, quality mode or resolution multiplier on this endpoint, and output_format has a single value. Billing is per output image against a live estimate shown before you submit, so a per-call budget holds without a variant table.

Who Z-Image is for

  • Find the direction before committing budget

    Concept art

    Find the direction before committing budget

    Explore a character or an environment across a dozen readings in the time a slower model takes for one, changing lighting, pose or setting between each. Take the reading that works to a heavier model for the final plate, once direction is no longer the open question.

  • Frame the same object several ways

    Product marketing

    Frame the same object several ways

    Generate the same shot at 1:1, 3:4 and 16:9 before the layout is fixed, so the crop discussion in a review happens against real images instead of a single square mockup stretched to guess at the others.

  • Build a mood board that argues a position

    Editorial and art direction

    Build a mood board that argues a position

    A dozen images that share lighting and palette make a case that a paragraph of description cannot. Because each one costs little and returns in about a second, a full board can be built and re-shuffled in one sitting instead of scheduled as a separate task.

  • Help a cast stay visually consistent

    Character work and role play

    Help a cast stay visually consistent

    Write each character's appearance as one fixed block of text covering age, hair, build and a distinguishing mark, and paste that block in unchanged for every scene, with wardrobe and setting in a separate clause. Keep that identity wording stable, and fix seed when comparing changes to wardrobe or setting.

How to call the Z-Image API

  1. Separate subject from treatment

    prompt is the only required field, so give it a shape: name what is in frame first, then how it should look. Written as one run-on clause, the model trades one against the other and you cannot tell which instruction lost.

  2. Set aspect_ratio before writing the prompt

    The field defaults to 1:1, and the same full-body description composes differently at 9:16 than at 16:9. Settling the shape first keeps the wording aimed at the frame that will actually render, and saves a second pass to fix framing.

  3. Choose variety or a controlled comparison

    Omit seed to explore fresh samples, or set an integer from 0 to 2147483647 when comparing variants. Save the seed with the prompt and settings so the next comparison starts from the same request.

  4. Change one clause per call

    Once a result is close, edit a single clause and send everything else exactly as it was, then log both request bodies. That diff is the only record of what changed between two frames, because the response carries the image and nothing about the wording behind it.

  5. Re-run the keeper in the ratios you need

    Deliverables rarely share one shape. Because each ratio composes its own frame, the portrait version of a keeper comes from re-running the same prompt at 9:16, which costs one more call and a second of waiting and gives a frame built for that shape.

Z-Image worked examples

  • A product shot that survives the crop

    Send the same prompt twice, once at 4:3 for the hero slot and once at 9:16 for the story frame. Both come back composed for their own shape, so the layout review compares two finished images.

    A weathered brass diving helmet on a workbench, single window light from the left, shallow depth of field, fine scratches catching the highlight
  • A character sheet built around one face

    Carry one identity sentence (age, hair, the scar) word for word into every call, and change only the wardrobe and background clause. The repeated wording is what holds the sheet together, and the clause you vary is where each entry earns its place.

    Portrait of the same woman, mid-thirties, short dark hair, small scar above the left eyebrow, three-quarter view, overcast daylight, muted olive coat
  • A shop sign that has to stay readable

    Alibaba describes this checkpoint as rendering text accurately, so a few words of signage are worth testing before a layout is planned around them. Put the words in quotes, keep them short, and say where in the frame they sit.

    A small corner bookshop at dusk, hand-painted sign above the door reading "NIGHT SHIFT BOOKS", warm window light, wet pavement reflecting the letters, 35mm street photograph

Z-Image API questions

Write the frame the way a photographer would brief it: the subject, then the lens and distance, then the light and its direction, then the surface detail you want to survive. Name one light source rather than stacking two, since competing descriptions tend to average each other out. Hold aspect_ratio steady while you test wording, so that only one thing moves between runs. No platform filter sits in front of this endpoint, so the only boundary on a prompt is the model's own.