Skip to main content
Make sure you add your s3 details for nano_banana server, so you can receive image generated in your bucket. Images generated without s3 details being added will be delete after 24hours

Request

Make a POST request to below endpoint and pass the required parameters in the request body.
curl

Body

json

Body Attributes

string
required
Your API Key used for request authorization.
string
required
Text prompt describing the image you want to generate.
string
Items you don’t want in the image.
number
default:"2048"
Width of the generated image. Must be between 1024 and 2048 and divisible by 32.
number
default:"2048"
Height of the generated image. Must be between 1024 and 2048 and divisible by 32.
number
Seed for reproducible generation. 0 triggers a random seed.
number
default:"1"
Number of images to return. Maximum: 4.
number
default:"7.5"
Starting noise scale for the generation process.
number
default:"7.5"
Ending noise scale for the generation process.
number
default:"2.5"
Noise clip standard deviation.
string
default:"no"
Whether to add a watermark to the generated image. Values: “yes” or “no”.
string
default:"no"
Store in temporary directory. Values: “yes” or “no”.
string
default:"no"
Return image as base64 encoded text. Values: “yes” or “no”.
string
A URL to receive a POST API call once the image generation is complete.
string
A unique ID used in the webhook response to identify the request.