Gemini 2.5 Flash Image (Nano Banana)
Model Overview
Setup your API Key
API Schema
post
Body
modelstring · enumRequiredPossible values:
promptstringRequired
The text prompt describing the content, style, or composition of the image to be generated.
num_imagesnumber · min: 1 · max: 4OptionalDefault:
The number of images to generate.
1aspect_ratiostring · enumOptionalDefault:
The aspect ratio of the generated image.
1:1Possible values: providerstringOptionalExample:
Provider routing override. google runs native Google with no fallback; fal runs the fal.ai mirror; auto (default) uses the Google -> fal.ai fallback chain. Case-insensitive.
autoResponses
200Success
application/json
post/v1/images/generations
200Success
Quick Example

Last updated
Was this helpful?