Skip to content
Docs menu

Image models

Z-Image

On this page

Z-Image — fast, high-fidelity AI image generation & editing.

modelIdz-image
Modalityimage
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationEndpointDescription
Text to imagePOST /api/v1/generateBase generation from a text prompt.
Poll taskGET /api/v1/task/{id}?model=z-imageRetrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextarearequiredMust be between 3 and 1000 characters.
aspect_ratioselectrequired1:1, 4:3, 3:4, 16:9, 9:16
nsfw_checkerselectoptionalfalse, true

Example request

bash
curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer $YOUBOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"modelId":"z-image","input":{"prompt":"A weathered brass compass resting on an unfurled antique nautical map, warm candlelight catching its engraved edges and glass face, shallow depth of field, cinematic still-life mood.","aspect_ratio":"1:1","nsfw_checker":"true"}}'