SandBase is live — $1 in free credits on signupStart free ›

Alibaba modelsimage generation api

alibaba/z-image/base

Z Image Base by Alibaba - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.

Input
The prompt to generate an image from.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
The format of the generated image. Allowed values: jpeg, png.
The same seed and the same prompt given to the same version of the model will output the same image every time.
Idle

Example output — click Run to generate your own

API README

Z Image Base

Z Image Base Z-Image Base is the undistilled foundation of the Z-Image family, intended for customization and diverse prompt-led generation. Its modeling balances prompt interpretation, composition, and visual detail for creative use.

Use this foundation for research, fine-tuning, custom pipelines, and projects that value diversity over minimum latency. Because its undistilled behavior favors variation, compare several seeds and evaluate structural quality, subject anatomy, and prompt coverage before selecting outputs for later adaptation or fine-tuning.

Highlights

  • Z-Image Base Undistilled image foundation. Retains the full generative training signal for adaptation and research.
  • Z-Image Base High output diversity. Explores a wider range of compositions and visual interpretations.
  • Z-Image Base Fine-tuning readiness. Provides a suitable foundation for domain, style, or character adaptation.
  • Z-Image Base Detailed text-to-image synthesis. Builds polished photographic and illustrative scenes from descriptive prompts.

Pricing

Billing unitPrice
Per request$0.01

When to Use

✅ Good fit❌ Consider alternatives
The model's named workflow matches the source material and intended outputA different input modality or model route is required
A managed asynchronous result is suitable for the production pipelineA synchronous, interactive editor is essential
The documented controls cover the required duration, framing, or formatThe project needs controls outside this endpoint's schema
Creative iteration benefits from a repeatable request structureExact deterministic pixels, frames, geometry, or samples are mandatory
A finished downloadable media asset is the desired deliverableEditable source layers or a native project file are required

Prompt Guide

For generation, state the intended result first, then add the subject or source treatment, progression, style, and delivery constraints. Keep one creative variable per phrase, use the documented field names for controls, and change one setting at a time when comparing results.

{
  "aspect_ratio": "21:9",
  "output_format": "png",
  "prompt": "Grandmother knitting by a window, an empty chair by her"
}

Technical Specs

SpecValue
Model IDalibaba/z-image/base
Inputsaspect_ratio, output_format, prompt, seed
Required inputsprompt
Output fieldscontent_type, url
ExecutionAsync (submit, then poll for result)
Aspect Ratio21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16
Output Formatjpeg / png

Related Models

Related Models

alibaba/z-image/base/loraZ Image Base Lora is Alibaba's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.alibaba/z-image/turboZ Image Turbo is Alibaba's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.alibaba/z-image/turbo/editZ Image Turbo Edit by Alibaba - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.alibaba/z-image/turbo/edit/loraZ Image Turbo Edit is Alibaba's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.alibaba/z-image/turbo/inpaintZ Image Turbo Inpaint is Alibaba's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.alibaba/z-image/turbo/inpaint/loraZ Image Turbo Inpaint by Alibaba - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.alibaba/z-image/turbo/loraZ Image Turbo Lora by Alibaba - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.alibaba/z-image/turbo/tilingZ Image Turbo Tiling by Alibaba - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.