Gemini 3.1 Flash Image (Nano Banana 2) · vercel
Gemini 3.1 Flash Image is optimized for image understanding and generation and offers a balance of price and performance.
Entrée, $/1M $0.067 / image
Sortie, $/1M $3.00
Lecture cache $0.05
Écriture cache —
Prix, $ $0.067 / image
Contexte 131 072
Sortie max. 32 768
Accepte images, texte
Dernière vérification 04.11.2026 12:00:14 UTC
Source page du fournisseur
Alertes de prix
API
API compatible OpenAI : les SDK officiels d'OpenAI fonctionnent avec cette URL de base. Remplacez YOUR_API_KEY par votre clé du fournisseur.
| URL de base de l'API | |
|---|---|
| Point de terminaison | |
| ID du modèle | |
curl
curl https://ai-gateway.vercel.sh/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "google/gemini-3.1-flash-image", "prompt": "a lighthouse at sunset", "n": 1, "size": "1024x1024"}'Python
import requests
r = requests.post(
"https://ai-gateway.vercel.sh/v1/images/generations",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "google/gemini-3.1-flash-image",
"prompt": "a lighthouse at sunset",
"n": 1,
"size": "1024x1024"
},
)
print(r.json())JavaScript
const r = await fetch("https://ai-gateway.vercel.sh/v1/images/generations", {
method: "POST",
headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "google/gemini-3.1-flash-image",
"prompt": "a lighthouse at sunset",
"n": 1,
"size": "1024x1024"
}),
});
console.log(await r.json());Requête (JSON)
{
"model": "google/gemini-3.1-flash-image",
"prompt": "a lighthouse at sunset",
"n": 1,
"size": "1024x1024"
}Réponse (JSON)
{
"created": 1760000000,
"data": [
{
"url": "https://...",
"b64_json": null
}
]
}L'adresse provient de la liste de modèles du fournisseur ; vérifiez-la dans sa documentation.
Source: AI Rate Card, https://airatecard.com/fr/c/offer%3Avercel%7Cgoogle/gemini-3.1-flash-image, prices checked 2026-11-04; seller's page: https://vercel.com/ai-gateway/models/gemini-3.1-flash-image
Détails techniques
ID: offer:vercel|google/gemini-3.1-flash-image