Z Image
Ultra-fast text-to-image — photorealistic results in ~1 second with 8 inference steps.
# Works with Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents
npx skills add runapi-ai/z-image -g
Install the Z Image skill for me: 1. Clone https://github.com/runapi-ai/z-image 2. Copy the skills/z-image/ directory into your user-level skills directory (e.g. ~/.claude/skills/ for Claude Code, ~/.codex/skills/ for Codex). 3. Verify that SKILL.md is present. 4. Confirm the install path when done.
Z Image is Alibaba's ultra-fast text-to-image model that generates images in approximately one second using just 8 inference steps. It prioritizes generation speed while maintaining coherent, high-quality outputs.
- Installable agent skill
- Unified API key
- SDK examples included
- Las generaciones fallidas no se cobran
PRECIOS
FICHA TÉCNICA
| Model ID | z-image |
| Proveedor | Alibaba |
| Modalidad | image |
| Task type | asynchronous |
| Facturación | call |
| Endpoint | /api/v1/z_image/text_to_image |
| Commercial | Yes |
| Status | Operational |
Use this model from your agent
# User prompt to the agent
"Generate a clean product shot of white sneakers on a gradient background, studio lighting."
// Code generated by the agent via @runapi.ai/z-image
import { ZImageClient } from '@runapi.ai/z-image';
const client = new ZImageClient();
const result = await client.textToImage.run({
model: 'z-image',
prompt: 'Generate a clean product shot of white sneakers on a gradient background, studio lighting.',
});
How to call this model
Install the skill
Add the model skill to your agent or install the SDK package.
Authenticate once
Use your RunAPI key for every supported model.
Send a request
Use the unified schema for the endpoint you need.
Receive output
Poll by task ID or handle the callback when the generation completes.
SDK quickstart
curl -X POST https://runapi.ai/api/v1/z_image/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-image",
"prompt": "Generate a clean product shot of white sneakers on a gradient background, studio lighting."
}'
import { ZImageClient } from "@runapi.ai/z-image";
const client = new ZImageClient();
const result = await client.textToImage.run({
model: "z-image",
prompt: "Generate a clean product shot of white sneakers on a gradient background, studio lighting.",
});
require "runapi/z_image"
client = RunApi::ZImage::Client.new
result = client.text_to_image.run(
model: "z-image",
prompt: "Generate a clean product shot of white sneakers on a gradient background, studio lighting."
)
Where Z Image fits
Z Image is Alibaba's speed-optimized text-to-image model, generating results in ~1 second. Through RunAPI, it shares the same API shape and billing as all Alibaba models.
Why use Z Image through RunAPI
One API key
Use the same credentials across models and providers.
Agent-ready
Installable skills include docs and schema for tool calls.
Predictable billing
Usage-based pricing is visible before you call.
Frequently asked questions
How do I call this model?
Use the RunAPI SDK, CLI, or REST endpoint shown on this page.
Do failed generations cost money?
Las generaciones fallidas no se cobran
Can agents use it directly?
Yes. Install the model skill and your agent gets the docs, schema, and examples.
Models similar to Z Image
Start building with Z Image.
- text_to_image