About Z-Image Turbo LoRA
Z-Image Turbo LoRA edit takes one image_url, a prompt, optional loras and strength, typically in about 12 seconds.
Call it with the model name alibaba/z-image-turbo-lora/edit on POST /jobs/createTask, from $0.012.
Introduction
Z-Image Turbo LoRA Image to image redraws one source image on Alibaba's Z-Image Turbo, guided by your prompt and up to three of your own LoRA files. A strength value from 0 to 1 decides how far the result moves from the source.
Choose a mode by starting material
| What you have | Mode |
|---|---|
| a picture to restyle | Z-Image Turbo LoRA Image to image |
| a written description only | Z-Image Turbo LoRA Text to image |
Key features
Strength you can reason about
The default 0.8 keeps composition and pose and replaces the style; in our tests 0.6 barely changed the picture, and values near 1 kept only a loose memory of the source. Pick strength first, then refine the prompt.
Style LoRAs do the restyling
A painting LoRA turned a stage photo into an oil painting, and a Realism LoRA turned a drawing into a photograph, both with the pose intact. The prompt describes the scene; the LoRA supplies the medium.
Request parameters
| Parameter | Required | Description |
|---|---|---|
image_url | Yes | The picture to start from. |
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. |
resolution | No | Choose an available output size. 1k · 1.5k · Default: 1k |
seed | No | Use the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647 |
strength | No | How far the result may move away from your input. ≥ 0 · ≤ 1 · Default: 0.8 |
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.012 |
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
Photo to painting, drawing to photo
Turn product shots, portraits or sketches into another medium while the layout stays put. A painting LoRA repaints a photo; a realism LoRA turns a drawing into something that looks shot on a camera.
Consistent looks across a set
Run a folder of images through the same LoRA, strength and seed to give them one shared style, for example a catalogue of product photos redrawn as watercolour or a gallery of portraits in one film look.
Prompt guide & pro tips
Describe the whole result
Write what the final image should contain, including the subject, the clothing and the setting, not only the change. The model regenerates the entire frame, so anything you leave out of the prompt is left to chance.
Start at 0.8, then move in steps of 0.1
If the source bleeds through too much, raise strength; if the pose or the face drifts, lower it. Keep the seed fixed while you compare so that strength is the only thing changing between two results.
Put the trigger word first
Style LoRAs expect their trigger at the start of the prompt, exactly as in text-to-image. Without it, a painting or pixel-art LoRA often shows only faintly.
Send a clean source
A sharp source with one clear subject restyles best. Crop away borders, watermarks and text first; the model redraws whatever it sees, including things you did not mean to keep.
API quick start
Call the Z-Image Turbo 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-turbo-lora/edit 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-turbo-lora/edit",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"resolution": "1k",
"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.
About the Z-Image Turbo LoRA Edit Image endpoint
The default strength of 0.8 restyles while keeping the layout; around 0.86 a classical painting LoRA fully converts a photo into oil paint.
Refer back to the source in the prompt ("the same man and woman") to keep the subjects.
The result keeps the source's aspect ratio; resolution sets the long side to 1024 or 1536 pixels.
There is no mask: the whole frame is redrawn.
Z-Image Turbo LoRA API questions
How much does the Z-Image Turbo LoRA API cost?
Z-Image Turbo LoRA starts at $0.012 per image with Edit 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 are the limits of the Z-Image Turbo LoRA · Edit Image API?
Resolutions: 1K · 1.5K; Prompt length (characters): 5,000; Largest upload: 10 MB. Requests outside these limits are rejected before anything is charged.
More about Z-Image Turbo LoRA
- Endpoints
- Z-Image Turbo LoRA · Create Image