Skip to main content
Model id nano-banana-2 · Google · image · 2 modes: text-to-image, image-to-image.
This page reflects the current catalog. Inputs, allowed values, limits and prices can change as the model evolves; the field names and their meaning do not. For the exact schema at any time, your agent calls get_model with the mode.

Text To Image

Mode text-to-image. Text to image.

Input

Pricing

2.90–7.74 credits per image by resolution (1K default: 3.87). Fixed price: charged as estimated. For the exact price of a request, use estimate_generation.

Example

The arguments of generate_media:

Image To Image

Mode image-to-image. Edit or combine reference images.

Input

References: up to 8: 8 images. Assets, URLs and elements are accepted.

Pricing

2.90–7.74 credits per image by resolution (1K default: 3.87). Fixed price: charged as estimated. For the exact price of a request, use estimate_generation.

Example

The arguments of generate_media: