G

Gemini 2.5 Pro

google/gemini-2.5-pro by Google vision tools reasoning

Google's reasoning model with 1M context.

Context window
1M
1,048,576 tokens
Max output
66K
65,536 tokens
Input price
$1.25
per 1M tokens
Output price
$10.00
per 1M tokens

Specifications

Model ID
google/gemini-2.5-pro
Provider
Google
Type
Chat completion
Input modalities
Text, image
Context window
1,048,576
Max output tokens
65,536
Status
Live

Supported parameters

10
max_tokenstemperaturetop_pstopseedresponse_formatstreamtoolstool_choicereasoning_effort

Capabilities

Tool calling
Vision input
Reasoning
Streaming

Estimate your cost


Per request
Per month (30 days)

Pricing

USD
Input, per 1M tokens
$1.25
Output, per 1M tokens
$10.00
Input, per 1K tokens
$0.00125
Output, per 1K tokens
$0.010000

Charged at the provider's list price. A 5.5% fee applies when buying credits. How billing works

Use the model ID google/gemini-2.5-pro with any OpenAI-compatible client.

from openai import OpenAI

client = OpenAI(
    base_url="https://ctrouter.ai/api/v1",
    api_key="$API_KEY",
)

completion = client.chat.completions.create(
    model="google/gemini-2.5-pro",
    messages=[{"role": "user", "content": "What is the meaning of life?"}],
    extra_headers={"HTTP-Referer": "https://your-app.com", "X-Title": "Your App"},  # optional
)
print(completion.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://ctrouter.ai/api/v1",
  apiKey: process.env.API_KEY,
});

const completion = await client.chat.completions.create({
  model: "google/gemini-2.5-pro",
  messages: [{ role: "user", content: "What is the meaning of life?" }],
});
console.log(completion.choices[0].message.content);
curl https://ctrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-2.5-pro",
    "messages": [{"role": "user", "content": "What is the meaning of life?"}]
  }'

More options (fallbacks, streaming, tools) in the API docs.

More from Google

View all