OpenAI vs Anthropic API Pricing in 2026: Real Cost Per Million Tokens
Model pricing changes constantly. Here is a current breakdown of what you actually pay per million tokens across OpenAI and Anthropic, with worked examples for common agent workloads.
by Orviupdated 11 min read#openai #anthropic #api-pricing
Prices updated November 6, 2026.
GPT-4-level capability cost $30 per million tokens in 2023. In late 2026, the mid-tier models from both providers list at $2 per million input tokens, and the cheapest option from either provider sits at $0.10. That is a 15x drop to the mid tier and a 300x drop to the floor in under four years. Models that were the cheapest option at launch now sit in the middle of each provider's tier stack, or are being retired, as newer, cheaper models land below them. GPT-6 Luna and Claude Haiku 5.5 have pushed the floor down to the same $0.10/$0.50, while flagship models at the top of each catalog set a cost ceiling that can surprise teams running agentic workloads.
This post covers token pricing across both providers' current model tiers as of November 6, 2026 and works through three realistic agent scenarios. All figures come from the providers' own pricing pages (OpenAI, Anthropic).
OpenAI API pricing
OpenAI's current catalog is the GPT-6 family: GPT-6 Astra as the flagship, GPT-6.1 Sol as the mid tier, GPT-6.1 Terra as a fast model aimed at visual reasoning and computer use, and GPT-6 Luna as the small model. The GPT-4.1, GPT-4o and o-series models that most 2025 pricing guides cover are now legacy or already shut down. Pricing differs substantially across tiers, and picking the wrong one for your workload is a common source of unnecessary cost.
GPT-6 series (current)
OpenAI calls GPT-6 Astra its "flagship model for complex reasoning and coding" and describes GPT-6.1 Sol as offering "near-Astra performance". Luna is aimed at high-volume, latency-sensitive tasks where quality requirements are modest. Astra, Sol and Luna have a 1.05M token context window.
| Model | Input ($/1M tokens) | Cached input ($/1M tokens) | Output ($/1M tokens) |
|---|---|---|---|
| GPT-6 Astra | $10.00 | $1.00 | $50.00 |
| GPT-6.1 Sol | $2.00 | $0.10 | $10.00 |
| GPT-6.1 Terra | $1.00 | $0.05 | $5.00 |
| GPT-6 Luna | $0.10 | $0.01 | $0.50 |
Prompts over 272K tokens are billed at a long-context rate: 2x input and 1.5x output (for example, $20/$75 on Astra and $4/$15 on Sol). Fast mode, which OpenAI renamed from Priority processing on July 30, 2026, costs 2x Standard on GPT-6 models.
Legacy and retired models
These still show up in older code and cost guides. Check the deprecations page before you build on any of them.
| Model | Input ($/1M tokens) | Output ($/1M tokens) | Status |
|---|---|---|---|
| GPT-4.1 | $2.00 | $8.00 | Deprecated Oct 14, 2026; shuts down Jan 14, 2027 |
| GPT-4.1 mini | $0.40 | $1.60 | Deprecated Oct 14, 2026; shuts down Jan 14, 2027 |
| GPT-4.1 nano | — | — | Shut down Oct 23, 2026 |
| GPT-4o | $2.50 | $10.00 | Deprecated Oct 14, 2026; shuts down Jan 14, 2027 |
| GPT-4o mini | $0.15 | $0.60 | Deprecated Oct 14, 2026; shuts down Jan 14, 2027 |
| o3 | $2.00 | $8.00 | Deprecated Jun 11, 2026; shuts down Dec 11, 2026 |
| o4-mini | — | — | Shut down Oct 23, 2026 |
The o-series reasoning models generate internal thinking tokens that count toward your bill even though they are not returned in the response. OpenAI names GPT-6 Luna as the replacement for GPT-4o, GPT-4o mini, GPT-4.1 and GPT-4.1 mini.
Key limitations
OpenAI provides no pre-flight per-user budget enforcement. You can set a monthly spend cap for your organization account, and the usage API returns token counts after each call. There is no mechanism to reject a specific request before it fires because a particular user or project has crossed a threshold.
Anthropic API pricing
Anthropic's tier structure follows their Opus, Sonnet, and Haiku naming convention across Claude generations, with Fable 5.1 now sitting above Opus as the top tier. Opus is the flagship; Haiku is the cheapest and fastest; Sonnet sits between them. Each generation has generally moved prices downward relative to the prior generation at equivalent capability.
Retired and retiring models
The Claude 3.x models and the first Claude 4 models are no longer available on Anthropic's API, though some are still served on cloud platforms such as Amazon Bedrock and Google Vertex AI.
| Model | Last listed input ($/1M tokens) | Last listed output ($/1M tokens) | Status |
|---|---|---|---|
| Claude 3 Opus | — | — | Retired Jan 5, 2026 |
| Claude 3.5 Sonnet | — | — | Retired Oct 28, 2025 |
| Claude 3.7 Sonnet | — | — | Retired Feb 19, 2026 |
| Claude 3.5 Haiku | $0.80 | $4.00 | Retired Feb 19, 2026 |
| Claude Opus 4 | $15.00 | $75.00 | Retired Jun 15, 2026 |
| Claude Sonnet 4 | $3.00 | $15.00 | Retired Jun 15, 2026 |
| Claude Sonnet 4.5 | $3.00 | $15.00 | Deprecated Sep 30, 2026; retires Nov 30, 2026 |
Claude 3.7 Sonnet introduced extended thinking, where the model generates scratchpad tokens before its final response. Those thinking tokens count toward your bill and can add substantially to cost per call. Most frameworks let you set a per-request cap on thinking tokens.
Current Claude lineup
Opus 5.5 at $4/$20 is far cheaper than the $15/$75 that Opus 4 and Claude 3 Opus charged. Sonnet 5.5 lists at $2/$10, below the $3/$15 that Sonnet held for several generations. Haiku 5.5 brings the small tier to $0.10/$0.50.
| Model | Input ($/1M tokens) | Cache hit ($/1M tokens) | Output ($/1M tokens) |
|---|---|---|---|
| Claude Fable 5.1 | $10.00 | $0.25 | $50.00 |
| Claude Opus 5.5 | $4.00 | $0.20 | $20.00 |
| Claude Sonnet 5.5 | $2.00 | $0.10 | $10.00 |
| Claude Haiku 5.5 (prompts up to 100K) | $0.10 | $0.01 | $0.50 |
| Claude Haiku 5.5 (prompts over 100K) | $0.50 | $0.05 | $2.50 |
| Claude Haiku 4.5 | $1.00 | $0.10 | $5.00 |
Claude 4.6 and later models (except Haiku 5.5) get the full 1M context window at standard per-token price, with no long-context surcharge. One caveat for comparisons: Anthropic says the tokenizer in Claude 4.7 and later "produces approximately 30% more tokens for the same text" than earlier models, so per-token price cuts overstate the real savings against Sonnet 4.6 and older.
Key limitations
Anthropic provides no pre-flight per-user budget enforcement at the API level. The Console allows workspace-level spend limits, and each API response includes token usage metadata. There is no API mechanism to reject an inbound request because a specific customer in your multi-tenant application has exhausted their allocation.
Ownership note
Amazon Web Services holds a significant minority stake in Anthropic and offers Claude models through Amazon Bedrock. Bedrock sets its own prices and retirement schedule, and Anthropic's pricing page notes that Bedrock's regional endpoints carry a 10% premium over global endpoints for Claude 4.5 and later. Claude Platform on AWS and Claude in Microsoft Foundry bill at the same token rates as the Claude API. This post covers direct API pricing only.
Side-by-side comparison
| Model | Provider | Input ($/1M) | Output ($/1M) | Notes |
|---|---|---|---|---|
| GPT-6 Luna | OpenAI | $0.10 | $0.50 | Cheapest current OpenAI tier |
| Claude Haiku 5.5 | Anthropic | $0.10 | $0.50 | Prompts up to 100K; $0.50/$2.50 above |
| GPT-6.1 Terra | OpenAI | $1.00 | $5.00 | Visual reasoning / computer use |
| Claude Haiku 4.5 | Anthropic | $1.00 | $5.00 | Previous small model, still active |
| GPT-6.1 Sol | OpenAI | $2.00 | $10.00 | Mid tier |
| Claude Sonnet 5.5 | Anthropic | $2.00 | $10.00 | Mid tier |
| Claude Opus 5.5 | Anthropic | $4.00 | $20.00 | Flagship Opus |
| GPT-6 Astra | OpenAI | $10.00 | $50.00 | OpenAI flagship |
| Claude Fable 5.1 | Anthropic | $10.00 | $50.00 | Anthropic top tier |
Worked examples for agent workloads
Token ratios matter more than headline prices. Agent workloads tend to be input-heavy because each call includes tool schemas, growing conversation history, and sometimes retrieval context. Output tokens are a smaller fraction of total cost than most cost estimates assume. The examples below assume the same token count on every model; given the tokenizer note above, measure your own prompts before treating the OpenAI and Anthropic rows as equal.
Example 1: Customer support with conversation history
Ten turns of conversation, where each turn includes the full prior history (average 2,000 tokens per turn) and produces a 200-token response. Total per session: approximately 22,000 input tokens and 2,000 output tokens.
| Model | Input cost | Output cost | Session total |
|---|---|---|---|
| GPT-6 Luna | $0.0022 | $0.0010 | $0.0032 |
| Claude Haiku 5.5 | $0.0022 | $0.0010 | $0.0032 |
| Claude Haiku 4.5 | $0.0220 | $0.0100 | $0.0320 |
| GPT-6.1 Sol | $0.0440 | $0.0200 | $0.0640 |
| Claude Sonnet 5.5 | $0.0440 | $0.0200 | $0.0640 |
GPT-6 Luna and Claude Haiku 5.5 are 20 times cheaper per session than GPT-6.1 Sol or Claude Sonnet 5.5. At 10,000 sessions per day, that gap is $32/day vs $640/day.
Example 2: Document summarization
A 50-page document, approximately 75,000 input tokens, producing a 1,000-token summary.
| Model | Input cost | Output cost | Call total |
|---|---|---|---|
| GPT-6 Luna | $0.0075 | $0.0005 | $0.0080 |
| Claude Haiku 5.5 | $0.0075 | $0.0005 | $0.0080 |
| GPT-6.1 Sol | $0.1500 | $0.0100 | $0.1600 |
| Claude Sonnet 5.5 | $0.1500 | $0.0100 | $0.1600 |
This workload is almost entirely input-driven, so the input price per million tokens is the dominant variable. Watch the Haiku 5.5 threshold: double the document to 150,000 tokens and Haiku 5.5 moves to its over-100K rate, so the call costs $0.0750 input plus $0.0025 output, $0.0775 in total, against $0.0155 on Luna. Prompt caching can substantially reduce this cost if your document shares a large static prefix across calls.
Example 3: Agentic loop with tool calls
A ReAct-style agent that makes eight tool calls before completing. Each call includes a growing context (average 3,000 tokens) and a short output (150 tokens). Total across eight iterations: approximately 24,000 input tokens and 1,200 output tokens.
| Model | Input cost | Output cost | Loop total |
|---|---|---|---|
| GPT-6 Luna | $0.0024 | $0.0006 | $0.0030 |
| Claude Haiku 5.5 | $0.0024 | $0.0006 | $0.0030 |
| Claude Haiku 4.5 | $0.0240 | $0.0060 | $0.0300 |
| GPT-6.1 Sol | $0.0480 | $0.0120 | $0.0600 |
| Claude Sonnet 5.5 | $0.0480 | $0.0120 | $0.0600 |
At 1,000 loops per day, GPT-6 Luna costs $3.00/day and Claude Sonnet 5.5 costs $60/day. The more important variable for agent loops is context growth per step. If a loop starts at 1,000 tokens and adds 500 tokens per step, a 20-step loop costs roughly 3-4x what a flat-average estimate suggests. Build your cost models with a growth multiplier, not a fixed token count.
The enforcement gap
Both providers give you tools to see what you spent after a call completes. OpenAI returns token counts in every API response and exposes usage data in the dashboard. Anthropic does the same. Neither provider offers a way to reject a specific request before it fires because a given user in your application has crossed their allocated budget.
This works fine for single-tenant applications with predictable workloads. It becomes a real problem in three scenarios.
First: multi-tenant SaaS where each customer has a spending allocation. If one customer's agent loop sends 400 API calls in a minute, you see the damage in your dashboard after it happens. That customer's $50 monthly allocation is gone, and depending on your billing model, you may absorb the overage.
Second: agent loops where individual calls trigger cascading downstream calls. A planning agent might spawn sub-agents, each of which calls a retrieval system and then calls the LLM again. The cost of a single user request is not one API call but a tree of calls, and the total compounds with each branch. Without per-user pre-flight enforcement, any branch can run unchecked.
Third: development environments where engineers run agents during testing without realizing they are consuming production quota. Usage dashboards surface this at the end of the billing cycle, not in the moment.
The enforcement gap is not an observability problem. Post-hoc logging tells you what happened. Pre-flight enforcement determines whether it happens at all.
FAQ
Which is cheaper overall, OpenAI or Anthropic?
At most tiers, neither. GPT-6 Luna and Claude Haiku 5.5 both list at $0.10/$0.50 per 1M tokens (Haiku 5.5 on prompts up to 100K tokens), GPT-6.1 Terra and Claude Haiku 4.5 both list at $1/$5, and GPT-6.1 Sol and Claude Sonnet 5.5 both list at $2/$10. The clear gap is at the top: Claude Opus 5.5 ($4/1M input, $20/1M output) costs less than half of GPT-6 Astra ($10/1M input, $50/1M output), while Claude Fable 5.1 matches Astra's price. For long prompts the comparison tilts the other way: Haiku 5.5 costs five times its base rate above 100K tokens, and OpenAI only adds a long-context surcharge above 272K.
Do prompt caching discounts change this comparison significantly?
Yes, especially for agent workloads with large static system prompts or tool schemas. OpenAI charges $0.10/1M for cached input tokens on GPT-6.1 Sol, versus $2.00/1M uncached. Anthropic charges $0.10/1M for cache reads on Claude Sonnet 5.5, versus $2.00/1M uncached. Both now charge for cache writes: 1.25x input for the default TTL (30 minutes on OpenAI's GPT-5.6 and later, 5 minutes on Anthropic), with longer TTLs at 2.5x (OpenAI, 12 hours) or 2x (Anthropic, 1 hour). If 70% of your input tokens are a fixed system prompt that caches reliably, your effective input rate on either mid-tier model drops from $2.00 to about $0.67 per 1M (0.3 × $2.00 + 0.7 × $0.10), before write costs. Verify current cache pricing on the respective pricing pages, as these rates have changed with model releases.
What about Batch API pricing for non-real-time workloads?
Both providers offer batch processing at 50% off standard input and output prices. If your workload tolerates a 24-hour turnaround, document summarization and data extraction pipelines can cut their token cost in half using the batch endpoint. Real-time workloads, streaming responses, and agent loops with tool calls cannot use batch processing.
How do I estimate agent loop costs before running them?
Estimate your starting context size, your average output size per step, your average context growth per step, and your expected number of steps. Calculate the cost of each step using the cumulative context at that point, then sum. The most common modeling error is using the average context size across all steps rather than accounting for the fact that later steps are always more expensive than earlier ones.
Does model quality differ enough to justify the higher prices?
For structured extraction and retrieval-augmented generation tasks, the quality gap between mid-tier and frontier models has narrowed substantially over the past 18 months. For tasks involving multi-step reasoning over ambiguous information or long-horizon planning, the gap is real and measurable. The only reliable way to answer this for your specific use case is running your own evaluation on representative samples and checking whether the quality delta justifies the cost delta at your expected usage volume.
OpenAI vs Anthropic: Key Takeaways
Both providers have narrowed the quality gap at every tier, and the cheapest models today handle workloads that required frontier models eighteen months ago. With matching list prices at the small and mid tiers, the pricing decision has become primarily a cost-engineering question: which model tier delivers acceptable quality at the token ratio your workload actually produces. The teams that win on margin control spend per user, not just spend per month, because aggregate dashboards hide the outliers that actually destroy unit economics.
Neither provider offers a mechanism to reject a call before it fires based on per-user budget state. noburn.dev fills that gap: it estimates token cost client-side, checks it against the per-user or per-project budget, and blocks the call before it reaches OpenAI or Anthropic. For multi-tenant SaaS, per-user metering and Stripe passthrough billing are included. Free tier at noburn.dev/docs.