Nano Banana (Gemini 2.5 Flash Image) · vercel
Nano Banana (Gemini 2.5 Flash Image) is Google's first fully hybrid reasoning model, letting developers turn thinking on or off and set thinking budgets to balance quality, cost, and latency. Upgraded for rapid creative workflows, it can generate interleaved text and images and supports conversational, multi‑turn image editing in natural language. It’s also locale‑aware, enabling culturally and linguistically appropriate image generation for audiences worldwide.
Entrada, $/1M $0.039 / imagen
Salida, $/1M $2.50
Lectura de caché $0.03
Escritura de caché —
Precio, $ $0.039 / imagen
Contexto 32 768
Salida máx. 65 535
Acepta imágenes, texto
Última comprobación 04.11.2026 12:00:14 UTC
Fuente página del proveedor
Alertas de precio
API
API compatible con OpenAI: los SDK oficiales de OpenAI funcionan con esta URL base. Sustituye YOUR_API_KEY por tu clave del proveedor.
| URL base de la API | |
|---|---|
| Endpoint | |
| ID del modelo | |
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-2.5-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-2.5-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-2.5-flash-image",
"prompt": "a lighthouse at sunset",
"n": 1,
"size": "1024x1024"
}),
});
console.log(await r.json());Solicitud (JSON)
{
"model": "google/gemini-2.5-flash-image",
"prompt": "a lighthouse at sunset",
"n": 1,
"size": "1024x1024"
}Respuesta (JSON)
{
"created": 1760000000,
"data": [
{
"url": "https://...",
"b64_json": null
}
]
}La dirección se toma de la lista de modelos del proveedor; compruébala con su documentación.
Source: AI Rate Card, https://airatecard.com/es/c/offer%3Avercel%7Cgoogle/gemini-2.5-flash-image, prices checked 2026-11-04; seller's page: https://vercel.com/ai-gateway/models/gemini-2.5-flash-image
Datos técnicos
ID: offer:vercel|google/gemini-2.5-flash-image