Skip to main content
POST
Generate image

Authorizations

Authorization
string
header
required

Bearer authentication using API key

Body

application/json

Request payload

Request format for image generation models

aspect_ratio
enum<string>
required

Aspect ratio

Available options:
1:1,
1:4,
1:8,
2:3,
3:2,
3:4,
4:1,
4:3,
4:5,
5:4,
8:1,
9:16,
16:9,
21:9,
auto
images
string[]
required

Array of input images, which can be data URL or image URL

Required array length: 1 - 14 elements
model
enum<string>
required

Model name to use for the request

Available options:
google/nano-banana-2-lite-edit
prompt
string
required

Text prompt for generation

size
enum<string>
required

Fixed size

Available options:
1k

Response

200 - application/json

Successful response

Standard async task creation response

code
string
required

Status code returned by the service

Example:

"success"

data
object
required

Response payload containing task details

message
string
required

Additional information about the request result