返回模型列表
Gemini 2.5 Flash
googlegoogle/gemini-2.5-flash
API 使用指南
Chat 调用
当你需要 Google 长上下文推理但不想更换 SDK 时,可通过 TheRouter 以 OpenAI-compatible chat model 调用 Gemini 2.5 Flash。
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."}]}'工具调用
Gemini 2.5 Flash 通过 TheRouter 的 OpenAI-compatible schema 支持函数调用,适合需要路由、检索或内部 API 动作的 agent。
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"]}}}]}'事实档案 — 本页每条断言可在此回溯来源
| 来源 | URL | 采集于 | |
|---|---|---|---|
| 发布日期 | developers.googleblog.com ↗ | 2026-06-03 | 已核实 |
| 知识截止 | ai.google.dev ↗ | 2026-06-03 | 已核实 |
| 输入 / 输出模态 | ai.google.dev ↗ | 2026-06-03 | 已核实 |
| 原生工具能力 | ai.google.dev ↗ | 2026-06-03 | 已核实 |
| 许可 | ai.google.dev ↗ | 2026-06-03 | 已核实 |
| Global-MMLU-Lite | llm-stats.com ↗ | 2026-06-03 | 待核实 |
| AIME 2024 | llm-stats.com ↗ | 2026-06-03 | 待核实 |
| GPQA | llm-stats.com ↗ | 2026-06-03 | 待核实 |
| MMMU | llm-stats.com ↗ | 2026-06-03 | 待核实 |
| Gemini 2.5 Flash 稳定 GA | developers.googleblog.com ↗ | 2026-06-03 | 已核实 |
| Google I/O 更新提升 Flash 效率与推理 | blog.google ↗ | 2026-06-03 | 已核实 |
| Gemini 2.5 Flash 是 TheRouter 上默认 Google 模型的正确选择吗? | ai.google.dev ↗ | 2026-06-03 | 待核实 |
| Gemini 2.5 Flash 与 Gemini 2.5 Flash-Lite 有什么不同? | developers.googleblog.com ↗ | 2026-06-03 | 待核实 |
| Gemini 2.5 Flash 是否通过 TheRouter 支持 OpenAI-compatible 工具调用? | ai.google.dev ↗ | 2026-06-03 | 待核实 |