Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant
COLLECTION DE MODÈLESGOOGLE · NANO BANANA 2

Nano Banana 2 API

Nano Banana 2 is Google’s fast image generation and editing line: 2.1 for better text and 1K–4K output, 2 for speed, and 2 Lite for low latency.

Illustration de la collection Nano Banana 2 API

Explorer la gamme de modèles

Prévisualisez le style de sortie, comparez les capacités, puis ouvrez n’importe quel modèle pour accéder aux spécifications complètes, aux tarifs et à un Playground en direct.

Aperçu de la sortie de Nano Banana 2.1 Text to Image
image
Google

Nano Banana 2.1 Text to Image

Nano Banana 2.1 is Google's latest fast image generation model, with better prompt adherence, cleaner text rendering, extreme aspect ratios and 1K to 4K output.

  • text-to-image
  • commercial
TARIFÀ partir de $0.04
MODEimage
Voir le modèle
Aperçu de la sortie de Nano Banana 2.1 Edit
image
Google

Nano Banana 2.1 Edit

Nano Banana 2.1 Edit is Google's latest fast image editing model, fusing up to 14 reference images with stronger subject consistency and 1K to 4K output.

  • image-to-image
  • commercial
TARIFÀ partir de $0.042
MODEimage
Voir le modèle
Aperçu de la sortie de Nano Banana 2 Lite Text to Image
image
Google

Nano Banana 2 Lite Text to Image

Nano Banana 2 Lite by Google - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.

  • text-to-image
TARIFÀ partir de $0.0336
MODEimage
Voir le modèle
Aperçu de la sortie de Nano Banana 2 Lite Edit
image
Google

Nano Banana 2 Lite Edit

Nano Banana 2 Lite Edit is Google's low-latency, cost-efficient image editing model (Gemini 3.1 Flash Lite Image). Edit and combine supplied images with a text prompt; output is a 1K image.

  • image-to-image
TARIFÀ partir de $0.0336
MODEimage
Voir le modèle
Aperçu de la sortie de Nano Banana 2 Text to Image
image
Google

Nano Banana 2 Text to Image

Nano Banana 2 is Google's new state-of-the-art fast image generation and editing model

  • text-to-image
  • commercial
TARIFÀ partir de $0.067
MODEimage
Voir le modèle
Aperçu de la sortie de Nano Banana 2 Edit
image
Google

Nano Banana 2 Edit

Nano Banana 2 is Google's new state-of-the-art image generation and editing model

  • image-to-image
  • commercial
TARIFÀ partir de $0.067
MODEimage
Voir le modèle

Model lineup

The most used endpoints first.

ModelTaskWhat it does
Nano Banana 2 EditImage editNano Banana 2 is Google's new state-of-the-art image generation and editing model
Nano Banana 2 Text to ImageText → imageNano Banana 2 is Google's new state-of-the-art fast image generation and editing model
Nano Banana 2 Lite Text to ImageText → imageNano Banana 2 Lite by Google - generate stunning images from text prompts with state-of-the-art AI
Nano Banana 2.1 Text to ImageText → imageNano Banana 2.1 is Google's latest fast image generation model, with better prompt adherence, cleaner text rendering, extreme aspect ratios and 1K…
Nano Banana 2.1 EditImage editNano Banana 2.1 Edit is Google's latest fast image editing model, fusing up to 14 reference images with stronger subject consistency and 1K to 4K…
Nano Banana 2 Lite EditImage editNano Banana 2 Lite Edit is Google's low-latency, cost-efficient image editing model (Gemini 3.1 Flash Lite Image)

Nano Banana 2 on SandBase

The Nano Banana 2 line has three tiers, each with a text-to-image and an Edit endpoint.

  • Nano Banana 2.1: Google's latest fast image model, with better prompt adherence, cleaner text rendering, extreme aspect ratios and 1K–4K output. Edit fuses up to 14 reference images.
  • Nano Banana 2: fast generation and editing. Nano Banana 2 Edit is one of the most used edit endpoints on SandBase.
  • Nano Banana 2 Lite: low-latency, cost-efficient generation and editing (Gemini 3.1 Flash Lite Image).

For the top-quality tier, see Nano Banana Pro on Nano Banana API.

Start using Nano Banana 2 API on SandBase

One API key and one request shape for every model on this page.

  1. 01

    Create an API key

    Sign in to the SandBase Console and create a key on the API Keys page. Keep it in an environment variable and never commit it to source control.

    TERMINAL

    export SANDBASE_API_KEY="YOUR_SANDBASE_API_KEY"
  2. 02

    Submit a run

    Send a request to the Unified Run API with model google/nano-banana-2.1. Only the model field changes between models on this page.

    TERMINAL

    curl https://api.sandbase.ai/v1/run \
      -H "Authorization: Bearer $SANDBASE_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"model": "google/nano-banana-2.1", "prompt": "A nano banana dish plated in a fancy restaurant, Gemini-themed decor"}'
  3. 03

    Fetch the result

    The response includes a run id. Poll it every few seconds until the status is completed, then download the output URL.

    TERMINAL

    curl https://api.sandbase.ai/v1/run/$RUN_ID \
      -H "Authorization: Bearer $SANDBASE_API_KEY"

Questions, réponses

Nano Banana 2.1 or 2?

Use 2.1 for better text, extreme aspect ratios and 4K. Use 2 if your prompts are already tuned for it.

How many images can Nano Banana 2.1 Edit combine?

Up to 14 reference images.

What is Nano Banana 2 Lite for?

High-volume, latency-sensitive generation and editing at lower cost.

Is Nano Banana 2 the same as Gemini image?

Nano Banana is the name of Google’s Gemini image models; 2 Lite is Gemini 3.1 Flash Lite Image.

PRÊT / PARÉ / LANCER

Créez avec Nano Banana 2 API.

Une seule clé, des APIs cohérentes et une tarification à l’usage sur chaque modèle de cette page.

Obtenez votre clé APILire la documentation