Nano Banana 2.1 (Gemini Nano Banana 2.1)
google/gemini-nano-banana-2.1Nano Banana 2.1 (Gemini Nano Banana 2.1) is Google's Flash-tier image generation and editing model, succeeding Nano Banana 2 and producing images alongside text through the native Gemini generateContent API. It improves prompt adherence, text rendering, product recontextualization and multi-turn editing consistency, supports extreme aspect ratios and 1K to 4K output, and can ground generation with Google web and image search. Pick Nano Banana Pro instead for the most demanding professional design work.
- Prix d'entrée
- $1.50USD / 1 M tokens
- Prix de sortie
- $7.50USD / 1 M tokens
- Lecture du cache
- $1.50USD / 1 M tokens
- Fenêtre de contexte
- 65.5K
- Sortie max
- 32.8K
Essayer le modèle
API native Gemini
Ce modèle génère des images via l'API Gemini generateContent et n'est pas disponible sur Chat Completions ni dans le Playground. Utilisez l'exemple de requête ci-dessous avec votre clé API SandBase.
Fiche modèle
Spécifications
Tarification
- Entrée
- $1.50 / 1 M tokens
- Sortie
- $7.50 / 1 M tokens
- Lecture du cache
- $1.50 / 1 M tokens
Contexte et modalités
- Fenêtre de contexte
- 65 536 jetons
- Sortie max
- 32 768 jetons
- Entrée
- Texte, image
- Sortie
- Texte
Fonctionnalités
- Chat
- Pris en charge
- Vision
- Pris en charge
- Raisonnement
- Pris en charge
- Sortie structurée
- Non pris en charge
- Appel de fonction
- Non pris en charge
- Entrée audio
- Non pris en charge
Accès
- Fournisseur
- ID du modèle
- google/gemini-nano-banana-2.1
- Exécution
- sync
- URL de base
- https://api.sandbase.ai
- API
- Gemini generateContent API
- Point de terminaison
- /v1beta/models/google/gemini-nano-banana-2.1:generateContent
Commencer à construire
Envoyez votre première requête
Point de terminaison natif Gemini avec authentification par clé API SandBase et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1beta/models/google/gemini-nano-banana-2.1:generateContent" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "A watercolor illustration of a fox in a snowy forest"
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
]
}
}'Schéma d'entrée
10 paramètres · 1 obligatoires · 9 facultatifs
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
messages | object[] | Obligatoire | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
seed | integer | Facultatif | Best-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results. |
stop | string[] | Facultatif | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Facultatif | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_p | number | Facultatif | Nucleus sampling: only tokens within this cumulative probability are considered. · Min : 0 · Max : 1 |
stream | boolean | Facultatif | Stream the response as server-sent events instead of returning it in one piece. · Par défaut : false |
max_tokens | integer | Facultatif | Maximum number of tokens to generate in the response. · Max : 32768 |
temperature | number | Facultatif | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min : 0 · Max : 2 · Par défaut : 1 |
tool_choice | string | Facultatif | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Facultatif | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Schéma de sortie
| Champ | Type | Description |
|---|---|---|
id | string | Identifiant unique de la complétion |
object | string | Type d'objet, par exemple « chat.completion » |
model | string | Modèle utilisé pour la complétion |
choices | array | Liste des choix de complétion |
choices[].message.content | string | Contenu textuel généré |
choices[].finish_reason | string | Raison de l'arrêt de la génération |
usage.prompt_tokens | integer | Nombre de tokens dans le prompt |
usage.completion_tokens | integer | Nombre de tokens dans la complétion |
usage.total_tokens | integer | Nombre total de tokens utilisés |
Choisissez votre modèle
Comparer les modèles
| Modèle | Contexte | Entrée / 1M | Sortie / 1M | Lancement |
|---|---|---|---|---|
Google | 64K | $1.50 | $7.50 | 8 oct. 2026 |
Google | 1M | $3.00 | $15.00 | 18 nov. 2026 |
Google | 1M | $1.50 | $7.50 | 12 nov. 2026 |
Google | 1M | $4.00 | $20.00 | 10 nov. 2026 |
Google | 1M | $4.00 | $20.00 | 13 oct. 2026 |
Google | 1M | $1.50 | $7.50 | 2 sept. 2026 |
Questions
FAQ
Comment appeler Google Nano Banana 2.1 (Gemini Nano Banana 2.1) via SandBase ?
Créez une clé API SandBase, puis envoyez des requêtes avec l’identifiant de modèle "google/gemini-nano-banana-2.1" à Gemini generateContent API (/v1beta/models/google/gemini-nano-banana-2.1:generateContent) sur https://api.sandbase.ai. Les exemples de requêtes sur cette page montrent la charge utile exacte.
Combien coûte Google Nano Banana 2.1 (Gemini Nano Banana 2.1) ?
$1.50 pour 1 M de tokens d’entrée et $7.50 pour 1 M de tokens de sortie, facturé à la requête depuis votre solde SandBase. Les remises, lorsqu’elles sont disponibles, sont indiquées dans les tarifs de cette page.
Quelle est la fenêtre de contexte de Google Nano Banana 2.1 (Gemini Nano Banana 2.1) ?
65.5K tokens de contexte, avec jusqu’à 32.8K tokens de sortie par réponse.
Quelles fonctionnalités Google Nano Banana 2.1 (Gemini Nano Banana 2.1) prend-il en charge ?
Google Nano Banana 2.1 (Gemini Nano Banana 2.1) prend en charge vision (entrée d’image), raisonnement. Consultez les spécifications ci-dessus pour la liste complète.
Ai-je besoin d’un compte Google distinct ?
Non. Une seule clé API SandBase et un seul solde vous donnent accès à Google Nano Banana 2.1 (Gemini Nano Banana 2.1) et aux autres modèles du catalogue ; vous n’avez pas besoin de créer un compte Google séparément.
