HiAPI
  • Models
  • Pricing
Search

Search HiAPI models, tools, and resources.

  • Models
  • Pricing
HiAPI

One API, All AI Models

Generate images, video, and audio with leading models through one production-ready API.

Get a free API key

AI Image API

  • All image models
  • GPT Image 2.5 Flare
  • GPT Image 2.5 Sunburst
  • GPT Image 2
  • Nano Banana 2
  • Seedream 5.0 Pro
  • Qwen Image 2.0 Pro
  • FLUX 1.1 Pro

AI Video API

  • All video models
  • Seedance 2.5
  • FLUX.3 Video
  • Seedance 2.0
  • Veo 3.1
  • Kling 3.0 Omni

AI Audio API

  • All audio models
  • MiniMax Music 2.6
  • MiniMax Music 1.5
  • ElevenLabs v3
  • Text to music
  • Text to speech

Product

  • Model marketplace
  • Playground
  • Pricing
  • Image API Cost Calculator
  • Free GPT Image 2 Generator
  • Free Background Remover
  • Free Nano Banana Image Generator
  • Outfit Preview
  • Product Photo Lab

Developers

  • Agent setup
  • Documentation
  • API Reference
  • Agent Skills
  • LLM integration index
  • Blog

Company

  • About
  • Contact support
  • Terms of Service
  • Privacy Policy

© 2026 hiapi. All rights reserved.

Open source on GitHubPython SDK on PyPI
  • What Z-Image is, and what it's good at
  • Getting an API key
  • A minimal correct call
  • The "z-image-turbo" question
  • Pricing
  • When to use Z-Image vs alternatives
  • FAQ
  • Takeaways
Back to blog
GuideJun 24, 20266 min read

Z-Image API: Pricing, API Key, Examples, and When to Use It

A developer's guide to calling Alibaba's Tongyi Z-Image through the HiAPI task API, what it's good at, and when to reach for something else.

hiapiZ-ImageAPI guidetext-to-image

Latest models

  • GPT Image 2.5 FlareFrom $0.050/image
  • GPT Image 2.5 SunburstFrom $0.050/image
  • GPT Image 2From $0.030/image
  • Nano Banana 2From $0.051/image
View all models

Explore models

TextChat and reasoningImageGenerate and editVideoText and image to videoAudioSpeech and music
Contents
  • What Z-Image is, and what it's good at
  • Getting an API key
  • A minimal correct call
  • The "z-image-turbo" question
  • Pricing
  • When to use Z-Image vs alternatives
  • FAQ
  • Takeaways

If you've searched for a "z-image api" or a "z-image-turbo api key," you probably already know the model is fast and cheap. What's harder to find is a straight answer on how to actually call it, what input it expects, and whether it's the right model for your job. This guide covers all three.

What Z-Image is, and what it's good at

Z-Image is Alibaba's Tongyi Z-Image, a text-to-image model whose whole design point is doing more with less. Alibaba's Tongyi-MAI team released the Turbo variant in late November 2025 as a compact, few-step model built to generate in only a handful of diffusion passes. In practice that efficiency is the reason you'd pick it.

Three things it does well:

  • Photorealism. It's tuned for realistic photography-style output: people, products, scenes. If your prompt describes something that exists in the real world, Z-Image tends to render it convincingly.
  • Speed. The Turbo variant is built to generate quickly, which keeps both latency and per-image cost down. For high-volume jobs, that adds up.
  • Bilingual on-image text. This is the standout. Most image models smear text into gibberish. Z-Image renders readable words inside the image, and it handles both English and Chinese. If you make signage, posters, product mockups, or anything with a label, this matters.

Be honest about the flip side. Z-Image is not the model for every job:

  • If you need strong instruction-following on complex, multi-step edits or compositions, GPT Image 2 is the stronger choice. Z-Image is a generator first, not an editing-and-reasoning engine.
  • If you want a specific stylized look (illustration, a particular artistic render) rather than photoreal, another model may match your intent more directly.
  • For text-heavy designs, always proofread the output. "Accurate text" means it's good, not that it's perfect every time. Render, then eyeball the words before you ship.

For a side-by-side on where each model lands, the best AI image generation API roundup compares the lineup. Full model details live on the Z-Image model page.

Getting an API key

You call Z-Image with a HiAPI key, the same key works across every model on the platform.

  1. Sign up at hiapi.ai. New accounts currently get a small free credit to test with, see pricing for the current offer.
  2. Open your dashboard and create an API key. It looks like sk-....
  3. Send it as a bearer token on every request: Authorization: Bearer sk-<your-key>.

That's it, no separate key per model, no allow-listing. If a call comes back 401 permission_denied, the key is missing or wrong.

A minimal correct call

Z-Image runs on HiAPI's unified async task API. You submit a task, then poll for the result. Two details people get wrong:

  1. The model id is z-image (plain). Pass it exactly like that.
  2. The input is prompt plus aspect_ratio (and an optional resolution). Do not send a size or width x height field. The API rejects it with additional properties 'size' not allowed.

Submit the task:

curl -X POST https://api.hiapi.ai/v1/tasks \
  -H "Authorization: Bearer sk-<your-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-image",
    "input": {
      "prompt": "A cozy independent coffee shop at golden hour, a wooden A-frame sign on the sidewalk reading \"FRESH COFFEE\", warm window light, shallow depth of field, photorealistic",
      "aspect_ratio": "1:1"
    }
  }'

The response gives you a task id:

{ "data": { "taskId": "task_abc123", "status": "queued" } }

Poll until it's done:

curl https://api.hiapi.ai/v1/tasks/task_abc123 \
  -H "Authorization: Bearer sk-<your-key>"

data.status moves through queued → handling → archiving → success (or fail). On success, the image is at data.output[0].url:

{
  "data": {
    "status": "success",
    "output": [{ "url": "https://.../z-image-result.png" }]
  }
}

Download that URL immediately. It's a temporary link and expires, so save the bytes or push them to your own storage right after you get them, don't hot-link it. Full request and polling reference is in the docs.

The "z-image-turbo" question

Search traffic for "z-image-turbo api" is real, so let's be clear. Turbo is the fast variant of the Z-Image family upstream. On HiAPI you don't call a separate z-image-turbo endpoint, the callable model id is z-image. If you've been trying to POST z-image-turbo and getting errors, that's why. Use z-image and you get the fast, efficient model behind it.

Pricing

Z-Image is billed pay-as-you-go, per image, and it's one of the more cost-efficient image models on the platform, which follows from its lightweight, few-step design. No subscription, you pay for what you generate.

Exact per-image numbers move, so this guide won't print one that's stale by the time you read it. Check the live pricing page for the current rate. If your priority is squeezing cost down across the whole catalog, the cheapest image generation API guide walks through the low-cost options and how to compare them.

When to use Z-Image vs alternatives

A quick way to decide:

Your jobReach for
Photoreal images, fast and cheap, with readable EN/ZH text on the imageZ-Image
Complex edits, precise instruction-following, image-to-image reasoningGPT Image 2
A specific non-photoreal or stylized aestheticA style-leaning model, compare on the model pages

In short: Z-Image is your default when you want realistic output at volume, or anything with text baked into the picture, without paying a premium. When the task is less "generate a great image" and more "follow a tricky instruction," move up to GPT Image 2.

FAQ

What is the Z-Image model id on the API? z-image (plain). Pass it as the model field in your POST /v1/tasks body.

Is there a separate z-image-turbo API or id? No. Turbo is the upstream speed variant of the model. On HiAPI the single callable id is z-image.

How do I get a z-image-turbo API key? The same way as any HiAPI key: sign up, create a key in the dashboard, and send it as Authorization: Bearer sk-<key>. The same key calls Z-Image and every other model.

Why does my request fail with "additional properties 'size' not allowed"? You sent a size (or width/height) field. Z-Image doesn't accept it. Use aspect_ratio (for example "1:1") instead, plus an optional resolution.

Can Z-Image render Chinese text inside the image? Yes. Accurate in-image text in both English and Chinese is one of its strengths. Proofread the output anyway, text rendering is strong but not flawless.

How much does Z-Image cost? Pay-as-you-go per image, and it's one of the cheaper options on the platform. See the pricing page for the current rate.

Takeaways

  • Call z-image. There is no separate z-image-turbo endpoint on HiAPI.
  • Send prompt and aspect_ratio. Never send size, the API rejects it.
  • Pick Z-Image for photorealism, speed, and bilingual on-image text at low cost. Pick GPT Image 2 when you need instruction-following on complex edits.
  • It's pay-as-you-go, check live pricing for the current number.
  • Download output[0].url immediately, the link expires.

Ready to try it? Grab a key in the dashboard and send your first z-image task.

Latest models

Explore models

Generate it with HiAPI

Choose a model, enter your prompt, and see the result.

Start generatingView model pricing

HiAPI Blog

Related articles

View all articles
Qwen-Audio 3.0 TTS Flash for E-Commerce: Voice Bots and Real-Time Order Alerts

Qwen-Audio 3.0 TTS Flash for E-Commerce: Voice Bots and Real-Time Order Alerts

Qwen-Audio 3.0 TTS Plus for E-Commerce Voiceovers

Qwen-Audio 3.0 TTS Plus for E-Commerce Voiceovers

DeepSeek V4 Flash for E-commerce: Catalog Copy, Support Replies & Tool Calls

DeepSeek V4 Flash for E-commerce: Catalog Copy, Support Replies & Tool Calls

GPT Image 2 logo design: What still needs work after generation?

GPT Image 2 logo design: What still needs work after generation?

How to use GPT Image 2.5: Generate an image, then change one color

How to use GPT Image 2.5: Generate an image, then change one color

Claude Opus 4.8 for E-Commerce: Copywriting, Visual QA & Support via hiapi API

Claude Opus 4.8 for E-Commerce: Copywriting, Visual QA & Support via hiapi API

HiAPI

Generate it with HiAPI

Start generating

Cost planning tool

Use the current HiAPI model price to estimate cost per generation, monthly spend, and annual budget.

Open the AI image generation cost calculator
View all models
GPT Image 2.5 FlareFrom $0.050/image
GPT Image 2.5 SunburstFrom $0.050/image
GPT Image 2From $0.030/image
Nano Banana 2From $0.051/image
Text
Image
Video
Audio