← Back
Vercel
Vercel AI Gateway now supports Google's Gemini 3.1 Pro with medium thinking level
Vercel AI SDKVercel · releasemodelapiintegrationfeature · vercel.com ↗

Gemini 3.1 Pro Now Available on AI Gateway

Google's Gemini 3.1 Pro Preview is now live on Vercel's AI Gateway, giving developers access to Google's latest model through a unified API. This release brings quality improvements specifically optimized for software engineering tasks and agentic workflows, with enhanced capabilities for real-world applications in finance and spreadsheet operations.

Key Features

The new model introduces medium thinking level support, allowing developers to fine-tune the trade-off between cost, performance, and inference speed. This gives fine-grained control over how the model allocates computational resources for different tasks.

  • Improved efficiency: More efficient thinking across use cases with reduced token consumption
  • Better performance: Quality improvements while maintaining or reducing costs
  • Specialized strengths: Enhanced for software engineering, agentic workflows, finance, and spreadsheet applications

How to Use

To access Gemini 3.1 Pro, set the model identifier to google/gemini-3.1-pro-preview in the Vercel AI SDK and configure the thinking level via provider options:

const result = streamText({
  model: 'google/gemini-3.1-pro-preview',
  prompt: 'Your task here',
  providerOptions: {
    google: {
      thinking_level: 'medium',
    },
  },
});

Why AI Gateway

Vercel's AI Gateway provides unified access across multiple model providers with built-in observability, usage tracking, cost management, automatic retries, and intelligent failover—all without exposing provider API keys directly.

Developers can explore the model on the AI Gateway leaderboard or test it in the model playground before deploying.