Skip to main content
POST
Create Generation Task

Overview

Generate images from text prompts using the Z-Image Spicy Pro model (z-image-spicy-pro) with custom dimensions and optional prompt rewriting.

Key Features

  • Text-to-image generation guided by prompts
  • Custom width and height from 256 to 2560 pixels
  • Optional prompt rewriting, disabled by default
  • Reproducible generation with seed

Example Requests

Basic

Custom Size with Prompt Rewriting

Pricing

Parameters

prompt

  • Type: string, required
  • Text prompt used to guide image generation

width / height

  • Range: 256–2560 pixels each
  • Default: 1024 × 1024

seed

  • Type: integer or null
  • Range: 0–2147483647
  • Default: 0 (random)

prompt_extend

  • Type: boolean or null
  • Default: false
  • When true, the prompt is rewritten and expanded before image generation; null uses the default

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string
required

Text prompt used to guide image generation.

Minimum string length: 1
width
integer
default:1024

Output image width in pixels.

Required range: 256 <= x <= 2560
height
integer
default:1024

Output image height in pixels.

Required range: 256 <= x <= 2560
seed
integer | null
default:0

Random seed. Set to 0 or null to generate a random seed.

Required range: 0 <= x <= 2147483647
prompt_extend
boolean | null
default:false

Whether to rewrite and expand the prompt before image generation. null uses the default.

Response

Accepted - Task created successfully

task_info
object