AI Gateway

Gemini 2.5 Pro

google/gemini-2.5-pro

Gemini 2.5 Pro is our most advanced reasoning Gemini model, capable of solving complex problems. It features a 2M token context window and supports multimodal inputs including text, images, audio, video, and PDF documents.

index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'google/gemini-2.5-pro',
prompt: 'Why is the sky blue?'
})