Skip to main content
POST
Nano Banana Pro Reverse

Text-to-Image

Endpoint

Request Headers

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

Request Body

string
default:"1x1"
Size of the generated image.Possible values: 1x1, 2x3, 3x2, 3x4, 4x3, 4x5, 5x4, 9x16, 16x9, 21x9
string
required
Text description of the desired image.
string
default:"1k"
Select image generation quality.Possible values: 1k, 2k, 4k
string
default:"url"
Format of the returned generated image.Possible values: url, b64_json

Response

object[]
required
List of generated images.
integer
required
Creation timestamp.

Image-to-Image

Endpoint

Request Headers

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

Request Body

string
Mask image URL or Base64 encoding.
string
default:"1x1"
Size of the generated image.Possible values: 1x1, 2x3, 3x2, 3x4, 4x3, 4x5, 5x4, 9x16, 16x9, 21x9
string[]
required
List of input images to process.Array length: 1 - 10
string
required
Text description of the desired image.
string
default:"1k"
Select image generation quality.Possible values: 1k, 2k, 4k
string
default:"url"
Format of the returned generated image.Possible values: url, b64_json

Response

object[]
required
List of generated images.
integer
required
Creation timestamp.