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

An imaginative single-scene visual showing a detailed prompt becoming a finished image
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 <code>model</code> to exactly <code>z-image</code>. The page product name remains Z-Image.

Required Prompt

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

Seven Aspect Ratios

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

Optional Callback

Set <code>custom_callback_url</code> 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 <code>auto</code> or <code>21:9</code> 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. Submit a Prompt
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. Save img_uuid
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. Poll or Receive a Callback
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.
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

Start Building with the Z-Image API