gemini-3.1-flash-image KI-Bild-API
gemini-3.1-flash-image (Nano Banana 2): Erzeuge Bilder, bearbeite Referenzen und verfeinere Designs über Flatkey. Das Beispiel nutzt Gemini contents/parts, keinen austauschbaren Images-API-Request.
Ausgabe
Vorschau
Generiert mit Image 2
Anfrageübersicht
- Endpunkt
- POST /v1beta/models/gemini-3.1-flash-image:generateContent
- Modell-ID
- gemini-3.1-flash-image
- Seitenverhältnis
- 16:9
- Auflösung
- 1K
Nur Vorschau. Melden Sie sich an, um diese Anfrage an Flatkey zu senden.
{
"model": "gemini-3.1-flash-image",
"contents": [
{
"role": "user",
"parts": [
{
"text": "Scene: A cloaked figure crouches on a rain-slick elevated walkway beneath massive futuristic bridges. Cyan fog, magenta tower lights, railings, and wet reflections lead toward the distant city. Hold the figure's silhouette, facing direction, cloak edge, camera height, and neon light placement as a cinematic storyboard keyframe. No readable signs, logos, or watermark.\n\nComposition and rendering: Deliver one 16:9 storyboard keyframe, not a collage or an action sequence. Separate foreground, character plane and background through the existing light and atmospheric depth. Keep the stated pose and eyelines readable, and retain environmental landmarks for continuity. Match the described photographic, illustrated or puppet medium; give fabric and surfaces texture appropriate to that medium.\n\nAvoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above."
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
],
"imageConfig": {
"aspectRatio": "16:9",
"imageSize": "1K"
}
}
}API-Leistung
gemini-3.1-flash-image Zuverlässigkeit und Verfügbarkeit der API
Die Live-Telemetrie der Flatkey-Anfragen für gemini-3.1-flash-image erscheint hier, sobald genügend Produktionsverkehr vorliegt.
API-Aktivität
gemini-3.1-flash-image API-Nutzung und Anfrageaktivität
Verfolge Anfragevolumen und erfolgreiche Inferenzaktivität für gemini-3.1-flash-image im aktuellen Berichtszeitraum.
gemini-3.1-flash-image Preise
gemini-3.1-flash-image API-Preise und Abrechnung
Die Karten zeigen aktuelle Flatkey-Tarife für Eingabe- und Ausgabetokens. Ein Tokenpreis ist kein Festpreis pro Bild: Einstellungen, Referenzen und Ausgabe beeinflussen den Verbrauch. Direkte Google-Preise und Freikontingente gelten nicht automatisch.
Guthaben hinzufügen
Verwenden Sie dasselbe Flatkey-Guthaben und denselben API-Schlüssel für Bild-, Video-, Audio- und Textmodelle.
- Modelltyp
- Text zu Bild
- API
- /v1beta/models/gemini-3.1-flash-image:generateContent
- Abrechnungsgrundlage
- 1M tokens
- Ausgaben
- 1
gemini-3.1-flash-image KI-Bildgenerator und API: zentrale Funktionen
Die gemini-3.1-flash-image-Route von Google unterstützt Text · Bild. Katalogkategorien: Marketing.
Text zu Bild
Beschreibe Motiv, Komposition, Licht und gewünschten Text. Setze Ausgabesteuerungen als Request-Felder, nicht nur im Prompt.
Referenzbild
Füge Referenzen hinzu und nenne unveränderte sowie zu bearbeitende Teile. Beachte die Grenzen der Parametermatrix.
Ausgaben
Wähle nur die im Playground angebotenen Formate und Größen. Flash, Flash Lite und Pro haben unterschiedliche Ausgabelimits.
API
Behalte die genaue Modell-ID und contents/parts-Struktur bei. Teste vor der Stapelverarbeitung einen kleinen Request.
Vergleichen
gemini-3.1-flash-image API-Vergleich: Funktionen und Zugriff
Vergleiche die Katalogfakten für gemini-3.1-flash-image mit der Referenz der vorherigen Generation, bevor du die Integration änderst.
| Fähigkeit | Vorherige Generation | gemini-3.1-flash-image |
|---|---|---|
| Anbieter | In diesem Katalog-Snapshot nicht verifiziert | |
| Modalitäten | In diesem Katalog-Snapshot nicht verifiziert | Text · Bild |
| Kontext | In diesem Katalog-Snapshot nicht verifiziert | Das Kontextfenster ist im Katalog nicht aufgeführt |
| Endpunkt | In diesem Katalog-Snapshot nicht verifiziert | /v1beta/models/gemini-3.1-flash-image:generateContent |
| Abrechnung | In diesem Katalog-Snapshot nicht verifiziert | $0.5/$3 per 1M tokens |
Vor der Integration die richtige Anfrage wählen
Prüfen Sie Workflows, aktuelle Kosten und den exakten Flatkey-Parametervertrag.
Berechnet aus den aktuellen Einstellungen und dem Live-Katalogpreis, sofern ein fester Stückpreis vorliegt.
- Aktuelle Einstellung
- 1×
- Live-Preis
- $0.06
- Geschätzte Anfrage
- Nutzungsabhängiger Preis
Die Endabrechnung folgt Anfrage und Kontogruppe; Token- oder Staffelpreise ergeben keinen festen Schätzwert.
Workflows und Model ID
Nur verfügbare Workflows verwenden. Flatkey behält eine öffentliche ID; der Body wählt den Eingang.
Text zu Bild
Neues Bild aus Text erzeugen.
- Modell-ID
gemini-3.1-flash-image- Endpoint
/v1beta/models/gemini-3.1-flash-image:generateContent
Referenzgeführtes Bild
Referenzen für Bearbeitung und Varianten nutzen.
- Modell-ID
gemini-3.1-flash-image- Endpoint
/v1beta/models/gemini-3.1-flash-image:generateContent
Parameterkompatibilität
Werte aus derselben Konfiguration wie im Playground.
aspect_ratioSeitenverhältnis1:1 · 2:3 · 3:2 · 3:4 · 4:3 · 4:5 · 5:4 · 9:16 · 16:9 · 21:9
Standard: 1:1image_sizeGröße1K · 2K · 4K
Standard: 1KimageReferenzlimit4 Dateien
Endpoint: /v1beta/models/gemini-3.1-flash-image:generateContentVom ersten Test bis Produktion
Nutzen Sie denselben Vertrag in Playground und API und behandeln Sie Validierung, Guthaben, Status und Ergebnis explizit.
Anfragezyklus
- 1
Modell, Prompt, Referenzen und Ausgabe prüfen.
- 2
Bildanfrage senden.
- 3
Ergebnis oder asynchronen Task lesen.
- 4
Datei und Metadaten speichern.
Produktionsprüfungen
Nicht unterstützte Werte und Referenzen vorab blockieren.
Schlüssel, Guthaben, Limits und Gruppenpreise getrennt behandeln.
Zu ersetzenden Prompt oder Inhalt klar benennen.
Task-ID behalten, Wiederholungen begrenzen und Timeout nicht als Erfolg werten.
Prompt-Bibliothek
gemini-3.1-flash-image-Promptbeispiele für Bilderzeugung
Beginne mit einem gemini-3.1-flash-image-Prompt für Bilderzeugung und passe anschließend die im Playground angezeigten Anfragefelder an.
Generiert mit Image 2
Scene: A 16:9 futuristic game loadout frame shows a helmeted rider beside a black-and-orange motorcycle in a rainy industrial hangar. Blue-and-orange interface controls and a circular part-selection panel sit around the vehicle. Keep the rider, motorcycle geometry, wet floor reflections, lighting direction, and selected-part position fixed for a clean equipment swap. No readable words, logos, invented stats, or watermark. Composition and rendering: Deliver one 16:9 game-interface keyframe. Separate the character, held equipment and HUD into clear depth layers; keep slot spacing and icon scale consistent, with the selected item visually dominant. Preserve the scene-specific game art style. Let material edges catch the existing light without letting interface glow obscure the silhouette. Keep all equipment fully inside the frame. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.
Scene: A poolside sports broadcast catches a swimmer in a blue cap during freestyle, with one arm entering the water and a sharp splash across the lane. Use a low pool-deck camera, blue water, lane markings, and abstract blue lower-third graphics without readable text. Keep swimmer direction, splash shape, and framing consistent; no real athletes, teams, logos, or watermark. Composition and rendering: Deliver one 16:9 broadcast still at the decisive instant. Use coherent perspective for the playing surface and equipment, readable separation between competitors, and a softer crowd behind the action. Keep the principal subject sharp, with directional blur limited to fast extremities and spray. Preserve the specified broadcast angle and reserve overlay areas clear of the action. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.
Generiert mit Image 2
Scene: A metallic wireless-earbud charging case floats open above a glossy black surface while the two matching earbuds hover above their slots. Purple and cyan rim lights define the rounded metal, black interior, reflections, and empty dark background. Preserve the case, earbuds, hinge, highlights, and three-quarter camera angle. No readable branding, extra products, hands, or watermark. Composition and rendering: Deliver one 16:9 commercial product still. Keep the complete product silhouette inside generous crop-safe margins. Resolve edges, seams and material transitions precisely; shape highlights to describe volume without clipping bright surfaces or crushing dark details. Align reflections with the object and light source. Retain the stated camera angle and existing negative space; add no decorative props. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.
Generiert mit Image 2
Scene: A cloaked figure crouches on a rain-slick elevated walkway beneath massive futuristic bridges. Cyan fog, magenta tower lights, railings, and wet reflections lead toward the distant city. Hold the figure's silhouette, facing direction, cloak edge, camera height, and neon light placement as a cinematic storyboard keyframe. No readable signs, logos, or watermark. Composition and rendering: Deliver one 16:9 storyboard keyframe, not a collage or an action sequence. Separate foreground, character plane and background through the existing light and atmospheric depth. Keep the stated pose and eyelines readable, and retain environmental landmarks for continuity. Match the described photographic, illustrated or puppet medium; give fabric and surfaces texture appropriate to that medium. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.
Generiert mit Image 2
Scene: In a wet green park, a man in a coral-red raincoat and yellow boots struggles with an inverted rainbow umbrella in a gust of wind. His arms brace against the bent canopy while rain streaks through the trees and puddles reflect the bright colors. Keep the umbrella shape, body pose, wind direction, and safe footing clear; no injury, readable text, logos, or watermark. Composition and rendering: Deliver one 16:9 physical-comedy still at the described instant. Make the cause of the gag readable through body balance, grip and object spacing. Separate the reaction from the airborne props; retain believable gravity and contact points. Keep the face and important props sharp, with only restrained directional blur on fast edges. Preserve the stated lighting and room or stage layout. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.
Generiert mit Image 2
Scene: A softly faded historical dock scene shows several workers repairing a large wooden boat at a riverside boatyard. Timber ribs, scaffolding, hand tools, smaller boats, and weathered work clothes fill the wide documentary frame. Restore the wood grain, riverbank structures, faces, and natural color aging without modern objects, readable signs, logos, captions, or watermark. Composition and restoration: Deliver one 16:9 archival-style still. Preserve the original framing, period-specific construction and restrained tonal range; retain monochrome, sepia or faded color as described. Recover modest detail in faces, clothing and architecture without synthetic sharpening. Keep fine grain and authentic aging consistent across the frame; repair damage without replacing historical features. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.
Warum die gemini-3.1-flash-image-API
Warum gemini-3.1-flash-image über Flatkey nutzen?
Nutze ein Gateway für gemini-3.1-flash-image, Kontrollen und den restlichen Modellkatalog.
gemini-3.1-flash-image über eine API
Halte Modell-ID und Endpunkt von gemini-3.1-flash-image explizit und nutze denselben Flatkey-Schlüssel für andere Workloads.
Live-Katalogpreise
Sieh die aktuellen Abrechnungsdimensionen von gemini-3.1-flash-image vor dem Senden und bestätige die Endschätzung im Konto.
Praktische Modellübergabe
Teste einen gemini-3.1-flash-image-Prompt im öffentlichen Playground und übernimm dieselben Einstellungen in eine authentifizierte Integration.
Nutzungs- und Routingkontrollen
Zentralisiere Schlüssel, Kontingente und Routing für gemini-3.1-flash-image, ohne den providerseitigen Anwendungsablauf zu ändern.
API
gemini-3.1-flash-image API
Vier Wege mit demselben Schlüssel und Katalog. Wählen Sie einen ausführbaren Beispielweg.
curl https://router.flatkey.ai/v1beta/models/gemini-3.1-flash-image:generateContent \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-***" \ -d '{"model":"gemini-3.1-flash-image","contents":[{"role":"user","parts":[{"text":"Erstelle mit gemini-3.1-flash-image ein hochwertiges Produktbild: klare Komposition, präzises Licht, starker Motivfokus und realistische Details."}]}],"generationConfig":{"responseModalities":["TEXT","IMAGE"],"imageConfig":{"aspectRatio":"1:1","imageSize":"1K"}}}'
Häufige Fragen
gemini-3.1-flash-image API
Fragen zu Preisen, Funktionen und Nutzung
Antworten zu Preisen, Funktionen, Endpunkten und Kataloglimits von gemini-3.1-flash-image.




