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.
- Prezzo input
- $1.50USD / 1M token
- Prezzo output
- $7.50USD / 1M token
- Lettura da cache
- $1.50USD / 1M token
- Finestra di contesto
- 65.5K
- Output massimo
- 32.8K
Prova il modello
API nativa Gemini
Questo modello genera immagini tramite la API generateContent di Gemini e non è disponibile su Chat Completions né nel Playground. Usa l'esempio di richiesta qui sotto con la tua chiave API SandBase.
Scheda del modello
Specifiche
Prezzi
- Input
- $1.50 / 1M token
- Output
- $7.50 / 1M token
- Lettura da cache
- $1.50 / 1M token
Contesto e modalità
- Finestra di contesto
- 65.536 token
- Output massimo
- 32.768 token
- Input
- Testo, immagine
- Output
- Testo
Funzionalità
- Chat
- Supportato
- Vision
- Supportato
- Ragionamento
- Supportato
- Output strutturato
- Non supportato
- Chiamata di funzione
- Non supportato
- Input audio
- Non supportato
Accesso
- Provider
- ID modello
- google/gemini-nano-banana-2.1
- Esecuzione
- sync
- URL base
- https://api.sandbase.ai
- API
- Gemini generateContent API
- Endpoint
- /v1beta/models/google/gemini-nano-banana-2.1:generateContent
Inizia a costruire
Invia la tua prima richiesta
Endpoint nativo Gemini con autenticazione tramite SandBase API key e tracciamento dell'utilizzo.
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"
]
}
}'Schema di input
10 parametri · 1 obbligatori · 9 facoltativi
| Parametro | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
messages | object[] | Obbligatorio | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
seed | integer | Facoltativo | Best-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results. |
stop | string[] | Facoltativo | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Facoltativo | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_p | number | Facoltativo | Nucleus sampling: only tokens within this cumulative probability are considered. · Min: 0 · Max: 1 |
stream | boolean | Facoltativo | Stream the response as server-sent events instead of returning it in one piece. · Predefinito: false |
max_tokens | integer | Facoltativo | Maximum number of tokens to generate in the response. · Max: 32768 |
temperature | number | Facoltativo | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min: 0 · Max: 2 · Predefinito: 1 |
tool_choice | string | Facoltativo | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Facoltativo | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Schema di output
| Campo | Tipo | Descrizione |
|---|---|---|
id | string | Identificatore univoco del completamento |
object | string | Tipo di oggetto, ad esempio "chat.completion" |
model | string | Modello usato per il completamento |
choices | array | Elenco delle alternative di completamento |
choices[].message.content | string | Contenuto di testo generato |
choices[].finish_reason | string | Motivo per cui la generazione si è interrotta |
usage.prompt_tokens | integer | Numero di token nel prompt |
usage.completion_tokens | integer | Numero di token nel completamento |
usage.total_tokens | integer | Token totali utilizzati |
Scegli il tuo modello
Confronta i modelli
| Modello | Contesto | Input / 1M | Output / 1M | Rilasciato |
|---|---|---|---|---|
Nano Banana 2.1 (Gemini Nano Banana 2.1)Questo modello Google | 64K | $1.50 | $7.50 | 8 ott 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 ott 2026 |
Google | 1M | $1.50 | $7.50 | 2 set 2026 |
Domande
FAQ
Come chiamo Google Nano Banana 2.1 (Gemini Nano Banana 2.1) tramite SandBase?
Crea una chiave API SandBase, poi invia richieste con l'ID modello "google/gemini-nano-banana-2.1" a Gemini generateContent API (/v1beta/models/google/gemini-nano-banana-2.1:generateContent) su https://api.sandbase.ai. Gli esempi di richiesta in questa pagina mostrano il payload esatto.
Quanto costa Google Nano Banana 2.1 (Gemini Nano Banana 2.1)?
$1.50 per 1M token di input e $7.50 per 1M token di output, addebitati per richiesta dal tuo saldo SandBase. Gli sconti, quando disponibili, sono indicati nei prezzi di questa pagina.
Qual è la finestra di contesto di Google Nano Banana 2.1 (Gemini Nano Banana 2.1)?
65.5K token di contesto, con fino a 32.8K token di output per risposta.
Quali funzionalità supporta Google Nano Banana 2.1 (Gemini Nano Banana 2.1)?
Google Nano Banana 2.1 (Gemini Nano Banana 2.1) supporta visione (input immagini), ragionamento. Consulta le Specifiche sopra per l'elenco completo.
Mi serve un account Google separato?
No. Una sola chiave API e un solo saldo SandBase ti danno accesso a Google Nano Banana 2.1 (Gemini Nano Banana 2.1) e agli altri modelli del catalogo; non è necessario registrarsi separatamente su Google.
