Skip to main content
POST
gemini-2.5-flash-image

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

Length must be between 1 and 100000.

Required string length: 1 - 100000
model
enum<string>

Must be one of: gemini-2.5-flash-image.

Available options:
gemini-2.5-flash-image
images
string<url>[]

Maximum 10 items.

Maximum array length: 10
quality
enum<string>

Must be one of: 1K.

Available options:
1K
size
enum<string>

Must be one of: 16x9, 1x1, 21x9, 2x3, 3x2, 3x4, 4x3, 4x5, 5x4, 9x16.

Available options:
16x9,
1x1,
21x9,
2x3,
3x2,
3x4,
4x3,
4x5,
5x4,
9x16

Response

Task accepted and queued for generation.

code
integer
Example:

0

data
object
msg
string
Example:

"success"

request_id
string<uuid>
Example:

"250b66dd-e1fb-4bb6-b5f6-c668efadc35d"