Models/Z-Image/Image API
Live8 endpoints

Z-Image API — Fast, Low-Cost Text-to-Image Generation

The Z-Image API gives you programmatic access to Alibaba's Z-Image model family — Turbo, Base, and P text-to-image generation, plus LoRA support and LoRA training, all through one Muapi API key, from $0.004 per request.

Core GenerationTurbo, Base, and P text-to-image endpoints3 models
Text to ImageNew
Core Generation

Z-Image Turbo

A high-speed text-to-image model optimized for fast creative generation, producing detailed, high-contrast, high-resolution images.

ImageFast
$0.007/request
Try Model
Text to ImageNew
Core Generation

Z-Image Base

A general-purpose text-to-image model designed for reliable, high-quality image generation from natural-language prompts.

Image
$0.013/request
Try Model
Text to ImageNew
Core Generation

Z-Image P

A Z-Image text-to-image variant, the lowest-cost entry point into the family.

ImageFast
$0.004/request
Try Model
LoRA SupportGenerate with a custom-trained LoRA applied3 models
LoRA SupportNew
LoRA Support

Z-Image Base LoRA

Generate images with Z-Image Base while applying a custom-trained LoRA for a specific style or subject.

Image
$0.01/request
Try Model
LoRA SupportNew
LoRA Support

Z-Image Turbo LoRA

Generate images with Z-Image Turbo while applying a custom-trained LoRA for a specific style or subject.

ImageFast
$0.01/request
Try Model
LoRA SupportNew
LoRA Support

Z-Image Turbo Image-to-Image LoRA

Edit an existing image with Z-Image Turbo while applying a custom-trained LoRA.

ImageFast
$0.01/request
Try Model
LoRA TrainerTrain a custom LoRA on Z-Image Base or Turbo2 models
TrainingNew
LoRA Trainer

Z-Image LoRA Trainer

Train a custom LoRA on Z-Image from a set of reference images, producing reusable model weights.

Model weights
$2.50/request
Try Model
TrainingNew
LoRA Trainer

Z-Image Base LoRA Trainer

Train a custom LoRA specifically for Z-Image Base from a set of reference images.

Model weights
$2.50/request
Try Model

What is the Z-Image API?

The Z-Image API gives applications programmatic access to Alibaba's Z-Image text-to-image model family. Submit a text prompt and receive a generated image, with a Turbo tier for fast iteration and a Base tier for general-purpose quality.

Muapi exposes the full Z-Image endpoint family through one REST API. Use the image playground to compare Turbo, Base, and P, then train and apply a custom LoRA for a consistent style or subject.

Key Capabilities

Fast, Low-Cost Generation

Z-Image Turbo and P generate images at some of the lowest per-request pricing in Muapi's catalog.

General-Purpose Quality

Z-Image Base targets reliable, high-quality output for everyday text-to-image jobs.

Custom LoRA Support

Apply a custom-trained LoRA to Base or Turbo generations for a consistent style or subject.

LoRA Training

Train a reusable LoRA on Z-Image or Z-Image Base from your own reference images.

One API Key

Use Muapi authentication, billing, and task responses across every Z-Image endpoint.

Asynchronous Generation

Submit a task, store its request ID, and poll for the completed image output.

Z-Image API Endpoint Comparison

EndpointInputOutputPriceBest For
z-image-turboPromptImage$0.007/requestFast, high-contrast generation
z-image-basePromptImage$0.013/requestGeneral-purpose quality
z-image-pPromptImage$0.004/requestLowest-cost generation
z-image-base-text-to-image-loraPrompt + LoRAImage$0.01/requestCustom style on Base
z-image-turbo-text-to-image-loraPrompt + LoRAImage$0.01/requestCustom style on Turbo
z-image-turbo-image-to-image-loraImage + LoRAImage$0.01/requestCustom-style editing
z-image-lora-trainerReference imagesLoRA weights$2.50/requestTraining a reusable LoRA
z-image-base-lora-trainerReference imagesLoRA weights$2.50/requestTraining a LoRA for Base

Prices and supported fields are model-specific. Review the live Playground schema before shipping generated images in production.

How to Call the Z-Image API

Submit a JSON request with your Muapi API key, save the request ID, and poll the shared result endpoint.

1. Generate an image

curl -X POST https://api.muapi.ai/api/v1/z-image-turbo \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"A high-contrast studio portrait, dramatic rim lighting","width":1024,"height":1024}'

# Response: {"request_id":"REQUEST_ID"}

Call z-image-turbo with a prompt and dimensions.

2. Poll the result

curl https://api.muapi.ai/api/v1/predictions/REQUEST_ID/result \
  -H "x-api-key: YOUR_API_KEY"

# Poll until status is completed, then read the generated image URL from outputs.

Poll until the task is completed, then read the returned image URL.

Frequently Asked Questions

What is the difference between Z-Image Turbo, Base, and P?

Turbo is optimized for fast, high-contrast generation. Base targets general-purpose, reliable quality. P is the lowest-cost entry point into the family. All three accept a text prompt and return a generated image.

Can I use a custom LoRA with Z-Image?

Yes. z-image-base-text-to-image-lora and z-image-turbo-text-to-image-lora apply a custom-trained LoRA during generation, and z-image-turbo-image-to-image-lora applies one during image editing.

Can I train my own LoRA on Z-Image?

Yes. z-image-lora-trainer and z-image-base-lora-trainer train a reusable LoRA from a set of reference images, returning model weights you can reuse across future generations.

How much does the Z-Image API cost?

Core generation ranges from $0.004 per request (P) to $0.013 per request (Base); LoRA-support generation costs $0.01 per request; LoRA training costs $2.50 per request.

How do I get Z-Image API access?

Create a Muapi account, generate an API key, and call the endpoint matching your workflow. Access is available without a separate waitlist.

Ready to build with Z-Image?

Create one Muapi API key and connect fast text-to-image generation, LoRA-styled generation, and LoRA training in a single asynchronous workflow.