Z-Image API for Low-Cost Text-to-Image Generation

Generate images through POST https://api.goenhance.ai/api/v1/images/generations with model: z-image. Z-Image costs a flat $0.004 (0.2 tokens) per image—the lowest per-image price in the GoEnhance image catalog—and returns an async img_uuid for polling or callbacks.
Create an API Key
A cinematic creative studio scene representing Z-Image text-to-image generation

A Focused Text-to-Image API

Prompt-First Generation

Use the required prompt field (1–2000 characters) to describe the image. The current unified endpoint requires model: z-image.
An imaginative single-scene visual showing a detailed prompt becoming a finished image

$0.004 Flat Per-Image Pricing

Every Z-Image generation costs 0.2 tokens, equal to $0.004. There are no resolution or volume tiers on this model, which makes cost estimation straightforward.
A refined single-scene production setup representing efficient image generation at scale
Use only the fields supported by the <code>z-image</code> request schema.

Z-Image API Parameters and Capabilities

Exact Model ID

Set model to exactly z-image. The page product name remains Z-Image.

Required Prompt

Provide a non-empty prompt from 1 to 2000 characters describing the image to generate.

Seven Aspect Ratios

Choose exactly one of 1:1, 2:3, 3:2, 4:3, 3:4, 16:9, or 9:16. Omit ratio to use the model default.

Optional Callback

Set custom_callback_url to a public HTTPS endpoint to receive processing, success, and failure updates.

Text-to-Image Only

This route does not accept reference images or editing inputs. Use another GoEnhance image model when your workflow needs reference-driven editing.

Schema Validation

Unsupported ratios are rejected during schema validation before tokens are deducted. There is no auto or 21:9 ratio for Z-Image.
A single rate makes a cheap AI image generation API budget easy to calculate.

Simple, Flat Z-Image Pricing

$0.004 per Image

Each successful generation is priced at exactly $0.004 per image.

0.2 Tokens per Image

The same charge is 0.2 tokens. GoEnhance tokens are priced at $10 for 500 tokens, or $0.02 per token.

No Resolution or Volume Tiers

Z-Image has one flat per-image tier. The request does not expose a resolution parameter, and the published rate does not change by volume.

Integrate Z-Image in Three Steps

1

1. Submit a Prompt

Send an authenticated POST to https://api.goenhance.ai/api/v1/images/generations with {"model":"z-image","prompt":"...","ratio":"16:9"}.
2

2. Save img_uuid

A successful submission returns data.img_uuid. Store it with your application record instead of waiting synchronously for the image.
3

3. Poll or Receive a Callback

Poll GET https://api.goenhance.ai/api/v1/jobs/detail?img_uuid=..., or register custom_callback_url and handle processing, success, and failure states.
Create an API Key
Use Z-Image where predictable per-image cost and a compact request shape matter.

Where a Low-Cost Text-to-Image API Fits

Content Illustrations

Generate visual concepts for articles, guides, and editorial workflows from text prompts.

Product Concepting

Create early visual directions for products, packaging, environments, or campaign themes before production.

Ad Creative Exploration

Produce distinct prompt-driven concepts for creative review while tracking a fixed cost per generated image.

Localized Visual Pipelines

Adapt prompts for regional themes and formats while selecting a supported landscape, portrait, or square ratio.

Background Generation

Generate scene backgrounds and atmospheric assets for downstream design workflows that do not require reference editing.

High-Volume Prototyping

Use the flat $0.004 rate to estimate prototype generation cost without resolution or volume-tier calculations.
Integration details for developers evaluating a low cost text to image API.

Z-Image API FAQ

What endpoint should I use for the Z-Image API?

Use POST https://api.goenhance.ai/api/v1/images/generations and set model to z-image. A legacy POST /api/v1/z-image route also exists, but the unified image endpoint is the current documented integration path.

Why do some searches use the Turbo name?

Alibaba/Tongyi refers to the upstream model as Z-Image Turbo. In the GoEnhance catalog and API documentation, the product name is Z-Image and the exact model ID is z-image.

How much does one Z-Image generation cost?

The flat price is $0.004 per image, equal to 0.2 tokens. There are no resolution tiers or volume tiers for this model.

Which ratios does Z-Image support?

Exactly seven: 1:1, 2:3, 3:2, 4:3, 3:4, 16:9, and 9:16. The route does not accept auto or 21:9.

Can I send a reference image or edit an existing image?

No. Z-Image on this route is text-to-image only and does not accept reference images, image-to-image inputs, or editing requests. Choose a different GoEnhance model for reference-driven editing.

Can I request a resolution or multiple images in one call?

No. The Z-Image schema has no resolution field and no n or batch-count parameter. Submit separate generation requests when you need multiple outputs.

How do asynchronous Z-Image jobs complete?

The generation response returns img_uuid. Poll /api/v1/jobs/detail?img_uuid=... or provide custom_callback_url to receive status changes.

Is GoEnhance affiliated with Alibaba?

No. Z-Image originates from Alibaba's Tongyi/Qwen organization. GoEnhance Open API is an independent third-party platform and is not affiliated with or endorsed by Alibaba.

Start Building with the Z-Image API