现已可用
Google
gemini-2.5-pro
Gemini 2.5 Pro is Google’s state-of-the-art AI model designed for advanced reasoning, coding, mathematics, and scientific tasks. It employs “thinking” capabilities, enabling it to reason through responses with enhanced accuracy...
TextToolsFilesVision1MAudioVideoCache
输入免费
输出免费
端点openai
能力
工具视觉音频输入视频文件缓存结构化
模态
输入
textimagefileaudiovideo
输出
text
快速统计
上下文窗口1M
最大输出65.5K
模式chat
分词器Gemini
知识截止2025
性能
正在加载性能数据...
支持的参数
| 参数 | 始终 | 默认值 |
|---|---|---|
| frequency_penalty | - | (不发送) |
| include_reasoning | - | |
| max_tokens | - | |
| reasoning | - | |
| response_format | - | |
| seed | - | |
| stop | - | |
| structured_outputs | - | |
| temperature | (不发送) | |
| tool_choice | - | |
| tools | - | |
| top_p | (不发送) |
§ 01
价格
| 输入价格 | $0.00 · 百万 Token |
| 输出价格 | $0.00 · 百万 Token |
| 兼容端点 | openai |
| 供应商 |
§ 02
在您的代码中调用 gemini-2.5-pro
将任意 OpenAI 兼容 SDK 指向 UnoRouter,并按名称请求模型。将 YOUR_API_KEY 替换为您控制台中的真实密钥。
bash
curl https://api.unorouter.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-2.5-pro",
"messages": [{"role": "user", "content": "Hello!"}]
}'§ 03
常见问题
gemini-2.5-pro 每百万 Token 多少钱?
输入价格 $0.00 / 百万 Token,输出价格 $0.00 / 百万 Token。按 Token 计费,不按批次大小取整。
如何通过 API 访问 gemini-2.5-pro?
向 UnoRouter 的 /v1/chat/completions 端点发送请求,指定 model=gemini-2.5-pro。任意 OpenAI 兼容客户端库均可使用。鉴权采用标准 Bearer Token。
§ 04