Gemini vs Claude: API price and fit
Compare Gemini and Claude API models side by side: per-token prices, cache rates, input types and integration. Pick per task, then test both on one key.
Claude and GPT API models compared by per-token price, cache rate, endpoints and tooling. Choose per task and switch between them with one OpenAI-compatible key.
Claude Sonnet and Opus are widely used for coding agents and careful long-form work and support Claude Code natively; GPT models cover a wide price range from mini to pro and include Codex variants for coding. The table lists every enabled Claude and GPT model on Tokely with the developer's price and the Tokely rate.
| Model | Tokely input / output | Tokely example | model developer example | Discount vs model developer |
|---|---|---|---|---|
| GPT-5.4 MiniOpenAI | $0.3 / $1.8Cache read: $0.03 | $0.75 | $1.875$0.75 / $4.5 per 1M | 60.0% off |
| Claude Haiku 5.5Anthropic | $0.042353 / $0.211764Cache read: $0.042353 | $0.095294 | $0.225$0.1 / $0.5 per 1M | 57.6% off |
| GPT-5 NanoOpenAI | $0.035 / $0.28Cache read: $0.0035 | $0.105 | $0.15$0.05 / $0.4 per 1M | 30.0% off |
| GPT-4.1 NanoOpenAI | $0.07 / $0.28Cache read: $0.0175 | $0.14 | $0.2$0.1 / $0.4 per 1M | 30.0% off |
| GPT-6 LunaOpenAI | $0.07 / $0.35Cache read: $0.007 | $0.1575 | $0.225$0.1 / $0.5 per 1M | 30.0% off |
| GPT-4o MiniOpenAI | $0.105 / $0.42Cache read: $0.0525 | $0.21 | $0.3$0.15 / $0.6 per 1M | 30.0% off |
| GPT-OSS 120BOpenAI | $0.1331 / $0.5324Cache read: $0.1331 | $0.2662 | Not matched | — |
| GPT-5.6 LunaOpenAI | $0.14 / $0.84Cache read: $0.014 | $0.35 | $0.5$0.2 / $1.2 per 1M | 30.0% off |
| GPT-5 MiniOpenAI | $0.175 / $1.4Cache read: $0.0175 | $0.525 | $0.75$0.25 / $2 per 1M | 30.0% off |
| GPT-5.1 Codex MiniOpenAI | $0.175 / $1.4Cache read: $0.0175 | $0.525 | $0.75$0.25 / $2 per 1M | 30.0% off |
| GPT-4.1 MiniOpenAI | $0.28 / $1.12Cache read: $0.07 | $0.56 | $0.8$0.4 / $1.6 per 1M | 30.0% off |
| GPT-5.4 NanoOpenAI | $0.242 / $1.5125Cache read: $0.242 | $0.620125 | $0.5125$0.2 / $1.25 per 1M | 21.0% higher |
| GPT-3.5 TurboOpenAI | $0.528 / $1.584Cache read: $0.528 | $0.924 | $0.875$0.5 / $1.5 per 1M | 5.6% higher |
| o3 MiniOpenAI | $0.77 / $3.08Cache read: $0.385 | $1.54 | $2.2$1.1 / $4.4 per 1M | 30.0% off |
| o4 MiniOpenAI | $0.77 / $3.08Cache read: $0.1925 | $1.54 | $2.2$1.1 / $4.4 per 1M | 30.0% off |
| GPT-6.1 SolOpenAI | $0.8 / $4Cache read: $0.04 | $1.8 | $4.5$2 / $10 per 1M | 60.0% off |
| GPT-5 CodexOpenAI | $0.875 / $7Cache read: $0.0875 | $2.625 | $3.75$1.25 / $10 per 1M | 30.0% off |
| GPT-5.1 CodexOpenAI | $0.875 / $7Cache read: $0.0875 | $2.625 | $3.75$1.25 / $10 per 1M | 30.0% off |
| GPT-5OpenAI | $0.875 / $7Cache read: $0.0875 | $2.625 | $3.75$1.25 / $10 per 1M | 30.0% off |
| GPT-5.1OpenAI | $0.875 / $7Cache read: $0.0875 | $2.625 | $3.75$1.25 / $10 per 1M | 30.0% off |
| GPT-4.1OpenAI | $1.4 / $5.6Cache read: $0.35 | $2.8 | $4$2 / $8 per 1M | 30.0% off |
| o3OpenAI | $1.4 / $5.6Cache read: $0.35 | $2.8 | $4$2 / $8 per 1M | 30.0% off |
| GPT-6 SolOpenAI | $1.4 / $7Cache read: $0.14 | $3.15 | $4.5$2 / $10 per 1M | 30.0% off |
| Claude Sonnet 5Anthropic | $1.5 / $7.5Cache read: $0.15 | $3.375 | $4.5$2 / $10 per 1M | 25.0% off |
| Claude Sonnet 5.5Anthropic | $1.5 / $7.5Cache read: $0.075 | $3.375 | $4.5$2 / $10 per 1M | 25.0% off |
| GPT-Chat LatestOpenAI | $1.375 / $8.25Cache read: $1.375 | $3.4375 | Not matched | — |
| GPT-5.6 TerraOpenAI | $1.4 / $8.4Cache read: $0.14 | $3.5 | $5$2 / $12 per 1M | 30.0% off |
| GPT-4oOpenAI | $1.75 / $7Cache read: $0.875 | $3.5 | $5$2.5 / $10 per 1M | 30.0% off |
| GPT-5.2OpenAI | $1.225 / $9.8Cache read: $0.1225 | $3.675 | $5.25$1.75 / $14 per 1M | 30.0% off |
| GPT-5.2 CodexOpenAI | $1.225 / $9.8Cache read: $0.1225 | $3.675 | $5.25$1.75 / $14 per 1M | 30.0% off |
| GPT-5.3 CodexOpenAI | $1.225 / $9.8Cache read: $0.1225 | $3.675 | $5.25$1.75 / $14 per 1M | 30.0% off |
| GPT-5.4OpenAI | $1.75 / $10.5Cache read: $0.175 | $4.375 | $6.25$2.5 / $15 per 1M | 30.0% off |
| GPT-5.5OpenAI | $2 / $12Cache read: $0.2 | $5 | $12.5$5 / $30 per 1M | 60.0% off |
| Claude Sonnet 4.6Anthropic | $2.25 / $11.25Cache read: $0.225 | $5.0625 | $6.75$3 / $15 per 1M | 25.0% off |
| GPT-5.6 SolOpenAI | $2.8 / $14Cache read: $0.28 | $6.3 | $9$4 / $20 per 1M | 30.0% off |
| Claude Opus 5.5Anthropic | $3 / $15Cache read: $0.15 | $6.75 | $9$4 / $20 per 1M | 25.0% off |
| Claude Opus 4.6Anthropic | $3.75 / $18.75Cache read: $0.375 | $8.4375 | $11.25$5 / $25 per 1M | 25.0% off |
| Claude Opus 4.7Anthropic | $3.75 / $18.75Cache read: $0.375 | $8.4375 | $11.25$5 / $25 per 1M | 25.0% off |
| Claude Opus 4.8Anthropic | $3.75 / $18.75Cache read: $0.375 | $8.4375 | $11.25$5 / $25 per 1M | 25.0% off |
| Claude Opus 5Anthropic | $3.75 / $18.75Cache read: $0.375 | $8.4375 | $11.25$5 / $25 per 1M | 25.0% off |
| Claude Opus 4.5Anthropic | $3.75 / $18.75Cache read: $0.375 | $8.4375 | $11.25$5 / $25 per 1M | 25.0% off |
| GPT-6 AstraOpenAI | $4 / $20Cache read: $0.4 | $9 | $22.5$10 / $50 per 1M | 60.0% off |
| GPT-4 TurboOpenAI | $7 / $21Cache read: $4.4 | $12.25 | $17.5$10 / $30 per 1M | 30.0% off |
| Claude Fable 5Anthropic | $7.5 / $37.5Cache read: $0.75 | $16.875 | $22.5$10 / $50 per 1M | 25.0% off |
| Claude Fable 5.1Anthropic | $7.5 / $37.5Cache read: $0.1875 | $16.875 | $22.5$10 / $50 per 1M | 25.0% off |
| o1OpenAI | $10.5 / $42Cache read: $5.25 | $21 | $30$15 / $60 per 1M | 30.0% off |
| o3 ProOpenAI | $14 / $56Cache read: $8.8 | $28 | $40$20 / $80 per 1M | 30.0% off |
| GPT-4OpenAI | $21 / $42Cache read: $6.6 | $31.5 | $45$30 / $60 per 1M | 30.0% off |
| GPT-5 ProOpenAI | $10.5 / $84Cache read: $6.6 | $31.5 | $45$15 / $120 per 1M | 30.0% off |
| GPT-5.2 ProOpenAI | $14.7 / $117.6Cache read: $21 | $44.1 | $63$21 / $168 per 1M | 30.0% off |
| GPT-5.4 ProOpenAI | $21 / $126Cache read: $13.2 | $52.5 | $75$30 / $180 per 1M | 30.0% off |
| GPT-5.5 ProOpenAI | $121.3245 / $545.96025Cache read: $0 | $257.814563 | $75$30 / $180 per 1M | 243.8% higher |
Compare GPT mini models with Claude Haiku, GPT flagship models with Claude Sonnet, and pro variants with Claude Opus. Reasoning models can produce many hidden output tokens, so compare the cost of a finished answer, not only the per-token rate.
On Tokely, GPT models use Chat Completions or the stateless Responses subset; Claude models use Chat Completions or the native /v1/messages endpoint. Both support function tools, streaming and prompt caching for supported versions.
Run your own evaluation set through one Claude and one GPT model with the same key. Many teams keep both: one for agents and coding, another for high-volume or structured tasks.
Every model on this page is available through one OpenAI-compatible endpoint and one balance, with routing modes, bounded fallback, spending limits and request logs.
A hosted LLM gateway with one OpenAI-compatible endpoint, account routing modes, bounded fallback, spending limits and request logs. Text, image, video and audio from one balance.
Keep the OpenAI SDK and call Claude, Gemini, GPT, Kimi, GLM and other supported models. Change the base URL, key and model ID.
Both families have strong coding models; results depend on your codebase, tools and agent. Test Claude Sonnet and a GPT Codex model on real tasks and compare cost per accepted change.
Yes with the OpenAI SDK: change the model ID. For Claude-specific features such as Claude Code, use /v1/messages.
Check the model, compare the rate, and connect with a Tokely key.