Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Nano Banana 2 (Gemini 3.1 Flash Image)

google/gemini-3.1-flash-image

Nano 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
Produktionsroute

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
Google
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.

Produktions-API
Gemini generateContent API-Endpunkt
https://api.sandbase.ai/v1beta/models/google/gemini-3.1-flash-image:generateContent
Modell-ID
google/gemini-3.1-flash-image
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"
    ]
  }
}'
01

Eingabeschema

7 Parameter · 1 erforderlich · 6 optional

ParameterTypErforderlichBeschreibung
messagesobject[]ErforderlichConversation so far, as an ordered list of messages with a role (system, user or assistant) and content.
seedintegerOptionalBest-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results.
top_pnumberOptionalNucleus sampling: only tokens within this cumulative probability are considered. · Min.: 0 · Max.: 1
streambooleanOptionalStream the response as server-sent events instead of returning it in one piece. · Standard: false
max_tokensintegerOptionalMaximum number of tokens to generate in the response. · Max.: 32768
temperaturenumberOptionalSampling temperature. Higher values make output more random; lower values make it more focused. · Min.: 0 · Max.: 2 · Standard: 1
response_formatobjectOptionalOutput format, for example { "type": "json_object" } or a JSON Schema for structured output.
02

Ausgabeschema

FeldTypBeschreibung
idstringEindeutige Kennung für die Completion
objectstringObjekttyp, z. B. "chat.completion"
modelstringVerwendetes Modell für die Completion
choicesarrayListe der Completion-Optionen
choices[].message.contentstringGenerierter Textinhalt
choices[].finish_reasonstringGrund, warum die Generierung gestoppt wurde
usage.prompt_tokensintegerAnzahl der Tokens im Prompt
usage.completion_tokensintegerAnzahl der Tokens in der Completion
usage.total_tokensintegerInsgesamt verwendete Tokens

Wählen Sie Ihr Modell

Modelle vergleichen

Alle Sprachmodelle
ModellKontextInput / 1MOutput / 1MVeröffentlicht
Google128K$0.50$3.0018. Juni 2026
Google1M$3.00$15.0018. Nov. 2026
Google1M$1.50$7.5012. Nov. 2026
Google1M$4.00$20.0010. Nov. 2026
Google1M$4.00$20.0013. Okt. 2026
Google64K$1.50$7.508. 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.