Images
Nano Banana 2 Reverse
POST
Nano Banana 2 Reverse
Text-to-Image
Endpoint
Request Headers
string
required
Enum:
application/jsonstring
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, 21x9string
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, 4kstring
default:"url"
Return format of the generated image.Available values:
url, b64_jsonResponse
string[]
Array of generated image URLs or Base64 strings
Image-to-Image
Endpoint
Request Headers
string
required
Enum:
application/jsonstring
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, 21x9string
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, 4kstring
default:"url"
Return format of the generated image.Available values:
url, b64_json2.4 Response
string[]
Array of generated image URLs or Base64 strings