About Z-Image Base LoRA
The Z-Image Base LoRA API serves the undistilled Z-Image base model, the right target for LoRAs trained on Base. The edit endpoint is a strength-controlled image to image (about 20 seconds); text to image takes about 50 seconds. A flat low price makes it a good LoRA validation step after training.
Call it with the model name alibaba/z-image-base-lora/text-to-image on POST /jobs/createTask, from $0.0144.
Introduction
Z-Image Base LoRA Text to image draws one image from a written prompt with up to three of your own LoRA files loaded. It runs Z-Image, the 6-billion-parameter base model from Alibaba's Tongyi-MAI team: the non-distilled build that its makers describe as the starting point for fine-tuning and LoRA training. Pick any of nine aspect ratios.
Choose a mode by starting material
| What you have | Mode |
|---|---|
| a written description | Z-Image Base LoRA Text to image |
| a picture to restyle | Z-Image Base LoRA Image to image |
Key features
The build LoRAs are trained on
Z-Image comes in a fast distilled Turbo build and this full Base build. The publisher recommends Base for fine-tuning; a LoRA trained on it, loaded here, changed the whole look in our tests.
Three at once
Up to three LoRAs per request, each with its own scale from 0 to 4. Nothing is uploaded to us in advance.
Photographs by default
Without a LoRA the model draws photographic images with natural skin, light and grain, and it follows long descriptive prompts closely.
Request parameters
| Parameter | Required | Description |
|---|---|---|
aspect_ratio | No | The shape of the frame: wide, square or tall. 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 21:9 · 9:21 · Default: 1:1 |
loras | No | Add LoRA weights compatible with this model to guide its style or character. Default: [] |
output_format | No | File type of the result. jpeg · png · webp · Default: jpeg |
prompt | Yes | Describe what you want to make. |
seed | No | Use the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647 |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per image |
|---|---|
| Standard | $0.0144 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
A house style for a whole set
Load a style LoRA, keep its trigger phrase at the front and run a list of prompts. Every image in the set shares the look.
Your own trained LoRAs
If you train on Z-Image Base, test the result here at full quality without running your own GPU.
Photographic stills
Portraits, editorial and cinematic frames from sentences, in nine shapes from 21:9 to 9:21.
Prompt guide & pro tips
Write sentences
Describe the subject, clothing, place, light and lens in full sentences. In our tests the model followed details such as a coffee cup held in both hands or seagulls on a pier.
Mind the trigger phrase
Prompt adherence is strong enough that a LoRA's trigger phrase alone can change the style. Compare runs with and without the LoRA file, not just with and without the phrase.
Use Base LoRAs, not Turbo ones
A LoRA trained on Z-Image Turbo broke the image apart on this build in our test, without an error. Look for LoRAs trained on Z-Image Base.
Allow time
Base runs many more sampling steps than Turbo: in our tests a text-to-image request took 10 to 57 seconds of model time, usually around half a minute.
API quick start
Call the Z-Image Base LoRA API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model alibaba/z-image-base-lora/text-to-image and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "alibaba/z-image-base-lora/text-to-image",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"aspect_ratio": "1:1",
"output_format": "jpeg"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
What to build with the Z-Image Base LoRA API
- Post-training LoRA validation with fixed seeds.
- Photo-to-illustration filters backed by a custom LoRA.
- Photographic portrait generation without LoRAs.
Z-Image Base LoRA parameter notes
- loras takes up to three Base-trained LoRAs.
- edit takes one image_url, strength 0 to 1 and resolution 1k or 1.5k.
- No negative prompt field.
- seed and output_format on both endpoints.
How Z-Image Base LoRA API pricing adds up
A flat low price per image on both endpoints; LoRAs do not add cost.
- Create Image: $0.0144 per run, $1.44 for 100 runs
Async jobs, webhooks and rate limits
Every Z-Image Base LoRA request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for alibaba/z-image-base-lora/text-to-image never runs or bills twice.
Common Z-Image Base LoRA API errors
| errorCode | What it usually means and how to fix it |
|---|---|
generation_failed | Turbo or other-architecture LoRAs can break the output; use Base-trained files. |
invalid_request | More than three LoRAs or strength outside 0 to 1. |
invalid_asset | A LoRA link that does not download the file. |
Z-Image Base LoRA API questions
How much does the Z-Image Base LoRA API cost?
Z-Image Base LoRA starts at $0.0144 per image with Create Image, its lowest-priced task. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for Z-Image Base LoRA in the API?
Put alibaba/z-image-base-lora/text-to-image for Create Image; alibaba/z-image-base-lora/edit for Edit Image in the model field of POST /jobs/createTask.
Which LoRAs belong on the Z-Image Base LoRA API?
LoRAs trained on Z-Image Base. Use alibaba/z-image-turbo-lora for Turbo LoRAs.
Does it support a negative prompt?
No.
How fast is the edit endpoint?
About 21 seconds.
What are the limits of the Z-Image Base LoRA API?
Aspect ratios: 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 +3; Prompt length (characters): 5,000. Requests outside these limits are rejected before anything is charged.
Can I try Z-Image Base LoRA without writing code?
Run Z-Image Base LoRA in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.
All Z-Image models
Z-Image Turbo LoRA is much faster and suits LoRAs trained for the Turbo build.
More about Z-Image Base LoRA
- Endpoints
- Z-Image Base LoRA · Edit Image

