gemini-2.5-pro pricing and API access
Run gemini-2.5-pro through Code By AI for $0.13 per 1M input tokens and $1.00 per 1M output tokens. Google lists the same model at $1.25 and $10.00; you pay about 90% less than that, with no monthly subscription.
gemini-2.5-pro is the default model for Gemini requests, so omitting the model parameter routes here.
Official price
$1.25
per 1M tokens, USD
Your price
$0.13
per 1M tokens, USD
Δ
−90%
1/10 of official price
| gemini-2.5-pro | Official price | Your price |
|---|---|---|
| Input | $1.25 | $0.13 |
| Cached input | $0.13 | $0.01 |
| Output | $10.00 | $1.00 |
How to use gemini-2.5-pro
Export GOOGLE_GEMINI_BASE_URL=https://www.codebyai.net/api/agent and GEMINI_API_KEY=sk-proj-xxxx, then launch the CLI, and use the model ID gemini-2.5-pro. The Gemini guide walks through the full configuration.
export GOOGLE_GEMINI_BASE_URL="https://www.codebyai.net/api/agent" export GEMINI_API_KEY="sk-proj-xxxx"Read the Gemini setup guide
Compare other Gemini models
gemini-2.5-pro FAQ
- How much does gemini-2.5-pro cost on Code By AI?
- gemini-2.5-pro costs $0.13 per 1M input tokens, $0.01 per 1M cached input tokens and $1.00 per 1M output tokens. Google lists the same model at $1.25 input and $10.00 output.
- Is gemini-2.5-pro the default Gemini model?
- Yes. gemini-2.5-pro is the default model for Gemini requests, so requests that omit the model parameter are routed here.
- How do I use gemini-2.5-pro?
- Export GOOGLE_GEMINI_BASE_URL=https://www.codebyai.net/api/agent and GEMINI_API_KEY in your shell, pass the model ID gemini-2.5-pro, then launch the CLI. The Gemini guide covers the full configuration.