TokenLX
GEMINI

google/gemini-2.5-pro

2M  context$1.25/M tokens input$10.00/M tokens outputThinking   Supported27.5B  tokens servedText

Gemini 2.5 Pro — Google's top reasoning model with thinking mode. Frontier performance on coding and math.

Key strengths

  • Extended thinking mode
  • Strong coding benchmarks
  • Multimodal reasoning
  • 2M context option

Use cases

  • Frontier coding
  • Math and science research
  • Long-context analysis
  • Complex agents
Thinking token billing

When Thinking mode is enabled, reasoning tokens generated by the model are counted as billable output. This can increase total usage beyond the visible answer tokens.

reasoningfrontierlong-context

Google's google/gemini-2.5-pro is a frontier text generation model in the Gemini family. It excels at complex reasoning, agentic workflows, code generation, and long-form writing tasks, with native support for streaming, tool calling, JSON mode, and multi-turn conversations.

The model handles long-context inputs gracefully and is particularly effective for software engineering, multi-step research, and end-to-end project execution. Its tokenizer and pricing are optimized for high-throughput production workloads, with a competitive cost profile relative to other models in its tier.

google/gemini-2.5-pro is fully OpenAI-compatible — drop in your existing OpenAI Python or Node SDK and switch `baseURL` to `https://api.tokenlx.ai`. TokenLX transparently routes your requests to the optimal provider endpoint while preserving streaming, function-calling, and structured-output semantics.

Performance

Compare different providers across TokenLX · All locations.

Throughput
52
tok/s
Latency
135
ms
E2E Latency
200
ms
Tool Call Errors
0.08
%
Output Errors
0.39
%
Time to First Token
106
ms

Effective Pricing

Actual cost per million tokens across providers over the past 7 days.

Input
$1.25
per 1M tokens
7d agotoday
Output
$10.00
per 1M tokens
7d agotoday
Cache read
$0.13
per 1M tokens
7d agotoday
Input tiers
0M - 0.2M$1.25per 1M tokens
0.2M+$2.50per 1M tokens
Output tiers
0M - 0.2M$10.00per 1M tokens
0.2M+$15.00per 1M tokens

Recent activity

Total usage per day on TokenLX (last 30 days).

Prompt
10.00B
Completion
17.50B
30d ago15d agotoday

Sample code & API

TokenLX normalizes requests and responses across providers. Use any OpenAI SDK or our native SDK.

Control Thinking cost

Disable Thinking when you do not need explicit reasoning, or set a lower budget_tokens value to cap the reasoning length. Only enable return_thoughts when you need to inspect the thinking process.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.tokenlx.ai/v1",
    api_key="sk-tokenlx-...",
)

# Non-streaming
response = client.chat.completions.create(
    model="gemini-2.5-pro",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello!"},
    ],
    # Optional: enable Thinking / reasoning.
    extra_body={
        "thinking": {
            "enabled": True,
            "budget_tokens": 2048,
            "return_thoughts": True,
        }
    },
)
print(response.choices[0].message.content)

# Streaming
stream = client.chat.completions.create(
    model="gemini-2.5-pro",
    messages=[{"role": "user", "content": "Tell me a story"}],
    stream=True,
    extra_body={
        "thinking": {
            "enabled": True,
            "budget_tokens": 2048,
            "return_thoughts": True,
        }
    },
)
for chunk in stream:
    print(chunk.choices[0].delta.content or "", end="", flush=True)

Replace sk-aihubrouter-… with your key from the dashboard.