Skip to main content
Generate images with a single synchronous request. The response returns image URLs (valid for 24 hours) and the cost of the generation.

Generate

Parameters

string
required
The image model id, e.g. flux-1.1-pro, nano-banana.
string
required
A text description of the image.
string
Dimensions, e.g. 1024x1024. Or use aspect_ratio where supported.
integer
default:"1"
Number of images to generate.
string
Things to avoid in the image (model dependent).

Response

Image URLs expire after 24 hours. Download and store any images you want to keep.