New users get free credits - no credit card required Get started
APIAny logoAPIAny
AI Models
PricingFree API
Resources
Sign InGet Started
Image Generation

Alibaba logoAlibaba

Z-Image API

Alibaba Z-Image is a lightweight text-to-image model for fast, cost-conscious generation across posters, product visuals, and high-volume content workflows.

24H Status Monitor
24h success rate: 100%
Z-Image

Model:

z-image
Price: from 8 credits per request · ≈ $0.004-$0.008High stability with detailed usage records on the APIAny platform.
PlaygroundHistoryPricingModel overviewUse casesAPIFAQ
z-image
92 (suggested: 2,000)

Output aspect ratio. Custom WxH pixel sizes remain accepted in JSON mode when supported upstream.

->

USD estimate $0.004-$0.008: highest recharge package uses $1 = 2,000 credits; entry package uses $1 = 1,000 credits.

Preview
No Task Running
Z-Image
IMAGEResult preview

History

Saved locally in this browser

0 running · 0 completed

Your generation history will appear here

Billing Rules

  • • Price shown is charged from the model configuration in admin.
  • • Calls consume current account credits and write usage records.
  • • Media tasks are processed with the same async pipeline as the public API.
Pricing
Model ID
Type
Quality
Price
z-image
Image Generation
Default
8 credits per request · ≈ $0.004-$0.008
Model IDz-image
TypeImage Generation
QualityDefault
Price8 credits per request · ≈ $0.004-$0.008

Model overview

What is the Z-Image API?

Alibaba Z-Image is a lightweight text-to-image model for fast, cost-conscious generation across posters, product visuals, and high-volume content workflows.

Start with the desired visual outcome, references, and delivery format, then shape the generation workflow around them.

APIAny exposes Z-Image through one documented API surface with live pricing, model status, request examples, and an on-page playground. Teams can evaluate the model here, then keep authentication, usage records, and production routing in the same platform.

Try Z-Image in the playground
Z-Image API workflow overview on APIAny
A visual map of the Z-Image workflow.

Use cases

What can you build with the Z-Image API?

These workflows show where Z-Image fits in a real product. Test the same inputs in the playground, compare the output with related models, and choose the route that meets your quality, latency, and budget requirements.

01

Campaign and marketing visuals

Use Z-Image to create visual directions for launches, ads, landing pages, and social campaigns. Standardize prompts and reference assets so a team can compare variants without rebuilding the generation workflow.

Try Z-Image in the playground
Z-Image API example for Campaign and marketing visuals
Campaign and marketing visuals with Z-Image.

02

Product and catalog content

Generate product scenes, catalog assets, presentation imagery, or review-ready content with Z-Image. Batch requests through the API when a catalog needs consistent formats and repeatable output.

Try Z-Image in the playground
Z-Image API example for Product and catalog content
Product and catalog content with Z-Image.

03

Rapid creative iteration

Turn a brief into multiple directions with Z-Image, then refine the strongest option through prompt changes or reference inputs. API-based iteration keeps experiments reproducible and easier to evaluate.

Try Z-Image in the playground
Z-Image API example for Rapid creative iteration
Rapid creative iteration with Z-Image.

Core capabilities

Key Z-Image API features

The following capabilities explain the practical input, output, and workflow characteristics that matter when evaluating Z-Image. Available request parameters remain visible in the live API reference on this page.

Z-Image capabilities and technical workflow
How Z-Image capabilities work together.

/01

Text prompt input

Describe the requested output or task in text and send it through the documented Z-Image API request.

/02

Image generation output

Receive generated image results through the API response or asynchronous task result, depending on the selected Z-Image endpoint.

/03

Low-latency execution

Use the faster Z-Image route for interactive experiences, rapid iteration, and workloads where response time matters.

/04

Cost-efficient scaling

Run higher-volume Z-Image workloads while using live pricing and request-level usage records to control spend.

/05

Multiple aspect ratios

Choose a supported frame shape for square, portrait, landscape, or platform-specific Z-Image output.

APIAny advantages

Why use Z-Image through APIAny?

APIAny combines direct model access with the operational controls needed to move from evaluation to production without maintaining a separate integration for every provider.

Z-Image production benefits and operational value
Production value delivered by Z-Image.

One stable API surface

Call Z-Image with an APIAny key and a documented request format. Keep your application integration stable while model versions and upstream routes evolve behind the gateway.

Transparent usage and pricing

Review the live Z-Image pricing rules before a request, estimate credits in the playground, and inspect request-level usage records after the call completes.

Production routing controls

Use model status, channel health, retry policy, and usage logs to operate Z-Image as part of a production workflow instead of treating it as an isolated demo.

Integration

How to integrate the Z-Image API

Move from a playground test to an authenticated production request in three steps. The page keeps the model identifier, request schema, pricing, and response examples together. Treat generation as an asynchronous media pipeline with durable task tracking, validation, and asset delivery.

Z-Image API integration from request to output
Connecting Z-Image from API request to result.
  1. 01

    Create an API key

    Sign in to APIAny, create a project API key, and assign only the model scope and budget controls your application needs.

  2. 02

    Send a Z-Image request

    Copy the request example from this page, set the model field to the selected Z-Image version, and send it to the documented APIAny endpoint.

  3. 03

    Monitor and refine

    Track status, latency, credits, and returned usage. Compare versions or related models with the same workload before shifting production traffic.

SourceAlibaba official documentation

ProviderAlibaba

Reviewed2026-07-20

FAQ

Z-Image API frequently asked questions

Direct answers about capabilities, use cases, integration, and choosing the right Z-Image route.

What is the Z-Image API?

Alibaba Z-Image is a lightweight text-to-image model for fast, cost-conscious generation across posters, product visuals, and high-volume content workflows. APIAny makes this model callable through an authenticated API with live pricing, status information, request examples, and a browser playground on the same page.

What can I build with the Z-Image API?

Common Z-Image workflows include Campaign and marketing visuals, Product and catalog content, Rapid creative iteration. The best fit depends on the input format, output quality, latency, and cost your product requires.

How do I call Z-Image through APIAny?

Create an APIAny key, use the endpoint documented on this page, and set the request model field to the selected Z-Image version. The playground can generate a working payload before you integrate it into application code.

How should I choose a Z-Image version?

Compare the versions shown on this page by price, supported parameters, and capabilities such as Text prompt input, Image generation output, Low-latency execution. Test a representative production input before choosing the default route.

API Reference

Call this model through a standard REST API. Authenticate with your API key, then pick an endpoint below to see its parameters and examples.

Authentication

Every request needs a Bearer token in the Authorization header. Create an API key in the console.

Authorization: Bearer YOUR_API_KEY
POSThttps://apiany.ai/v1/images/generations

Request parameters

ParameterTypeRequiredNotes
modelstringRequiredModel identifier to invoke. Use this model's ID.
promptstringRequiredText prompt describing what you want to generate.
sizestringOptionalOutput aspect ratio. Custom WxH pixel sizes remain accepted in JSON mode when supported upstream. · Options: 1:1, 16:9, 9:16, 4:3, 3:4 · Default: 1:1
callback_urlstringOptionalOptional webhook URL called when the async task finishes.

Request example

curl "https://apiany.ai/v1/images/generations" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "z-image",
  "prompt": "A clean product hero image for APIAny.AI, modern API gateway console, bright studio lighting",
  "size": "1:1"
}'

Response example

{
  "task_id": "task_abc123",
  "status": "pending",
  "poll_url": "/v1/tasks/task_abc123",
  "request_id": "req_abc123",
  "credits": {
    "reserved": 1000
  }
}

This endpoint is asynchronous: it returns a task_id immediately. Poll the task-status endpoint until status becomes succeeded, then read the result. Generated media links stay valid for 24 hours.

More models

Explore all models

GPT-Image 2

OpenAI logoImage Generation

Nano Banana

Google logoImage Generation

Nano Banana 2 Lite

Google logoImage Generation

Nano Banana 2

Google logoImage Generation

APIAny API gateway for every production AI model.

Popular Models

  • Seedance 2.0
  • GPT Image 2
  • Nano Banana 2
  • Z-Image
  • Gemini Omni

Collections

  • All Collections
  • GPT API Family
  • Seedance API Family
  • Gemini API Family
  • GPT Image API

Model Types

  • Text Generation
  • Image Generation
  • Video Generation
  • Audio Generation

Platform

  • Models
  • Pricing
  • Docs
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Refund Policy
© 2026 APIAny. All rights reserved.
support@apiany.ai
English
Français
Deutsch
中文
日本語
한국어
Español
APIAny logoAPIAny