megachangelog
Announcement

Gemini 3.1 Flash Image Preview (Nano Banana 2) now available on AI Gateway

Gemini 3.1 Flash Image Preview (Nano Banana 2) is now live on Vercel's AI Gateway with improved visual quality, Google Image Search grounding, configurable thinking levels, and new resolutions/aspect ratios. The model supports multimodal text and image generation with enhanced reasoning capabilities.

Gemini 3.1 Flash Image Preview (Nano Banana 2) is now available on AI Gateway.

This release improves visual quality while maintaining the generation speed and cost of flash-tier models.

Nano Banana 2 can use Google Image Search to ground outputs in real-world imagery. This helps with rendering lesser-known landmarks and objects by retrieving live visual data. This model also introduces configurable thinking levels (Minimal and High) to let the model reason through complex prompts before rendering. New resolutions and new aspect ratios (512p, 1:4 and 1:8) are available alongside the existing options to expand to support more types of creative assets.

To use this model, set model to in the AI SDK. Nano Banana 2 is a multimodal model. Use `streamText` or `generateText` to generate images alongside text responses. This example shows how the model can use web search to find live data.google/gemini-3.1-flash-image-preview

You can also change the thinking level: in this example, thinking is set to for a more thorough response. high

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 , support, and intelligent provider routing with automatic retries.observabilityBring Your Own Key

Learn more about , view the or try it in our .AI GatewayAI Gateway model leaderboardmodel playground

Read more

ai-gatewaygeminiimage-generationmultimodalgoogle

Source: original entry ↗

More from Vercel

Follow Vercel to get its new changes in your feed and email digest.

Feature

OpenAI Decisions API now available on AI Gateway

OpenAI's Decisions API is now accessible through Vercel's AI Gateway with an OpenAI-compatible endpoint, enabling decision models to answer typed questions and return probabilities, choices, and scores for routing, triage, and guardrails use cases. Support is available across the OpenAI SDK, AI SDK, HTTP API, and CLI with the latest versions.

ai-gatewayopenaiapidecisionssdks
Feature

Timestamp attributes now supported in Vercel Flags

Vercel Flags now supports timestamp attributes for entities, allowing you to create time-based targeting rules. Use this feature to run limited-time campaigns, show content between specific dates, or target users based on registration date.

flagstargetingfeaturetimestampscampaigns
Feature

Glyph Cluster now available in stealth on AI Gateway

Glyph Cluster, a reasoning model for coding and long-context analysis, is now available as a stealth model on Vercel's AI Gateway for Pro and Enterprise plan teams with purchased AI Gateway credits at no cost during the stealth period. The model supports function calling, streams responses, and can be accessed via AI SDK, OpenAI-compatible APIs, and coding agents.

ai-gatewaymodelscodingstealth
See all Vercel changes →