Nano Banana 2 (Gemini 3.1 Flash Image)
google/gemini-3.1-flash-imageNano Banana 2 (Gemini 3.1 Flash Image) is Google's image generation and conversational image editing model in the Gemini 3 series, producing images alongside text from text, image, video and PDF input. Google positions it as the high-efficiency, low-latency counterpart to Nano Banana Pro for high-volume developer use, adding output resolutions from 0.5K to 4K, extra wide and tall aspect ratios, image search grounding and improved multilingual text rendering. Choose Nano Banana Pro for complex, precision design work.
- Eingabepreis
- $0.50USD / 1 Mio. Tokens
- Ausgabepreis
- $3.00USD / 1 Mio. Tokens
- Kontextfenster
- 131.1K
- Maximale Ausgabe
- 32.8K
Modell testen
Gemini-native API
Dieses Modell erzeugt Bilder über die Gemini generateContent API und ist weder in Chat Completions noch im Playground verfügbar. Verwenden Sie das folgende Anfragebeispiel mit Ihrem SandBase API-Schlüssel.
Modellkarte
Spezifikationen
Preisgestaltung
- Eingabe
- $0.50 / 1 Mio. Tokens
- Ausgabe
- $3 / 1 Mio. Tokens
Kontext & Modalitäten
- Kontextfenster
- 131.072 Tokens
- Maximale Ausgabe
- 32.768 Tokens
- Eingabe
- Text, Bild
- Ausgabe
- Text
Funktionen
- Chat
- Unterstützt
- Vision
- Unterstützt
- Reasoning
- Unterstützt
- Strukturierte Ausgabe
- Nicht unterstützt
- Function Calling
- Nicht unterstützt
- Audioeingabe
- Nicht unterstützt
Zugriff
- Anbieter
- Modell-ID
- google/gemini-3.1-flash-image
- Ausführung
- sync
- Basis-URL
- https://api.sandbase.ai
- API
- Gemini generateContent API
- Endpunkt
- /v1beta/models/google/gemini-3.1-flash-image:generateContent
Jetzt loslegen
Senden Sie Ihre erste Anfrage
Gemini-nativer Endpunkt mit SandBase API-Schlüssel-Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1beta/models/google/gemini-3.1-flash-image: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"
]
}
}'Eingabeschema
7 Parameter · 1 erforderlich · 6 optional
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
messages | object[] | Erforderlich | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
seed | integer | Optional | Best-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results. |
top_p | number | Optional | Nucleus sampling: only tokens within this cumulative probability are considered. · Min.: 0 · Max.: 1 |
stream | boolean | Optional | Stream the response as server-sent events instead of returning it in one piece. · Standard: false |
max_tokens | integer | Optional | Maximum number of tokens to generate in the response. · Max.: 32768 |
temperature | number | Optional | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min.: 0 · Max.: 2 · Standard: 1 |
response_format | object | Optional | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Ausgabeschema
| Feld | Typ | Beschreibung |
|---|---|---|
id | string | Eindeutige Kennung für die Completion |
object | string | Objekttyp, z. B. "chat.completion" |
model | string | Verwendetes Modell für die Completion |
choices | array | Liste der Completion-Optionen |
choices[].message.content | string | Generierter Textinhalt |
choices[].finish_reason | string | Grund, warum die Generierung gestoppt wurde |
usage.prompt_tokens | integer | Anzahl der Tokens im Prompt |
usage.completion_tokens | integer | Anzahl der Tokens in der Completion |
usage.total_tokens | integer | Insgesamt verwendete Tokens |
Wählen Sie Ihr Modell
Modelle vergleichen
| Modell | Kontext | Input / 1M | Output / 1M | Veröffentlicht |
|---|---|---|---|---|
Nano Banana 2 (Gemini 3.1 Flash Image)Dieses Modell Google | 128K | $0.50 | $3.00 | 18. Juni 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. Okt. 2026 |
Google | 64K | $1.50 | $7.50 | 8. Okt. 2026 |
Fragen
FAQ
Wie rufe ich Google Nano Banana 2 (Gemini 3.1 Flash Image) über SandBase auf?
Erstellen Sie einen SandBase API-Schlüssel und senden Sie dann Anfragen mit der Modell-ID "google/gemini-3.1-flash-image" an Gemini generateContent API (/v1beta/models/google/gemini-3.1-flash-image:generateContent) unter https://api.sandbase.ai. Die Anfragebeispiele auf dieser Seite zeigen die exakte Nutzlast.
Was kostet Google Nano Banana 2 (Gemini 3.1 Flash Image)?
$0.50 pro 1 Mio. Input-Tokens und $3 pro 1 Mio. Output-Tokens, pro Anfrage von Ihrem SandBase-Guthaben abgerechnet. Rabatte werden, falls verfügbar, in den Preisen auf dieser Seite angezeigt.
Wie groß ist das Kontextfenster von Google Nano Banana 2 (Gemini 3.1 Flash Image)?
131.1K Tokens Kontext, mit bis zu 32.8K Output-Tokens pro Antwort.
Welche Funktionen unterstützt Google Nano Banana 2 (Gemini 3.1 Flash Image)?
Google Nano Banana 2 (Gemini 3.1 Flash Image) unterstützt Vision (Bildeingabe), Reasoning. Die vollständige Liste finden Sie oben unter „Spezifikationen“.
Benötige ich ein separates Google-Konto?
Nein. Mit einem SandBase API-Schlüssel und Guthaben erhalten Sie Zugriff auf Google Nano Banana 2 (Gemini 3.1 Flash Image) und die anderen Modelle im Katalog; Sie müssen sich nicht separat bei Google registrieren.
