Gemini 3.1 Pro is live on AI Gateway
Source: Vercel Blog
Feb 19 2026 · 1 min read
Gemini 3.1 Pro Preview now on AI Gateway
Google’s Gemini 3.1 Pro Preview is available through AI Gateway. The release brings quality improvements for software‑engineering and agentic workflows, with better usability in finance and spreadsheet tasks. It also reduces token consumption while maintaining performance.
Using the model
Set the model identifier to google/gemini-3.1-pro-preview in the AI SDK. The model supports the medium thinking level for finer control over cost, performance, and speed.
import { streamText } from 'ai';
const result = streamText({
model: 'google/gemini-3.1-pro-preview',
prompt: `Review this pull request for security vulnerabilities,
suggest fixes, and update the test suite to cover edge cases.`,
providerOptions: {
google: {
thinking_level: 'medium',
},
},
});
AI Gateway features
AI Gateway offers a unified API for:
- Calling models and tracking usage/cost
- Configuring retries, failover, and performance optimizations for higher‑than‑provider uptime
- Built‑in observability
- Bring Your Own Key support
- Intelligent provider routing with automatic retries
Resources
- Learn more about AI Gateway
- View the AI Gateway model leaderboard
- Try the model in the model playground