Authorizations
Bearer token authentication. Get your API key from the dashboard.
Body
application/json
The model to use for image generation
Example:
"gpt-image-1"
A text description of the desired image(s)
Maximum length:
1000
Example:
"A cute baby sea otter"
The number of images to generate
Required range:
1 <= x <= 10
The size of the generated images
Available options:
256x256
, 512x512
, 1024x1024
, 1792x1024
, 1024x1792
If set, generation progress updates will be sent as server-sent events
The format in which the generated images are returned
Available options:
url
, b64_json