z-image-turboText-to-image generation using Z-Image.
/v1/images/generates/zimageCredit cost: 9
Authorization β This endpoint requires an API key. Pass it in the api-key header on every request. See the quickstart
| Name | Type | Status | Description |
|---|---|---|---|
prompt | string | Required | Text prompt describing the image to generate. |
aspect_ratio | string | Optional | Output aspect ratio. 1:13:22:34:33:416:99:16 (default: 1:1) |
Image generated successfullySingleImageResponse
| Name | Type | Description |
|---|---|---|
created | integer | Unix timestamp of when the response was created |
data | object[] | |
url | string | URL to download the result image |
curl -X POST "https://api.snapapi.ai/v1/images/generates/zimage" \
-H "api-key: YOUR_API_KEY" \
-F "prompt=value" \
-F "aspect_ratio=1:1"{
"created": 1745827200,
"data": [
{
"url": "https://outputs.snapapi.ai/outputs/abc123.png"
}
]
}Prompt
βYoung Chinese woman in red Hanfu, intricate embroidery. Impeccable makeup, red floral forehead pattern. Elaborate high bun, golden phoenix headdress, red flowers, beads. Holds round folding fan with lady, trees, bird. Neon lightning-bolt lamp, bright yellow glow, above extended left palm. Soft-lit outdoor night background, silhouetted tiered pagoda, blurred colorful distant lights.β