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
| source | URL | retrieved | |
|---|---|---|---|
| Release date | developers.googleblog.com β | 2026-06-03 | verified |
| Knowledge cutoff | ai.google.dev β | 2026-06-03 | verified |
| Input / output modalities | ai.google.dev β | 2026-06-03 | verified |
| Native tool capabilities | ai.google.dev β | 2026-06-03 | verified |
| License | ai.google.dev β | 2026-06-03 | verified |
| Global-MMLU-Lite | llm-stats.com β | 2026-06-03 | to verify |
| AIME 2024 | llm-stats.com β | 2026-06-03 | to verify |
| GPQA | llm-stats.com β | 2026-06-03 | to verify |
| MMMU | llm-stats.com β | 2026-06-03 | to verify |
| Gemini 2.5 Flash becomes stable GA | developers.googleblog.com β | 2026-06-03 | verified |
| Google I/O update improves Flash efficiency and reasoning | blog.google β | 2026-06-03 | verified |
| Is Gemini 2.5 Flash the right default Google model on TheRouter? | ai.google.dev β | 2026-06-03 | to verify |
| How is Gemini 2.5 Flash different from Gemini 2.5 Flash-Lite? | developers.googleblog.com β | 2026-06-03 | to verify |
| Does Gemini 2.5 Flash support OpenAI-compatible tool calling through TheRouter? | ai.google.dev β | 2026-06-03 | to verify |