Back to Models

Gemini 2.5 Flash

googlegoogle/gemini-2.5-flash

API guide

Chat completion

Use Gemini 2.5 Flash as an OpenAI-compatible chat model through TheRouter when you want Google long-context reasoning without changing SDKs.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Authorization: Bearer $THEROUTER_API_KEY"   -H "Content-Type: application/json"   -d '{"model":"google/gemini-2.5-flash","messages":[{"role":"user","content":"Summarize the migration risk in this pull request."}]}'

Tool calling

Gemini 2.5 Flash supports function calling through TheRouter's OpenAI-compatible schema, making it suitable for agents that need routing, retrieval, or internal API actions.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Authorization: Bearer $THEROUTER_API_KEY"   -H "Content-Type: application/json"   -d '{"model":"google/gemini-2.5-flash","messages":[{"role":"user","content":"Check order status for order_123."}],"tools":[{"type":"function","function":{"name":"get_order","parameters":{"type":"object","properties":{"order_id":{"type":"string"}},"required":["order_id"]}}}]}'
Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release datedevelopers.googleblog.com β†—2026-06-03verified
Knowledge cutoffai.google.dev β†—2026-06-03verified
Input / output modalitiesai.google.dev β†—2026-06-03verified
Native tool capabilitiesai.google.dev β†—2026-06-03verified
Licenseai.google.dev β†—2026-06-03verified
Global-MMLU-Litellm-stats.com β†—2026-06-03to verify
AIME 2024llm-stats.com β†—2026-06-03to verify
GPQAllm-stats.com β†—2026-06-03to verify
MMMUllm-stats.com β†—2026-06-03to verify
Gemini 2.5 Flash becomes stable GAdevelopers.googleblog.com β†—2026-06-03verified
Google I/O update improves Flash efficiency and reasoningblog.google β†—2026-06-03verified
Is Gemini 2.5 Flash the right default Google model on TheRouter?ai.google.dev β†—2026-06-03to verify
How is Gemini 2.5 Flash different from Gemini 2.5 Flash-Lite?developers.googleblog.com β†—2026-06-03to verify
Does Gemini 2.5 Flash support OpenAI-compatible tool calling through TheRouter?ai.google.dev β†—2026-06-03to verify
Help & contact