On this page
Start with a named checkpoint and one reproducible prompt. Z-Image is a family, and settings intended for its Turbo variant should not be transferred to another variant without checking the model instructions.
This guide follows the official repository checked November 1, 2026. We have not downloaded the weights, run the pipeline, or measured memory and generation speed. The code is a documentation-based starting point for a compatible CUDA environment, not a promise that it works on every GPU or Mac.
Match the runtime before the download
The repository provides native and Diffusers paths. Follow its current dependency instructions for the path you choose; a pipeline unavailable in an older installed package is not fixed by renaming the model.
Record your GPU, driver, PyTorch, Diffusers, checkpoint revision, and precision. Check the chosen model card and license. A download that fits on disk can still exceed usable device memory during generation.
The following example uses the repository’s Z-Image-Turbo checkpoint and its Turbo-specific inference pattern. It deliberately omits optional attention backends and compilation so the first run has fewer dependencies.
Generate a controlled composition
After preparing the environment using the project’s instructions, save this as z_image_trial.py:
import torch
from diffusers import ZImagePipeline
if not torch.cuda.is_available():
raise SystemExit("This example requires a compatible CUDA environment.")
pipe = ZImagePipeline.from_pretrained(
"Tongyi-MAI/Z-Image-Turbo",
torch_dtype=torch.bfloat16,
low_cpu_mem_usage=False,
)
pipe.to("cuda")
image = pipe(
prompt=("A simple editorial still life: one blue ceramic cup beside "
"one closed cream notebook on a wooden desk. Side window light. "
"No people, no printed words, no additional objects."),
height=1024,
width=1024,
num_inference_steps=9,
guidance_scale=0.0,
generator=torch.Generator("cuda").manual_seed(42),
).images[0]
image.save("z-image-trial.png")
The prompt is original; the settings follow the official Turbo example. Bfloat16 support and available memory still need to match your hardware. Do not treat a CUDA visibility check as a complete compatibility test.
Check composition separately from appearance
Count the cup and notebook. Check whether text-like marks appeared despite the instruction, whether the objects have coherent geometry, and whether the lighting matches the brief. A beautiful image can fail a simple object-count requirement.
Keep the first output, including an imperfect one. Save prompt and settings in a sidecar note so a later comparison does not depend on remembering which script generated the file.
Change one variable at a time
Hold seed and environment fixed while changing the prompt. Then hold the prompt fixed when testing an inference setting. A fixed seed improves traceability within a controlled setup; it does not guarantee identical images across library versions, devices, or implementation changes.
If memory is insufficient, consult the repository’s documented offloading or alternative runtime options. Record those as a new configuration. Do not present its time or memory usage as if it came from the baseline script.
Use the result for a bounded purpose
This experiment can help assess composition following and workflow feasibility. It cannot establish a leaderboard rank, universal realism score, or suitability for every commercial use. For an existing product photo whose details must stay unchanged, an image-editing workflow asks a different question from text-to-image generation.
Sources & references
Written by Modelrovia Editorial. Our standards distinguish official claims from observed results.
How we research and test →

