← Back to Models

prunaai/Z-Image Turbo

Z-Image Turbo is a super fast text-to-image model of 6B parameters developed by Tongyi-MAI.

image text-to-image

Pricing

Base: 1 credits per image

Adjustments:

enable_prompt_expansion multiplier:
true: 1.0025x
false: 1x

Example Pricing:

Base request: 2 credits
Range: 1 - 2 credits

Input Parameters

Prompt required string

The prompt to generate an image from

Image Size string

The size of the generated image. Use predefined aspect ratios or 'custom' for specific dimensions.

Default: landscape_16_9

Options: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9, custom

Width integer

Custom image width (only used when image_size='custom'). Default: 512

Default: 512

Height integer

Custom image height (only used when image_size='custom'). Default: 512

Default: 512

Num Inference Steps integer

The number of inference steps to perform

Default: 8

Seed integer

The same seed and the same prompt given to the same version of the model will output the same image every time

Sync Mode boolean

If true, the media will be returned as a data URI and the output data won't be available in the request history

Default:

Number of Images integer

The number of images to generate

Default: 1

Enable Safety Checker boolean

If set to true, the safety checker will be enabled

Default: 1

Enable Prompt Expansion boolean

Whether to enable prompt expansion. Note: this will increase the price by 0.0025 credits per request

Default:

Output Format string

The format of the generated image

Default: png

Options: jpeg, png, webp

Acceleration string

The acceleration level to use

Default: none

Options: none, regular, high

Directives

Advanced Keys:
num_inference_steps seed sync_mode enable_safety_checker enable_prompt_expansion acceleration output_format
Hidden Keys:
acceleration1 num_inference_steps sync_mode acceleration output_format
Raw JSON
{
    "identifier": "prunaai/Z-Image Turbo",
    "fal_endpoint": "fal-ai/z-image/turbo",
    "type": "image",
    "category": "text-to-image",
    "description": "Z-Image Turbo is a super fast text-to-image model of 6B parameters developed by Tongyi-MAI.",
    "pricing": {
        "version": 1,
        "base": {
            "unit": "image",
            "credits": 1
        },
        "adjustments": [
            {
                "type": "multiplier_map",
                "key": "enable_prompt_expansion",
                "map": {
                    "true": 1.0025,
                    "false": 1
                },
                "default": 1
            }
        ],
        "display": {
            "min_credits": 1,
            "max_credits": 2
        }
    },
    "directives": {
        "advancedKeys": [
            "num_inference_steps",
            "seed",
            "sync_mode",
            "enable_safety_checker",
            "enable_prompt_expansion",
            "acceleration",
            "output_format"
        ],
        "hiddenKeys": [
            "acceleration1",
            "num_inference_steps",
            "sync_mode",
            "acceleration",
            "output_format"
        ],
        "inputTransforms": [],
        "imageArrayKeys": []
    },
    "fal": {
        "input_transforms": [
            {
                "type": "set_default",
                "key": "output_format",
                "value": "png"
            },
            {
                "type": "image_size_custom_object",
                "key": "image_size",
                "width_key": "width",
                "height_key": "height",
                "drop_width_height": true
            },
            {
                "type": "image_size_from_width_height_if_missing",
                "key": "image_size",
                "width_key": "width",
                "height_key": "height",
                "drop_width_height": true
            }
        ]
    },
    "inputSchema": {
        "type": "object",
        "title": "Input",
        "required": [
            "prompt"
        ],
        "properties": {
            "prompt": {
                "type": "string",
                "title": "Prompt",
                "x-order": 0,
                "description": "The prompt to generate an image from"
            },
            "image_size": {
                "enum": [
                    "square_hd",
                    "square",
                    "portrait_4_3",
                    "portrait_16_9",
                    "landscape_4_3",
                    "landscape_16_9",
                    "custom"
                ],
                "type": "string",
                "title": "Image Size",
                "description": "The size of the generated image. Use predefined aspect ratios or 'custom' for specific dimensions.",
                "default": "landscape_16_9",
                "x-order": 1
            },
            "width": {
                "type": "integer",
                "title": "Width",
                "default": 512,
                "maximum": 2048,
                "minimum": 64,
                "x-order": 2,
                "description": "Custom image width (only used when image_size='custom'). Default: 512"
            },
            "height": {
                "type": "integer",
                "title": "Height",
                "default": 512,
                "maximum": 2048,
                "minimum": 64,
                "x-order": 3,
                "description": "Custom image height (only used when image_size='custom'). Default: 512"
            },
            "num_inference_steps": {
                "type": "integer",
                "title": "Num Inference Steps",
                "default": 8,
                "minimum": 1,
                "x-order": 4,
                "description": "The number of inference steps to perform"
            },
            "seed": {
                "type": "integer",
                "title": "Seed",
                "x-order": 5,
                "description": "The same seed and the same prompt given to the same version of the model will output the same image every time"
            },
            "sync_mode": {
                "type": "boolean",
                "title": "Sync Mode",
                "default": false,
                "x-order": 6,
                "description": "If true, the media will be returned as a data URI and the output data won't be available in the request history"
            },
            "num_images": {
                "type": "integer",
                "title": "Number of Images",
                "default": 1,
                "minimum": 1,
                "maximum": 4,
                "x-order": 7,
                "description": "The number of images to generate"
            },
            "enable_safety_checker": {
                "type": "boolean",
                "title": "Enable Safety Checker",
                "default": true,
                "x-order": 8,
                "description": "If set to true, the safety checker will be enabled"
            },
            "enable_prompt_expansion": {
                "type": "boolean",
                "title": "Enable Prompt Expansion",
                "default": false,
                "x-order": 9,
                "description": "Whether to enable prompt expansion. Note: this will increase the price by 0.0025 credits per request"
            },
            "output_format": {
                "enum": [
                    "jpeg",
                    "png",
                    "webp"
                ],
                "type": "string",
                "title": "Output Format",
                "description": "The format of the generated image",
                "default": "png",
                "x-order": 10
            },
            "acceleration": {
                "enum": [
                    "none",
                    "regular",
                    "high"
                ],
                "type": "string",
                "title": "Acceleration",
                "description": "The acceleration level to use",
                "default": "none",
                "x-order": 11
            }
        }
    },
    "outputSchema": {
        "type": "object",
        "title": "Output",
        "properties": {
            "images": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "url": {
                            "type": "string",
                            "format": "uri"
                        },
                        "content_type": {
                            "type": "string"
                        },
                        "width": {
                            "type": "integer"
                        },
                        "height": {
                            "type": "integer"
                        }
                    }
                }
            },
            "timings": {
                "type": "object"
            },
            "seed": {
                "type": "integer"
            },
            "has_nsfw_concepts": {
                "type": "array",
                "items": {
                    "type": "boolean"
                }
            },
            "prompt": {
                "type": "string"
            }
        }
    }
}