Aibubu
Visit Aibubu ↗
Image modelsNano Banana

Nano Banana 2.1

API model, parameter, and usage reference for Nano Banana 2.1.

Model ID

nano-banana-2.1

Parameters

FieldTypeDescription
promptstringRequired image prompt
input_modestringtext_to_image or image_edit
resolutionstring1K, 2K, or 4K; default 1K
nintegerDefault 1; only 1 is supported
aspect_ratiostringDefault 1:1; auto, 1:1, 5:4, 9:16, 21:9, 16:9, 3:2, 4:3, 4:5, 3:4, or 2:3
reference_imagesstring[]Up to 14 URLs for editing

Calling the model

Call GET /v1/models first and use the live schema.fields, capabilities, and pricing returned for this model. Parameters, defaults, enums, and regional availability can change.

  • Use POST /v1/generations for image or video models.
  • Use POST /v1/chat/completions or POST /v1/responses for text models.
  • Use POST /v1/quote to estimate usage before generation.

Example

{
  "model": "nano-banana-2.1",
  "prompt": "Describe the desired result clearly",
  "resolution": "1K",
  "aspect_ratio": "1:1",
  "n": 1
}

This page documents the model entry point. Always follow the current regional model schema instead of copying fields from another model.

On this page