Skip to main content
POST
Gemini Native (Image)

Introduction

Nano Banana refers to Google Gemini image generation models: Nano Banana (gemini-2.5-flash-image) and Nano Banana Pro (gemini-3-pro-image-preview). They are called via the unified image API POST /v1/images/generations, supporting text-to-image, image-to-image, and multi-image composition. For full parameters and multi-model details, see Image Generation.

Authentication

string
required
Bearer Token, e.g. Bearer sk-xxxxxxxxxx

Supported models

Request examples

Common parameters

  • prompt: Text prompt for text-to-image
  • size: Aspect ratio, e.g. 16:9, 1:1
  • quality: Quality level, e.g. high
  • image_size: Output size, e.g. 1K, 2K, 3K
  • response_format: Gemini series only supports b64_json (base64 image)
  • contents: Used for image-to-image or multi-turn; format in Image Generation
For more parameters and model differences, see Image Generation.