Nano Banana 2 · edenai
Gemini 3.1 Flash Image, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines advanced...
Entrée, $/1M $0.50
Sortie, $/1M $60.00
Contexte 131 072
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://api.edenai.run/v3/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "vertex/gemini-3.1-flash-image", "prompt": "a lighthouse at sunset", "n": 1, "size": "1024x1024"}'Python
import requests
r = requests.post(
"https://api.edenai.run/v3/images/generations",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "vertex/gemini-3.1-flash-image",
"prompt": "a lighthouse at sunset",
"n": 1,
"size": "1024x1024"
},
)
print(r.json())JavaScript
const r = await fetch("https://api.edenai.run/v3/images/generations", {
method: "POST",
headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "vertex/gemini-3.1-flash-image",
"prompt": "a lighthouse at sunset",
"n": 1,
"size": "1024x1024"
}),
});
console.log(await r.json());Requête (JSON)
{
"model": "vertex/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%3Aedenai%7Cvertex/gemini-3.1-flash-image, prices checked 2026-11-04; seller's page: https://edenai.co
Détails techniques
ID: offer:edenai|vertex/gemini-3.1-flash-image