Nano Banana (Gemini 2.5 Flash Image)

google/gemini-2.5-flash-image

A chat model with a 33K-token context window, at $0.315 per million input tokens and $2.625 per million output tokens.

Details

Maker
google
Kind
Chat
Context window
32,768 tokens
Max output
65,535 tokens
Input
$0.315 per million tokens
Cached input
$0.0315 per million tokens, 90% off
Cache write
Same as input
Output
$2.625 per million tokens
Capabilities
Vision, web search, image generation
Takes
Text, image
Returns
Text, image
Zero data retention
Not on every provider
No training on requests
Yes, on every provider
Released
2025-08-26
Newer model
google/gemini-3.7-flash-batchReleased later by the same maker, costs no more, and lists the same capabilities. Compare the two

Description

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.

Call it

curl
curl https://phantom.codes/v1/chat/completions \
  -H "Authorization: Bearer $PHANTOM_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-2.5-flash-image",
    "messages": [
      {"role": "user", "content": "Hello"}
    ]
  }'

Set PHANTOM_KEY to your key. Any OpenAI client works with the base URL https://phantom.codes/v1.