google/gemini-2.5-pro
Google 旗舰长上下文模型。100 万 token 上下文,推理、编码、视觉均强。在 GPQA、MATH、SWE-bench 上与顶级模型竞争,价格显著更低。
来源: gemini_x0.5 · 核验于 2026-07-21
缓存读 $0.0625/M · 缓存写 —/M
| 档位 | 输入 | 缓存读 | 缓存写 | 输出 |
|---|---|---|---|---|
| Standard ≤200K | $0.625 | $0.0625 | — | $5 |
| Standard >200K | $1.25 | $0.125 | — | $7.5 |
API 调用时用任一 ID 都可以。
google/gemini-2.5-pro请求里的 model 可以直接使用这些名字。
把 ONEHOP_KEY 占位符替换为你的 API Key。 创建 →
from openai import OpenAI
client = OpenAI(
base_url="https://api.onehop.ai/v1",
api_key="<ONEHOP_KEY>",
)
completion = client.chat.completions.create(
model="google/gemini-2.5-pro",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)最近 30 天 1 次请求