
Nano Banana 2.1 now available on AI Gateway
Quick Answer
Google's Nano Banana 2.1 is now available on AI Gateway, enhancing image generation with features like product recontextualization and mask-based editing.
Quick Take
It delivers photorealistic results at Flash-tier latency and cost, accessible via the AI SDK, OpenAI-compatible API, or AI CLI.
Key Points
- Supports product recontextualization and mask-based editing for enhanced image manipulation.
- Delivers photorealistic skin tones and intricate materials at low latency and cost.
- Accessible via AI SDK, OpenAI-compatible API, or Vercel's open-source AI CLI.
- AI Gateway offers unified API for model calls, usage tracking, and performance optimizations.
- No markup on provider pricing, including for Bring Your Own Key (BYOK) requests.
📖 Reader Mode
~2 min readNano Banana 2.1 from Google is now available on AI Gateway. It improves image generation and editing over earlier Nano Banana models.
This release targets product recontextualization, mask- and ink-based editing, and factuality. Product recontextualization places an existing product in a new scene. Mask- and ink-based edits change only the region marked by a mask or by strokes drawn on the image. Factuality is how accurately images depict real-world subjects.
The model renders photorealistic skin tones, intricate materials, sharp lighting, and coherent backgrounds at the latency and cost of a Flash-tier model.
Call it through the AI SDK or the OpenAI-compatible Chat Completions API, or the AI CLI. AI CLI is an open-source command-line tool from Vercel Labs for generating text, images, video, and audio from your terminal. It runs on AI Gateway, so any Gateway model ID works with -m.
Use google/gemini-nano-banana-2.1 as the model name. Generated images are returned in result.files:
Try Nano Banana 2.1 in imagen.sh, or the model playground.
AI Gateway provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in custom reporting, Zero Data Retention support, budgets for API keys, routing rules, and more.
AI Gateway reflects provider pricing with no markup and does not charge a platform fee on inference, including on Bring Your Own Key (BYOK) requests.
You can view all image models available on AI Gateway.
— Originally published at vercel.com
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Vercel AI
See more →
The Agent Stack
The Agent Stack by Vercel AI provides essential building blocks for creating production-grade agents, enabling seamless integration across multiple AI models and secure operations. It features components like AI Gateway for model routing, Workflow SDK for durable execution, and Vercel Connect for scoped access, streamlining agent development and deployment across various platforms.

