Nano Banana 2 Text to Image
google/nano-banana-2Nano Banana 2 is Google's new state-of-the-art fast image generation and editing model
- Base price
- $0.06
$0.07USD / run - Execution
- async
- Model type
- image
- Input fields
- 6
Try the model
Playground
Examples
Select an example to load its inputs and result into the playground.
Model card
Specifications
Pricing
- Base price
- $0.06 / run
Context & modalities
- Input
- Schema-defined
- Output
- image
Capabilities
- Chat
- Not supported
- Vision
- Not supported
- Reasoning
- Not supported
- Structured output
- Not supported
- Function calling
- Not supported
- Audio input
- Not supported
Access
- Provider
- Model ID
- google/nano-banana-2
- Execution
- async
- Base URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
Human preference
Arena
Elo ratings from blind side-by-side votes, compared with other image and video models.
Rankings sourced from Artificial Analysis Arena
- Leaderboard
- Text to Image
- Rank
- #7 of 106
- Elo
- 1140 ±10
- Gap to #1
- −82
Text-to-image arena: people pick the better of two images generated from the same prompt, without seeing the model names.
- #2GPT Image 2.5 Flare (max)1207±10
- #3GPT Image 2 (high)1186±11
- #4Nano Banana 2.11176±12
- #5Grok Imagine Image 2.01166±12
- #6MAI-Image-2.61166±12
- #7Nano Banana 2 (Gemini 3.1 Flash Image)1140±10
- #8Muse Image1127±11
- #9GPT Image 1.5 (high)1123±11
- #10MAI-Image-2.6-Flash1119±12
- #11Nano Banana Pro (Gemini 3 Pro Image)1118±10
API README
Nano Banana 2 Text to Image
Nano Banana 2 (Gemini 3.1 Flash Image) is Google's fast image model with near-Pro quality, extreme aspect ratios up to 8:1, and optional web and image search grounding for current or factual subjects.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 50,000 characters. |
aspect_ratio | 21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16 / 4:1 / 1:4 / 8:1 / 1:8 | 1:1 | Output frame shape. |
output_format | jpeg / png | png | Output file format. |
resolution | 0.5K / 1K / 2K / 4K | 1K | Sets the per-image rate. |
enable_web_search | boolean | false | Ground the image in Google Search results. |
enable_image_search | boolean | false | Use image search results as visual references. |
Billing
$0.045 at 0.5K, $0.067 at 1K, $0.101 at 2K, and $0.151 at 4K per image, Google's list price. Turning on enable_web_search or enable_image_search adds $0.014 per request (charged once even if both are on).
| Request | 0.5K | 1K | 2K | 4K |
|---|---|---|---|---|
| One image | $0.045 | $0.067 | $0.101 | $0.151 |
Failed runs are not charged.
Prompting
- Turn on
enable_web_searchfor real places, products, or events. - Quote all text that must appear.
Limits
- One image per request.
Also on SandBase
Other Nano Banana endpoints: google/nano-banana-pro, google/nano-banana-pro/edit, google/nano-banana-2/edit, google/nano-banana-2-lite, google/nano-banana-2-lite/edit.
Start building
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "google/nano-banana-2",
"prompt": "A photo of a close-up portrait of an elderly Japanese ceramicist with deep, sun-etched wrinkles and a warm, knowing smile. He is carefully inspecting a freshly glazed tea bowl. The setting is his rustic, sun-drenched workshop. The scene is illuminated by soft, golden hour light streaming through a window, highlighting the fine texture of the clay. Captured with an 85mm portrait lens, resulting in a soft, blurred background (bokeh). The overall mood is serene and masterful. Vertical portrait orientation.",
"resolution": "1K",
"aspect_ratio": "1:1",
"output_format": "png",
"enable_web_search": false,
"enable_image_search": false
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Choose your model
Compare models
| Model | Type | Default price | Released |
|---|---|---|---|
Nano Banana 2 Text to ImageThis model Google | Image | $0.07 / run | Feb 26, 2026 |
Google | Image | $0.04 / run | Oct 6, 2026 |
Google | Image | $0.04 / run | Oct 6, 2026 |
Google | Image | $0.03 / run | Jun 30, 2026 |
Google | Image | $0.03 / run | Jun 30, 2026 |
Google | Image | $0.07 / run | Feb 26, 2026 |
Questions
FAQ
How do I call Google Nano Banana 2 Text to Image through SandBase?
Create a SandBase API key, then send requests with the model ID "google/nano-banana-2" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.
Do I need a separate Google account?
No. One SandBase API key and balance gives you access to Google Nano Banana 2 Text to Image and the other models in the catalog; you do not need to sign up with Google separately.

