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

Alibaba modelsimage generation api

alibaba/z-image/base/lora

Z 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.

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.
List of LoRA weights to apply (maximum 3).
Idle

Example output — click Run to generate your own

API README

Z Image Base (LoRA)

Z Image Base (LoRA) Z-Image Base LoRA is the undistilled foundation of the Z-Image family, intended for customization and diverse prompt-led generation. The attached low-rank adaptation introduces a specialized aesthetic, subject, or production concept without replacing the underlying image model.

Use this foundation for research, fine-tuning, custom pipelines, and projects that value diversity over minimum latency. Include the adaptation’s learned concept naturally inside the brief so it interacts with the complete composition.

Highlights

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

Pricing

Billing unitPrice
Per request$0.012

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/lora
Inputsaspect_ratio, loras, 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/baseZ 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.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.