NeuralBridge
Sign in Download IDE
Pruna AI

Z-Image Turbo

image generation

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

Context window
—
Max tokens in response
—
Vendor
Pruna AI
Release
—
Login
text
Output
images

Capabilities

generation

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

sizedefault: 1024x1024
Result size as a "width×height" string.
widthdefault: 1024
Image width in pixels.
heightdefault: 1024
Image height in pixels.
prompt
The request text: what you want to get. For video: the scene, camera movement and light; for music: genre, mood, instruments, tempo. The length limit depends on the model.
num_inference_stepsdefault: 8
How many steps the model spends on the image, 1 to 50. Fast models need about 8; more steps take longer and are not always better.
guidance_scaledefault: 0
How strictly the model follows the prompt, 0 to 20. Fast (Turbo) models need 0, which is their default.
go_fastdefault: false · true · false
Extra optimisations for lower latency: true or false (false by default).
seed
Pins randomness: repeating a request with the same seed and parameters returns the same result.
output_formatdefault: jpg · jpg · png · webp
Codec, sample rate and bitrate: for example mp3_44100_128 is MP3, 44.1 kHz, 128 kbit/s; opus_48000_96 is Opus in an Ogg container. auto is the model default.
output_qualitydefault: 80
Compression of a JPG or WEBP image: 0 to 100, higher means better quality and a larger file. PNG is lossless.
enable_safety_filterdefault: false · true · false
Check the prompt against the model's content policy: true or false (false by default). The most harmful categories are always blocked.

Endpoints

POSThttps://api.neuralbridge.ru/v1/images/generationsprimary
Images — generations — Generate an image from a text description.

Code examples

python
from openai import OpenAI

client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.neuralbridge.ru/v1")

image = client.images.generate(model="pruna/z-image-turbo-08130", prompt="Рыжий кот в скафандре")

print(image.data[0].url or image.data[0].b64_json[:64])
For OpenAI SDK, specify /v1 in base_url. For Anthropic SDK — without /v1.
Prices
Image / image0,7875 ₽
The request cost in rubles — in the response, field usage.cost
Identifier
pruna/z-image-turbo-08130
Get API key