Gemini 2.5 Pro API

Google's Gemini 2.5 Pro thinking model for complex tasks

google/gemini-2.5-pro
GoogleConversation

About this model

Gemini 2.5 Pro is the most capable model of Google’s Gemini 2.5 generation. Google describes it as a thinking model for complex problems in code, math and STEM, and for analyzing large datasets and documents.

In this catalog it accepts text and images and has a context window of 1,048,576 tokens.

Pick it for demanding reasoning and long inputs; Gemini 2.5 Flash is the faster, lighter alternative when speed matters more than depth.

Use cases

  • Complex coding and debugging
  • Math and science reasoning
  • Analysis of long documents

Input and output

Input
Text and images
Output
Text
Developer
Google
Type
Conversation
Context
1,048,576 tokens
Capabilities
Image input

Gemini 2.5 Pro request example

Use https://gatelum.com/v1 as the base URL and pass google/gemini-2.5-pro in the model field. You create the key in your account after signing up.

curl --silent --show-error --fail-with-body \
  --header 'Authorization: Bearer glt_YOUR_KEY' \
  'https://gatelum.com/v1/chat/completions' \
  --header "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "google/gemini-2.5-pro",
  "messages": [
    {
      "role": "user",
      "content": "Hi! Tell me about yourself in two sentences."
    }
  ]
}
JSON
Claude Code and Anthropic-protocol clients

For clients using the Anthropic protocol, point the address at ANTHROPIC_BASE_URL=https://gatelum.com with no /v1. The model ID does not change.

macOS / Linux
export ANTHROPIC_BASE_URL=https://gatelum.com
export ANTHROPIC_AUTH_TOKEN=glt_YOUR_KEY
export ANTHROPIC_MODEL=google/gemini-2.5-pro
claude

Where to use Gemini 2.5 Pro

Guides with step-by-step instructions for the tools that support this model: