Z-Image Turbo
A fast photorealistic text-to-image model: about 15 seconds per image, any size from 64 to 2048 pixels, JPG, PNG or WEBP. Renders English and Chinese text well. One price per image of any size.
Specifications
Capabilities
Description
What it does
- Image from text: describe the subject, lighting and style. Z-Image Turbo, a 6B-parameter model by Tongyi-MAI in a Pruna AI build, makes photorealistic images in about 8 steps.
- Text in images: renders English and Chinese text well, short Russian words too. Put the sign text in quotes.
- Size: width and height from 64 to 2048 pixels each (1024×1024 by default). You can pass size instead, for example "1536x640". The model rounds each side down to a multiple of 16 (1000×777 becomes 992×768), and a side is never smaller than 128 pixels.
- File format (output_format): jpg (default), png or webp. JPG and WEBP quality (output_quality) is 0 to 100, 80 by default.
- Steps (num_inference_steps): 1 to 50, 8 by default. Prompt guidance (guidance_scale): 0 to 20; Turbo models need 0, which is the default.
- Go fast (go_fast): true turns on extra optimisations for lower latency.
- Seed (seed, 0 to 4294967295): the same seed with the same prompt gives a similar image.
- Safety filter (enable_safety_filter): off by default; the most harmful categories are always blocked. Set it to true to have the model reject prompts against its content policy.
- One image per request. The model has no image editing, negative prompt or aspect_ratio: set the proportions with width and height.
How to call
POST /v1/images/generations with a JSON body:
{"model": "pruna/z-image-turbo-08130", "prompt": "A red fox curled up asleep on fresh snow, soft morning light, photorealistic", "width": 1536, "height": 1024, "output_format": "webp"}curl https://api.neuralbridge.ru/v1/images/generations -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" -d '{"model": "pruna/z-image-turbo-08130", "prompt": "A neon sign reading \"OPEN 24/7\"", "size": "1536x640"}'An image takes about 15 seconds. Send an Idempotency-Key header: repeating a request with the same key within a day does not start a second paid generation; it returns the image already paid for.
Response
data[0].b64_json is the image in base64, output_format is jpeg, png or webp, usage holds the width and height of the finished image.
Errors
- 400: invalid input; the error text names the field (for example, a width over 2048 or a field the model does not have). Rejected requests are not billed.
- 422 with code content_filtered: the prompt did not pass the content check (with enable_safety_filter=true). Nothing is charged.
- 402: not enough funds on the balance. 429: the model is overloaded. 502 or 504: the image was not received; nothing is charged.
Price
One price per image at any size, step count and format (rate on this page).
Parameters
Endpoints
Code examples
Related models: image generation
/v1 in base_url. For Anthropic SDK — without /v1.