Skip to main content
POST
Nano Banana Light Text-to-Image
Generate images from text descriptions

Request Headers

string
required
Enum value: application/json
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

string
default:"1x1"
The size of the generated imageAllowed values: 1x1, 2x3, 3x2, 3x4, 4x3, 4x5, 5x4, 9x16, 16x9, 21x9
string
required
A text description of the desired image. Images can be uploaded via URL. Maximum length is 1000 characters.
string
default:"1k"
Select the image generation qualityAllowed values: 1k, 2k, 4k
string
default:"b64_json"
The format in which the generated image is returned.Allowed values: url, b64_json

Response Information

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