Nano Banana 2 Image Editing
google/nano-banana-2/editNano Banana 2 is Google's new state-of-the-art image generation and editing model
- Base price
- $0.06USD / run
- Execution
- async
- Model type
- image
- Input fields
- 7
Try the model
Playground
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
Your output will appear here
Complete the inputs, then click Run.
Specifications
Pricing
- Base price
- $0.06 / run
- Billing formula
- (params.resolution == "0.5K" ? 0.04 : params.resolution == "2K" ? 0.1 : params.resolution == "4K" ? 0.14 : 0.06)
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/edit
- Execution
- async
- API
- Unified Run API
- Endpoint
- /v1/run
API README
Google Nano Banana 2 Image Editing
Fast image editing powered by Google's Nano Banana 2 model. Modify existing images with natural language — swap elements, combine subjects, change backgrounds, or restyle — with support for up to 14 reference images and web search grounding.
- Need to generate from scratch? Try Nano Banana 2.
Highlights
Multi-image synthesis — Accepts up to 14 reference images per request. Combine elements from multiple sources, apply styles cross-image, or use product photos as composition guides.
Web & Image Search grounding — Use Google Image Search to pull web images as visual context, enabling reference-aware edits without manual asset upload.
Extended aspect ratios — Output in extreme ratios (1:8, 8:1) for banners and scrolling content, plus all standard ratios.
Fast turnaround — Optimized for speed, making it suitable for high-volume editing workflows.
Pricing
| Resolution | Price |
|---|---|
| 0.5K | $0.04 |
| 1K | $0.06 |
| 2K | $0.10 |
| 4K | $0.14 |
| Web Search | Free |
| Image Search | Free |
When to Use
| ✅ Good fit | ❌ Consider alternatives |
|---|---|
| Virtual try-on (clothing on models) | Generating from scratch (use Generation model) |
| Product background swaps | Pixel-perfect mask control |
| Combining multiple items into one scene | Real-time interactive editing |
| Style transfer across images | Video manipulation |
| Batch product photo editing | Simple crops or color adjustments |
Technical Specs
| Spec | Value |
|---|---|
| Input | Text prompt + 1–14 image URLs |
| Output | PNG or JPEG |
| Resolution | 0.5K / 1K / 2K / 4K |
| 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 |
| Web Search | Google web + image search grounding |
| Execution | Async (submit → poll for result) |
| Typical latency | 20–40 seconds |
Related
- Nano Banana 2 — Text-to-image generation from scratch
- Nano Banana Pro Edit — Higher quality editing at higher cost
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/edit",
"images": [
"https://ai.google.dev/static/gemini-api/docs/images/man_in_white_glasses.jpg"
],
"prompt": "Make a 3 panel comic in a gritty, noir art style with high-contrast black and white inks. Put the character in a humurous scene.",
"resolution": "1K",
"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 | Context | Input / 1M | Output / 1M | Released |
|---|---|---|---|---|
Nano Banana 2 Image EditingThis model Google | — | — | — | Feb 26, 2026 |
Google | — | — | — | Jun 30, 2026 |
Google | — | — | — | Jun 30, 2026 |
Google | — | — | — | Jun 30, 2026 |
Google | — | — | — | Feb 26, 2026 |
Google | — | — | — | Nov 20, 2025 |
