
TL;DR
Comparing LLMs by token pricing alone can lead you to choose worse, more expensive models. Cost per task tells the real story.
Direct answer
Comparing LLMs by token pricing alone can lead you to choose worse, more expensive models. Cost per task tells the real story.
Best for
Developers comparing real tool tradeoffs before choosing a stack.
Covers
Verdict, tradeoffs, pricing signals, workflow fit, and related alternatives.
Every AI pricing page leads with the same number: dollars per million tokens. OpenAI, Anthropic, Google, DeepSeek - they all compete on this metric. But comparing LLMs by their per-token pricing alone is fundamentally flawed.
A new analysis making the rounds on Hacker News breaks down exactly why - and proposes a better metric that changes which models look like good value.
Token pricing fails for two reasons that compound on each other:
Tokenizers are not standardized. Different labs use proprietary tokenizers that split identical text differently. The same content might require 160 tokens for GPT-4o but 200 tokens for GPT-4. Anthropic recently modified its tokenizer, causing a 30% increase in tokens for the same input.
When you compare $X per million tokens across providers, you are comparing apples to oranges. A "token" from OpenAI is not the same unit as a "token" from Anthropic.
Token efficiency varies dramatically. Hidden chain-of-thought processing - where models reason before producing output - consumes tokens billed at standard rates but varies wildly between models and use cases. A model that thinks more might produce fewer output tokens but consume many more thinking tokens you do not see in the final response.
The proposed alternative: measure "cost per benchmark task" using real benchmark data. This reveals actual economic value delivered rather than nominal pricing.
The comparison table from the original analysis demonstrates the problem starkly:
That last point is notable. Anthropic's own initial benchmarks showed Sonnet 5 with lower performance at higher costs than expected. The per-token price looked competitive; the per-task economics did not.
Newsletter
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools, delivered free every week.
From the archive
Jul 6, 2026 • 8 min read
Jul 6, 2026 • 7 min read
Jul 5, 2026 • 6 min read
Jul 5, 2026 • 8 min read
The Hacker News discussion added several important nuances:
Caching matters enormously. One commenter noted: "Caching, often at 0.1X cost, where providers really differ in how efficient they are (Anthropic really good, Google not so much) and how chatty a model is (costing output tokens)." A model with better caching support can be dramatically cheaper in multi-turn conversations even with higher nominal token prices.
Thinking levels change the equation. "Setting thinking to high instead of low made tasks complete faster and cheaper (Gemini 3.0 flash)." More thinking can mean fewer failed attempts, fewer tokens wasted on wrong paths, and faster completion.
Benchmark difficulty matters. Cost per benchmark task is only useful if the benchmark matches your workload. "Cost per benchmark task is meaningless if your task is difficult enough that the cheaper model has no chance of cracking it." For trivial tasks, the smaller model wastes tokens backtracking while the larger model does it right the first time.
Local LLM users see this too. "tok/s isn't the most useful metric when my personal North star metric, given my fixed hardware is: Model smart enough to execute my goals in the minimum amount of time." Some models have better tok/s but are so verbose they generate many more tokens - making clock time longer despite the higher throughput.
The real problem is black box uncertainty. "You really have no idea beforehand how many tokens a given task is going to take. There's simply too many variables involved. It's therefore only natural for people to assume 'the cheaper and older model is probably going to cost less overall.'" This assumption is often wrong.
Several commenters pointed out that token pricing is even more misleading for subscription users. Monthly plans price tokens extremely differently than their per-token billing rates. Most developers using Claude Code or ChatGPT Plus are not paying API rates at all.
Cost-per-task analysis should ideally account for subscription token allocations, but that data is rarely available.
If you are selecting models based on per-token pricing alone, you are likely choosing suboptimal solutions. Here is what to do instead:
Run your own benchmarks. The only cost metric that matters is cost for your actual workload. Generic benchmarks help, but your task distribution is unique.
Track total cost per task. Instrument your agent workflows to log total tokens consumed (input, output, thinking) and correlate with task success rates. A model that fails 20% of the time costs more than one that succeeds consistently even at higher per-token rates.
Account for caching. Multi-turn conversations with good cache hit rates can reduce costs 10x. Check each provider's caching behavior with your prompt patterns.
Test thinking levels. Higher thinking settings sometimes complete tasks faster and cheaper by avoiding failed attempts. Do not assume "low" is always cheapest.
Consider latency. A model that costs more per token but finishes in 2 seconds might be cheaper than one that takes 30 seconds if your time has value. One commenter wanted a model for commit messages that finishes quickly - high benchmark scores were irrelevant if it took a minute.
Several commenters advocated for local models to avoid per-token uncertainty entirely. Fixed hardware costs are predictable; token costs are not.
The counterargument: open models are not yet competitive for end-to-end agentic workflows. They excel at bounded tasks but struggle with the kind of multi-step reasoning that frontier models handle.
One detailed response described success with Mimo v2.5 at $0.017 per million tokens - building an orchestrator that handled planning, execution, and review with quality "that makes me laugh at things like Opus." The open model space is catching up fast.
Price per million tokens is a unit measure, not a value measure. It tells you what you pay for a unit of computation but says nothing about what that computation accomplishes.
Just as price per gallon does not tell you trip cost without knowing fuel efficiency and distance, price per token does not tell you task cost without knowing model efficiency and task complexity.
The right question is not "which model is cheapest per token" but "which model completes my tasks most cost-effectively." Those are often different answers.
Read next
Modern LLMs now use MoE routing, mixed attention variants, and fused vision encoders. The simple transformer stack is gone - here's what replaced it and why it matters for developers.
6 min readFilippo Valsorda argues that LLMs have ended the era of treating security researchers with kid gloves. When anyone can discover vulnerabilities with an AI, the old coordinated disclosure model breaks down.
7 min readA new study from Dartmouth measures the impact of an AI tutoring platform on introductory statistics performance. Full engagement with the system correlated with significant exam score improvements, though selection bias remains a key limitation.
8 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Constrained generation library for LLMs. Uses finite state machines to mask invalid tokens during generation. Guarantees...
View ToolAnthropic's smallest Claude 4.5 model. Near-frontier coding performance at one-third the cost of Sonnet 4 and up to 4-5x...
View ToolFastest inference for open-source models. 200+ models via unified API. Ranks #1 on speed benchmarks for DeepSeek, Qwen,...
View ToolLPU-powered inference delivering 500-1,000+ tokens/sec. Purpose-built chip with on-chip SRAM instead of HBM. 5-10x faste...
View ToolInstall the dd CLI and scaffold your first AI-powered app in under a minute.
Getting StartedConfigure Claude Code for maximum productivity -- CLAUDE.md, sub-agents, MCP servers, and autonomous workflows.
AI AgentsWhat MCP servers are, how they work, and how to build your own in 5 minutes.
AI Agents
A new study from Dartmouth measures the impact of an AI tutoring platform on introductory statistics performance. Full e...

Filippo Valsorda argues that LLMs have ended the era of treating security researchers with kid gloves. When anyone can d...

Modern LLMs now use MoE routing, mixed attention variants, and fused vision encoders. The simple transformer stack is go...

Martin Alderson's argument for why open-weights models like GLM 5.2 will compress frontier lab margins is sparking debat...

Anthropic's new research reveals LLMs have an internal 'workspace' for silent reasoning - and it could change how we bui...

A new paper proposes inverting traditional agent architecture - making the append-only event log the source of truth, no...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.