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 |
ã©ã¡ãã® ID ã䜿ã£ãŠã API ã§ãã®ã¢ãã«ãåŒã³åºããŸãã
google/gemini-2.5-proYou can use these names directly in the request model field.
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 ä»¶ã®ãªã¯ãšã¹ã