Google: Gemini 2.5 Pro vs OpenAI: GPT-4.1 — API Pricing, 150K Cache & Latency Benchmark
Side-by-side unit economics audit comparing Google: Gemini 2.5 Pro (google/gemini-2.5-pro: Input $1.25/1M, Output $10/1M, Warm Cache Read $0.125/1M) against OpenAI: GPT-4.1 (openai/gpt-4.1: Input $2/1M, Output $8/1M, Warm Cache Read $0.5/1M).
Compare the listed input rate of $1.25/1M with the warm cache read rate of $0.125/1M. Batch and cache eligibility depend on the specific channel.
Lock static system prompt prefixes on OpenAI: GPT-4.1 to pay $0.5/1M warm cache rates instead of $2/1M uncached input, plus eligible startup cloud credits.
At the listed rates, the 10-turn scenario costs $0.4249 for Google: Gemini 2.5 Pro and $1.1350 for OpenAI: GPT-4.1. It assumes one cache write, nine warm reads of a 150,000-token prefix and 2,000 output tokens per turn. The difference is $0.7101; actual cache hits and fees may differ.
| Specification / FinOps Dimension | Google: Gemini 2.5 Pro (google/gemini-2.5-pro) | OpenAI: GPT-4.1 (openai/gpt-4.1) | Verified Advantage |
|---|---|---|---|
| Official Vendor API ID | google/gemini-2.5-pro | openai/gpt-4.1 | UMCE 563-Registry Locked |
| 563-Registry & Routing Eligibility | is_known: true | routable: true | is_known: true | routable: true | See registry status for each entry |
| Standard Uncached Input (/1M tokens) | $1.25 / 1M | $2 / 1M | Google: Gemini 2.5 Pro |
| Warm Prefix Cache Read (/1M tokens) | $0.125 / 1M | $0.5 / 1M | Google: Gemini 2.5 Pro |
| Standard Output (/1M tokens) | $10 / 1M | $8 / 1M | OpenAI: GPT-4.1 |
| Context Window Capacity | 1049K Tokens | 1048K Tokens | Google: Gemini 2.5 Pro |
| 150K Prompt × 10 Turns (Unpinned Cold + 2K Out) | $2.0750 | $3.1600 | Google: Gemini 2.5 Pro |
| 150K × 10 Turns Case A (100% Static Pinned) | $0.4249 (saves $1.6501) | $1.1350 (saves $2.0250) | Google: Gemini 2.5 Pro (-$0.7101) |
| 150K × 10 Turns Case B (90% Static + 10% Tail) | $0.5768 (saves $1.4982) | $1.3375 (saves $1.8225) | Google: Gemini 2.5 Pro |
| Illustrative P50 / P90 first-token latency | 381ms / 560ms (86 tok/s) | 279ms / 410ms (98 tok/s) | OpenAI: GPT-4.1 (-150ms) |
1. Full-Turn Rate-Card Substitution for Google: Gemini 2.5 Pro: At an uncached input rate of $1.25/1M, output rate of $10/1M, and warm cache read rate of $0.125/1M, running 10 consecutive 150,000-token coding agent turns (with 2,000 output tokens/turn) without prefix pinning costs $2.0750. Locking 100% static prefixes (Case A: 1 cold turn + 9 warm cached turns + 20K total output) reduces 10-turn spend to $0.4249 (saving $1.6501); under a 90% static prefix + 10% dynamic tail workload (Case B), 10-turn spend is $0.5768.
2. Full-Turn Rate-Card Substitution for OpenAI: GPT-4.1 & Winner Verdict: On OpenAI: GPT-4.1 ($2/1M input, $8/1M output, $0.5/1M warm cache), 10 unpinned 150K turns cost $3.1600, dropping to $1.1350 in Case A and $1.3375 in Case B. Across every 10-turn 150K coding loop (including output tokens), Google: Gemini 2.5 Pro delivers an additional $0.7101 Case-A cost advantage.
50M tokens per month, plus $25 in assumed infrastructure costs
The estimated difference is $2.50/month ($30/year) at a 50% input cache hit rate. No taxes, account discounts or separate egress fees are included.