google/gemini-2.5-pro
Google's flagship long-context model. 1M-token context with strong reasoning, coding, and vision. Competitive with top-tier models on GPQA, MATH, and SWE-bench at significantly lower cost.
來源: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 次請求