Skip to main content
POST
Generate an image

Authorizations

Authorization
string
header
required

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

Body

application/json
model
string
required
Example:

"google/gemini-2.5-flash-image"

prompt
string
required
Example:

"A clean product shot of a futuristic API dashboard"

size
string
Example:

"1024x1024"

n
integer
Example:

1

Response

200 - application/json

Generated image response

The response is of type object.