Compare AI models

Specifications
Context windowHow much information the model can work with in one request, measured in tokens — pieces of words or other data. This includes your question, attachments, conversation and reply. Limits can vary by model variant and provider.
1M—
API pricingUSD per 1M tokens · lower wins
Input priceWhat you pay for everything you send the model — your question, plus any documents or earlier conversation you include with it.
$5.00—
Output priceWhat you pay for the text the model writes back. It is normally the dearer half: producing an answer costs more than reading one.
$25.00—
Cached input priceA reduced rate for text you send over and over. If every request starts with the same instructions or the same document, the provider keeps a copy ready and charges less to read it again.
$0.50—
Cheapest inputLowest input rate across every provider on OpenRouter, the lab included. The cheapest endpoint may run a quantised build or a shorter context — see "Available from" on the model page.
$5.00Amazon Bedrock—
Cheapest outputLowest output rate across every provider on OpenRouter, the lab included. May come from a different provider than the cheapest input.
$25.00Amazon Bedrock—
$2,250Anthropic list price—
Benchmarks
Gray Swan IPI · k = 15Prompt injection robustness — Attackers hide malicious instructions inside content the AI reads — a web page, an email, a document — and try to hijack what it does. This variant gives the attacker 15 tries and counts an attack as successful if any of them works. Lower is better.
5.5%0%
Terminal-Bench 4.0Agentic terminal coding — Can the AI work in a command-line terminal — running commands and finishing technical setup tasks the way a developer would? Version 4.0 recalibrated how much time, CPU and memory each task gets, removed eight tasks and fixed nineteen, so fewer runs fail for reasons that have nothing to do with the model. Scores are not comparable with earlier versions. Higher is better.
23.64%65.2%
Overview
CompanyAnthropicGoogle
Release dateMay 28 2026Oct 28 2026
AccessClosedClosed
Model detailsView modelView model

Frequently asked questions

Gemini 4 Carbon leads Claude Opus 4.8 on 2 of the 2 benchmarks they both report (Gray Swan IPI, Terminal-Bench 4.0). Only Claude Opus 4.8 has a verified first-party price for an available API: $5.00 per million input tokens and $25.00 per million output tokens. No currently available pay-as-you-go API rate is tracked for Gemini 4 Carbon. Claude Opus 4.8 shipped 153 days before Gemini 4 Carbon, so benchmark comparisons should account for the intervening progress.

Published specifications for these two models are limited — see each model page for the latest details.

On Gray Swan IPI · k = 15, Gemini 4 Carbon leads at 0% vs Claude Opus 4.8 at 5.5%. On Terminal-Bench 4.0, Gemini 4 Carbon leads at 65.2% vs Claude Opus 4.8 at 23.64%.