Gemini 2.5 Flash API

Google's Gemini 2.5 Flash thinking model for everyday tasks

google/gemini-2.5-flash
GoogleConversation

About this model

Gemini 2.5 Flash is a model of Google’s Gemini 2.5 generation that Google describes as offering a balance of price and performance, with built-in thinking capabilities. It is the faster, lighter sibling of Gemini 2.5 Pro.

In this catalog it accepts text and images, supports tool calls, and is limited to a context window of about 66,000 tokens, which is smaller than the context Google documents for the model itself.

Pick it for everyday chat, summarization and tool-driven tasks where speed matters; choose Gemini 2.5 Pro for harder reasoning and longer inputs.

Use cases

  • Chat and summarization
  • Image understanding
  • Tool-calling assistants

Input and output

Input
Text and images
Output
Text, tool calls
Developer
Google
Type
Conversation
Context
66,000 tokens
Capabilities
Image input

Gemini 2.5 Flash request example

Use https://gatelum.com/v1 as the base URL and pass google/gemini-2.5-flash 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-flash",
  "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-flash
claude

Where to use Gemini 2.5 Flash

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