Introduction
Z-Image Spicy accepts NSFW text-to-image briefs with independent width and height of 256–1536 pixels, defaulting to 1024 by 1536.
On Spicy, enable_prompt_expansion starts at false; enabling it rewrites the brief before generation, so leave it off when you want the submitted wording used directly.
A Spicy seed lets you compare wording at a chosen canvas size without guaranteeing the same image; 0 requests a new random starting point.
Spicy generates from text only, so there is no source-image input, negative-prompt field or selectable output format on this endpoint.
After a Spicy task finishes, retrieve its single image from the result asset URL; billing is per output image at your chosen settings.
Spicy’s dedicated NSFW image endpoint uses the same request fields for ordinary and adult briefs, without a maturity flag or additional platform content filter.
| Field | Value |
|---|---|
| Input | Text |
| Output | Image |
| Endpoint | Text to Image |
| Required input | Prompt (no character cap) |
| Dimensions | width and height set independently, 256-1536 pixels each |
| Prompt handling | On Spicy, |
| Reproducibility | A Spicy |
| Content policy | Spicy’s dedicated NSFW image endpoint uses the same request fields for ordinary and adult briefs, without a maturity flag or additional platform content filter. |
Key features & highlights
width and height in pixels, not a ratio to choose from
Instead of choosing from a ratio list, you name both dimensions between 256 and 1536. That means a frame built for the placement it will sit in — a 1024x1536 portrait, a 1536x640 header strip, a 512x512 thumbnail — and no crop between generation and delivery.
The prompt expander is off unless you turn it on
On Spicy, enable_prompt_expansion starts at false; enabling it rewrites the brief before generation, so leave it off when you want the submitted wording used directly.
Uncensored briefs are the ordinary case here
This is a dedicated uncensored tier, not a general model with the guardrails loosened. Spend the prompt on light direction, lens, palette and composition. There is no maturity flag to set, no declaration to send and no scanner between your request and the model.
Request parameters
| Parameter | Required | Description |
|---|---|---|
prompt | Yes | No character cap. Spend the room on light direction, wardrobe material, film look and palette; uncensored wording is passed through as written when expansion is off. at least 1 characters |
width | No | Output width in pixels, 256 to 1536, set independently of height. Keep the long side within roughly twice the short side unless the dead space is intentional. |
height | No | Output height in pixels, 256 to 1536, set independently of width. Generating at the placement's height avoids a crop that moves the subject away from where the layout expects it. |
enable_prompt_expansion | No | On Spicy, |
seed | No | A Spicy |
Pricing
| Specification | Price |
|---|---|
| $0.01235 / image |
| $0.0133 / image |
Use cases
Portrait and fashion sets
Hard venetian-blind light, rumpled linen, lace and silk at a size you choose. Pin a seed once a look lands, then run the same subject through several rooms and wardrobes to build a set that reads as one shoot.
Spicy briefs without a filter switch
Uncensored wording that filtered endpoints reject is passed through unchanged, and with expansion off nothing rephrases it on the way in. Same task lifecycle as any other model here: create, poll, fetch from platform storage.
Companion and role-play character art
Recurring characters for chat companions and role-play products, generated at the exact avatar and banner dimensions the product uses, so nothing is resampled between the model and the interface.
Placement-exact assets
Card art at 832x1216, a header at 1536x512, a square thumbnail at 512x512 — all from the same endpoint, all native rather than cropped, which keeps the subject where the layout expects it.
Prompt guide & pro tips
Name the frame in pixels
Set width and height for the placement rather than picking a ratio — 1024x1536 for a portrait, 1536x640 for a header, 512x512 for a thumbnail. Both sides accept anything from 256 to 1536.
Write the full brief, expansion off
Write the Spicy scene in full, including setting, materials and lighting, and keep expansion off when the original wording matters.
Pin the seed and build the set
Record the seed of a frame that works, then change one element per run — the room, the wardrobe, the light — so the series holds together. Setting seed to 0 asks for a fresh draw instead.
Z-Image Spicy accepts NSFW text-to-image briefs with independent width and height of 256–1536 pixels, defaulting to 1024 by 1536.
On Spicy, enable_prompt_expansion starts at false; enabling it rewrites the brief before generation, so leave it off when you want the submitted wording used directly.
A Spicy seed lets you compare wording at a chosen canvas size without guaranteeing the same image; 0 requests a new random starting point.
Spicy generates from text only, so there is no source-image input, negative-prompt field or selectable output format on this endpoint.
After a Spicy task finishes, retrieve its single image from the result asset URL; billing is per output image at your chosen settings.
Spicy’s dedicated NSFW image endpoint uses the same request fields for ordinary and adult briefs, without a maturity flag or additional platform content filter.
Photograph of an adult woman lying on her side across rumpled white linen in a black lace bodysuit, morning sun through venetian blinds casting hard stripes across her skin and the sheets, one arm stretched above her head, eyes closed, calm and warm, medium format film look, soft grain, honey and cream palette.
API quick start
# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "alibaba/z-image-spicy/text-to-image",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"enable_prompt_expansion": false
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"
See the API reference for authentication, the complete schema, polling, and error handling.












