Skip to main content
POST
Nano Banana 2 Reverse

Text-to-Image

Endpoint

Request Headers

string
required
Enum: application/json
string
required
Bearer authentication format, for example: Bearer \{\{API Key\}\}.

Request Body

string
default:"1x1"
Aspect ratio of the output image. The system will automatically map it to the corresponding pixel dimensions.Available values: 1x1, 2x3, 3x2, 3x4, 4x3, 4x5, 5x4, 9x16, 16x9, 21x9
string
required
Text prompt used to generate the image, supports both Chinese and English. Recommended to not exceed 1000 characters.
string
default:"1k"
Image generation quality level. Higher quality produces sharper and more detailed images.Available values: 1k, 2k, 4k
string
default:"url"
Return format of the generated image.Available values: url, b64_json

Response

string[]
Array of generated image URLs or Base64 strings

Image-to-Image

Endpoint

Request Headers

string
required
Enum: application/json
string
required
Bearer authentication format, for example: Bearer \{\{API Key\}\}.

Request Body

string
default:"1x1"
Aspect ratio of the output image. The system will automatically map it to the corresponding pixel dimensions.Available values: 1x1, 2x3, 3x2, 3x4, 4x3, 4x5, 5x4, 9x16, 16x9, 21x9
string
required
Reference image for image-to-image, supports URL or Base64 encoding.
string
required
Text prompt used to generate the image, supports both Chinese and English. Recommended to not exceed 1000 characters.
string
default:"1k"
Image generation quality level. Higher quality produces sharper and more detailed images.Available values: 1k, 2k, 4k
string
default:"url"
Return format of the generated image.Available values: url, b64_json

2.4 Response

string[]
Array of generated image URLs or Base64 strings