Gemini 3.1 Pro Preview

google/gemini-3.1-pro-preview

Improved SWE and agentic capabilities, improved token efficiency and thinking, and expanded thinking levels.

File InputTool UseReasoningVision (Image)Web Searchtiered-costImplicit Caching
index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'google/gemini-3.1-pro-preview',
prompt: 'Why is the sky blue?'
})