Google's latest flagship multimodal model with state-of-the-art performance on reasoning, coding, and multimodal understanding. Features native tool use, grounding, and million-token context window.
2.0M tokens
2
available
Cheapest
Google AI Studio
$28.00/1M tokens
Google AI Studio, Google Cloud Vertex AI
Sorted by total cost (input + output per 1M tokens). Click a row to view provider details.
| Provider | Pricing (per 1M) | Rate Limits | Regions | Health | Latency |
|---|---|---|---|---|---|
In: $7.00Out: $21.00 | 15 RPM / 1.0M TPM | us-east-1eu-west-1global | Healthy | 0ms | |
In: $7.00Out: $21.00 | 360 RPM / 4.0M TPM | us-east-1eu-west-1global | Healthy | 0ms |
Use this model via Google AI Studio with an OpenAI-compatible SDK.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.google-ai-studio.com/v1",
apiKey: process.env.GOOGLE_AI_STUDIO_API_KEY,
});
const response = await client.chat.completions.create({
model: "gemini-3.1-pro",
messages: [
{ role: "user", content: "Hello!" }
],
});
console.log(response.choices[0].message.content);Using Google AI Studio API • OpenAI-compatible SDK