Skip to main content
Creates an image generation job. Credits are deducted when the job is queued. Poll Poll generation status with the returned generation.id until status is COMPLETED or FAILED.

Headers

Request body

string
required
Text prompt for the image.
string
Model key. Default: nano-banana-2.
string
Aspect ratio. Must be allowed for the chosen model. Default: auto (where supported).
string
Output size or quality tier. Must match the chosen model (see table above). Default: 2k for most models.
string[]
Reference image URLs (public HTTPS). Use for style or subject guidance. Max count depends on model (up to 14–16).
boolean
Enable NSFW filtering when supported by the provider pipeline.

Async completion

Poll Poll generation status with generation.id until status is COMPLETED or FAILED. Webhooks are not supported on the public API.

Response

Example

Errors