GPT-4.1 vs Gemini 2.5 Pro
Comparing two large-context flagships for long-document processing, retrieval-augmented generation, and code-heavy development work.
Pricing & context
All figures below are list prices pulled directly from the Harpd pricing registry (last verified 2026-08-18). Prices change often — open each model’s source link to confirm before budgeting.
| Metric | GPT-4.1 | Gemini 2.5 Pro |
|---|---|---|
| Provider | OpenAI | |
| Input / 1M tokens | $2 | $1 |
| Output / 1M tokens | $8 | $10 |
| Cached input / 1M tokens | $0.2 | $0.13 |
| Batch discount | 50% off | 50% off |
| Context window | 1,000,000 tokens | 1,000,000 tokens |
| Source | OpenAI pricing ↗ | Google pricing ↗ |
Capabilities
GPT-4.1 pairs a 1M token context window with strong code generation and instruction-following, plus prompt caching to reduce repeat-prefix cost.
Capabilities
Gemini 2.5 Pro also provides a 1M token context window, adds native multimodal input and strong reasoning, and includes prompt caching for long-context use.
Both models sit at the top of the capability range and share a 1M-token context, so either can handle very long inputs. The better fit depends on whether your workload is code-centric, multimodal, or reasoning-heavy, and on which passes your acceptance bar. Price alone will not tell you which is safe to adopt — measure both on your real tasks.
Updated 2026-08-18.
Price tells you what a model costs. It does not tell you whether it can replace your current model on your real tasks.
- Benchmarks measured on Harpd are planned — see /benchmarks/.