15% off all models πŸŽ‰ Every model at 85% of the maker's official list price.Browse models β†’
Blog
ApiFlux Team26 min read

Claude API Pricing 2026: Token Costs, Models & Savings

Claude API pricing 2026: per-MTok model rates, 50% Batch discount, prompt caching costs, limits, ApiFlux gateway rates, and a cost calculator.

Claude API Pricing 2026: Token Costs, Models & Savings

Contents

Claude API costs $1–$10 per million input tokens and $5–$50 per million output tokens (Haiku 4.5 to Fable 5.1), as of September 4, 2026. Batch processing cuts standard rates by 50% for asynchronous workloads; prompt caching has separate write and read pricing. For teams routing through a gateway, ApiFlux advertises Claude Sonnet 5 at $1.70 input / $8.50 output per MTok β€” 85% of Anthropic's list price β€” though that is a vendor-published claim, not an independently audited rate. Prices are time-sensitive; recheck Anthropic's live pricing before committing to a budget.

At a glance

  • Claude API pricing is usage-based, not a fixed monthly subscription.
  • Input and output tokens have separate rates; output is more expensive.
  • Haiku 4.5 has the lowest listed standard rate ($1 / $5 per MTok).
  • Sonnet 5 is a general-purpose candidate; its $2 / $10 rate is now standard pricing.
  • The Batch API cuts standard token prices by 50% for asynchronous work.
  • Prompt caching only helps when stable prefixes are reused within the cache TTL.
  • ApiFlux advertises 85% of list price (e.g., Sonnet 5 at $1.70 / $8.50) and a $1 starting credit; these are vendor-published claims.

Quick answer: how much does the Claude API cost?

For Anthropic's first-party Claude API, the current standard model rates are:

ModelInput per MTokOutput per MTokBest treated as
Claude Fable 5.1$10$50Demanding reasoning and long-horizon agentic work, subject to availability
Claude Opus 5$5$25Complex coding, agents, and enterprise workloads
Claude Sonnet 5$2$10General-purpose speed and capability balance (now standard pricing)
Claude Haiku 4.5$1$5Fast, lower-cost tasks and high-volume workloads

Source: Anthropic pricing documentation, checked September 4, 2026.

Official vs ApiFlux β€” listed price comparison (ApiFlux figures are vendor-published, checked September 4, 2026):

ModelAnthropic first-party (in / out)ApiFlux listed (in / out)Listed differenceActive channels
Claude Fable 5.1$10 / $50$8.50 / $42.50βˆ’15%Anthropic
Claude Opus 5$5 / $25$4.25 / $21.25βˆ’15%Anthropic, Bedrock, Vertex AI
Claude Sonnet 5$2 / $10$1.70 / $8.50βˆ’15%Anthropic
Claude Haiku 4.5$1 / $5$0.85 / $4.25βˆ’15%Anthropic

Source: Anthropic first-party rates from official pricing docs; ApiFlux listed rates from apiflux.ai/models/anthropic, checked September 7, 2026. ApiFlux figures are vendor-published claims, not independent benchmarks.

Quick decision β€” what should you start with?

If you need…Start by evaluating…Main trade-off
The lowest listed token priceHaiku 4.5May require more validation
A general production balanceSonnet 5Test against your own task set
Complex coding or long-horizon agentsOpus 5Higher token rate
Demanding reasoning at any costFable 5.1Higher price and availability risk
Offline bulk processingBatch APINo real-time response
One key, unified balance, multi-channel routing, and logsA gateway such as ApiFluxAdditional dependency to verify

Anthropic's model overview positions Fable 5.1 for demanding reasoning, Opus 5 for complex agentic coding and enterprise work, Sonnet 5 for a speed–intelligence balance, and Haiku 4.5 for the lowest latency and price. Those are vendor positioning statements, not independent benchmark results. For a production decision, test representative prompts with your own data.

The prices above cover standard first-party token usage. Your actual cost can also include:

  • Input tokens, including relevant tool definitions and tool results.
  • Output tokens generated by the model.
  • Prompt-cache writes and cache reads.
  • Batch API pricing when requests are processed asynchronously.
  • Server-side tool fees, such as web search.
  • Optional service modifiers, such as US-only inference (inference_geo: "us", a 1.1Γ— multiplier) or fast mode.
  • Different pricing, billing units, availability, and lifecycle policies on Amazon Bedrock, Google Cloud, Microsoft Foundry, or other platforms.

Claude API pricing calculator

Anthropic lists Sonnet 5 at $2 per million input tokens and $10 per million output tokens in its current pricing documentation. The basic token-cost formula is:

base input cost  = monthly requests Γ— average input tokens  Γ· 1,000,000 Γ— input rate
base output cost = monthly requests Γ— average output tokens Γ· 1,000,000 Γ— output rate
retry-adjusted cost = base cost Γ— (1 + retry rate)
accepted-result cost = total cost Γ· accepted production results

Use the interactive calculator below to estimate your monthly bill. Adjust model, request volume, token counts, cache hit rate, and Batch usage to see direct Anthropic costs versus ApiFlux vendor-listed rates.

Claude API Cost Calculator

Direct Anthropic
$8,000
/ month
Via ApiFlux (85%)
$6,800
/ month, vendor-listed
Listed savings
$1,200
/ month, if rates apply

Estimates use published per-MTok rates. Actual costs depend on cache writes, tool fees, retries, taxes, and negotiated terms. ApiFlux figures are vendor-published claims, not guaranteed quotes.

A short worked example with Claude Sonnet 5, using the rates above (one request with 20,000 input tokens and 4,000 output tokens):

input:  20,000 Γ· 1,000,000 Γ— $2  = $0.04
output:  4,000 Γ· 1,000,000 Γ— $10 = $0.04
estimated request cost                 = $0.08

This is a simple estimate for the model tokens shown. It does not include cache operations, server-side tool charges, taxes, negotiated commercial terms, failed-request handling, or platform-specific billing differences. For a side-by-side coding-model comparison that informs model choice, see our best LLMs for coding 2026 guide.

How Claude API billing works

Input and output tokens are not priced equally

Output tokens are more expensive than input tokens across the current model lineup. An application that generates unnecessarily long answers can cost much more than one that sends a large but stable context and requests a concise response.

Before reducing model quality to lower the bill, check whether you can:

  1. Set an appropriate maximum output length.
  2. Ask for structured, concise responses.
  3. Remove irrelevant context from each request.
  4. Reuse stable instructions with prompt caching.
  5. Route simple, predictable tasks to a lower-cost model.
  6. Measure retries and human review, not only raw token usage.

Tools, retries, and failed loops count too

A Claude API request with tools is not priced only on the visible user question. Token usage can include tool definitions and tool results that become part of the model context, plus an automatic tool-use system prompt. Anthropic's pricing documentation currently lists web search at $10 per 1,000 searches, plus standard token costs for search-generated content. Web fetch has no additional charge beyond the standard token costs for content that enters the conversation context. Newer server tools (code execution, text editor, computer use, browser use) add their own input-token overheads or, in some cases, execution-time billing.

When estimating a tool-using application, record at least: user and system input tokens, tool-definition tokens, tool-result tokens, search or other server-tool calls, output tokens, retries and failed tool loops, cache writes and reads, and human review or downstream processing. A model that appears inexpensive in a chat-only test can have a very different cost profile once it is connected to search, code execution, retrieval, or a multi-step agent loop.

Claude API model prices and how to choose

The following table summarizes the principal current models listed in Anthropic's model overview and pricing documentation. Prices are first-party Claude API base rates, checked on September 4, 2026.

ModelAPI IDInput / output per MTokContext windowMaximum output
Claude Fable 5.1claude-fable-5-1$10 / $501M tokens128K tokens
Claude Opus 5claude-opus-5$5 / $251M tokens128K tokens
Claude Opus 4.8claude-opus-4-8$5 / $251M tokens128K tokens
Claude Opus 4.7claude-opus-4-7$5 / $251M tokens128K tokens
Claude Sonnet 5claude-sonnet-5$2 / $101M tokens128K tokens
Claude Sonnet 4.6claude-sonnet-4-6$3 / $151M tokens128K tokens
Claude Haiku 4.5claude-haiku-4-5-20251001$1 / $5200K tokens64K tokens

Source: Anthropic pricing and models overview, checked September 4, 2026.

Opus 4.8 and Opus 4.7 share the same $5 / $25 rate and 1M context window as Opus 5, so moving to Opus 5 is a capability upgrade rather than a price change. Sonnet 4.6 is priced at $3 / $15 β€” 50% more than Sonnet 5's standard $2 / $10 β€” so migrating from 4.6 to Sonnet 5 lowers token cost at the same context window. Anthropic's pricing page also lists Opus 4.6, Opus 4.5, and Sonnet 4.5 at the same rates as their immediate successors; check the live table before relying on any older model ID.

Model IDs and availability can differ by platform. Anthropic uses a dateless model-ID format for the 4.6 generation and later (for example, claude-opus-5), and each ID is a pinned snapshot, not an evergreen pointer β€” see the model IDs and versioning documentation. Older model versions can appear in pricing or lifecycle documentation for reference even when they are retired. Do not copy a model ID from an old article without checking the current Models API and lifecycle documentation.

For reproducible applications, record the exact model ID, prompt version, tool configuration, date, and evaluation results. A model alias or a partner-cloud deployment name may not behave like the first-party Claude API identifier.

How to choose the right Claude model

Claude API decision router β€” sync vs batch/caching, then Haiku/Sonnet/Opus by predictability

At ApiFlux, we route Claude workloads across Anthropic, Bedrock, and Vertex channels in production. Our evaluation practice is a representative 15–30 task set with executable success criteria, repeated runs, and cost-per-accepted-result tracking β€” the same framework in our best LLMs for coding 2026 guide. Token price is an input to that decision, never the decision itself.

Decision tree:

Do you need a response immediately?
β”œβ”€β”€ Yes β†’ Use the synchronous Messages API
└── No
    β”œβ”€β”€ Large volume β†’ Evaluate the Batch API
    └── Repeated long context β†’ Evaluate Prompt Caching

Is the task predictable and easy to validate?
β”œβ”€β”€ Yes β†’ Start with Haiku 4.5
└── No
    β”œβ”€β”€ General production work β†’ Evaluate Sonnet 5
    └── Complex coding / reasoning β†’ Benchmark Opus 5 or Fable 5.1

Scenario-to-model decision table:

ScenarioStart withMeasure before committingNot a fit when
High-volume classification, extraction, routing, short transformsHaiku 4.5Success rate, output length, retry rate, latency, review burdenDeep multi-step reasoning; cheap responses fail validation and need repeated retries
General assistants, coding workflows, structured generationSonnet 5First-pass success, tool reliability, output length, cost per accepted resultStrict validation fails; long-horizon reasoning demands a higher-capability model
Complex agentic coding, enterprise workloads, deep reasoningOpus 5Successful outcomes, retry burden, review effort on a fixed task setSimple high-volume tasks where Haiku or Sonnet pass on the first attempt
Demanding reasoning, long-horizon agents where cheaper models failFable 5.1Task-level success on workloads where cheaper models fail; availabilityRoutine workloads; price-sensitive; guaranteed availability is required

Claude Haiku 4.5

Price: $1 input / $5 output per MTok.

Good fit: Classification, extraction, routing, short transformations, and other high-volume workloads where the output can be checked automatically.

Poor fit: Workloads that require deep multi-step reasoning or where a cheap response fails validation and must be retried repeatedly.

What to measure: Correct classification or extraction rate, average output length, retry rate, latency at your required traffic level, human review burden, and total cost per accepted result. A cheap response that requires repeated retries or manual correction may be more expensive than a higher-priced response that passes validation on the first attempt.

Claude Sonnet 5

Price: $2 input / $10 output per MTok, now standard pricing.

Good fit: General assistant features, coding workflows, structured generation, and moderate-complexity agent tasks.

Poor fit: Workloads where the model fails strict validation or requires long multi-step reasoning that demands a higher-capability model.

What to measure: First-pass success, retry rate, latency, output length, and cost per accepted result, especially when the application needs tool calls, long context, strict JSON, multilingual output, or reliable edge-case handling. For a fuller comparison of coding-oriented LLM options, see our best LLMs for coding 2026 guide on the ApiFlux blog.

Claude Opus 5

Price: $5 input / $25 output per MTok.

Good fit: Complex code changes, deeper reasoning, agentic coding, and enterprise workloads where fewer failed attempts can justify the higher token rate.

Poor fit: Simple, high-volume, easily validated tasks where Haiku or Sonnet pass on the first attempt.

What to measure: Successful outcomes, retry burden, latency, and review effort on a fixed task set. Do not convert Anthropic's positioning into a blanket claim that Opus 5 is the most cost-effective model for every project.

Claude Fable 5.1

Price: $10 input / $50 output per MTok.

Good fit: Demanding reasoning and long-horizon agentic work where lower-cost models fall short in evaluation.

Poor fit: Most routine workloads β€” its price is substantially higher than Sonnet 5 or Haiku 4.5.

What to measure: Task-level success on the specific workloads where cheaper models fail, plus availability and access. Limited-availability or changing-preview products should not be treated as universally accessible production dependencies.

Reducing your bill: prompt caching and Batch API

Prompt caching reduces the cost of repeatedly sending the same prompt prefix, such as a large system instruction, reference document, tool definition set, or conversation history. It is most useful when the stable content is large and reused within the cache time-to-live. Anthropic's prompt caching documentation lists these standard cache multipliers relative to the model's base input price:

Cache operationPricing multiplierTTL or meaning
5-minute cache write1.25Γ— base inputCache is valid for 5 minutes
1-hour cache write2Γ— base inputCache is valid for 1 hour
Cache read (hit)0.1Γ— base inputApplies to a cache hit

Source: Anthropic prompt caching documentation, checked September 4, 2026.

Anthropic's current pricing table lists Claude Fable 5.1 cache hits and refreshes at $0.25 per MTok, or 0.025Γ— its $10 base input rate. Because cache pricing is model-specific and time-sensitive, recheck the model-specific table before publication.

At the standard multipliers, a 5-minute cache write pays off after one successful cache read (1.25Γ— write vs. a second full 1Γ— input), and a 1-hour cache write pays off after two successful reads (2Γ— write vs. three 1Γ— inputs). For example, on a model with a $2 per MTok input rate, sending the same eligible prefix three times without caching costs three base input charges; a 1-hour cache costs 2Γ— for the initial write plus 0.1Γ— for each of two reads, or 2.2Γ— in total.

Note on stacking: Batch, caching, and data-residency modifiers can interact, but these modifiers do not make the total bill automatically predictable. Calculate each token category separately and confirm the selected model and platform's billing rules.

Prompt caching break-even β€” 3.0x without caching, 1.45x with 5-min cache, 2.2x with 1-hour cache

This break-even analysis assumes the prefix is long enough to be cacheable, the content before the breakpoint is unchanged, the follow-up request arrives within the TTL, and a cache hit actually occurs. Output tokens and uncached suffix tokens are excluded from this narrow comparison.

How to design a cache-friendly prompt

Put stable material before variable material:

stable system instructions
stable tools and schemas
stable reference documents
cache breakpoint
variable user question

Changing content before the breakpoint can invalidate the cached segment. A cache strategy should therefore be tested with the same request shape used in production, not only with a small demonstration prompt.

Batch API: 50% off for asynchronous work

Anthropic's Message Batches API is designed for large volumes of requests that do not need an immediate response. The official documentation says it provides a 50% discount versus standard API pricing and processes requests asynchronously.

ModelStandard input / output per MTokBatch input / output
Claude Fable 5.1$10 / $50$5 / $25
Claude Opus 5$5 / $25$2.50 / $12.50
Claude Sonnet 5$2 / $10$1 / $5
Claude Haiku 4.5$1 / $5$0.50 / $2.50

Source: Anthropic Message Batches documentation, checked September 4, 2026.

Synchronous vs asynchronous β€” which do you need?

Synchronous Messages APIMessage Batches API
LatencyReal-time responseMost batches finish in under an hour
PriceStandard rates50% off standard rates
Good fitUser is waiting for an answerEvaluations, offline analysis, bulk classification, scheduled jobs
LimitsModel rate limits100,000 requests or 256 MB per batch; must complete within 24 hours
Result handlingInline responseJSONL file, results downloadable for 29 days

Source: Anthropic Message Batches documentation, checked September 4, 2026.

Treat the batch figures as calculated examples based on the published 50% discount, not a universal quote for every platform or billing arrangement. Prompt caching and other pricing modifiers interact with batch pricing.

The Batch API also has operational constraints. Requests are processed independently, results are not guaranteed to preserve input order, and streaming, fast mode, and max_tokens: 0 are not supported. Use unique custom_id values and build a result-matching strategy around those IDs. For a gateway that supports both synchronous and asynchronous Claude workloads across multiple channels, see the ApiFlux setup guide.

Rate limits and monthly spend caps

Anthropic replaced its numeric Tier 1–4 system with named tiers β€” Start, Build, Scale, plus a Custom sales tier β€” on June 26, 2026. Organizations move up automatically based on usage history and account standing; you do not buy a tier directly. Each tier carries a monthly spend cap:

TierMonthly spend capTypical use
Start$500Prototyping, individual developers
Build$1,000Small teams, internal tools
Scale$200,000Production applications
CustomNo capEnterprise, negotiated

Reaching a cap returns HTTP 429. Per-model RPM/TPM ceilings also apply and vary by tier β€” check the Anthropic rate limits documentation for current numbers. A gateway such as ApiFlux can abstract rate-limit differences across providers, but it cannot remove an upstream provider's spend cap.

Claude API vs alternatives: subscription, cloud, and OpenAI

vs Claude subscription pricing

The Claude API is pay-as-you-go: you are billed for the tokens and features your application uses. It is not a prepaid bundle of a consumer or team subscription, and a subscription should not be treated as prepaid API credits.

OptionBilling modelBest for
Claude APIPer-MTok token usage + feature feesApplications, services, automation, integrations
Claude ProMonthly subscription with usage limitsIndividual users
Claude MaxHigher-tier subscription with higher limitsHigh-frequency individual users
Team / EnterpriseTeam subscriptions with seatsOrganizations
Claude Code + ConsoleDepends on Console/API billing pathDevelopment teams

Separate Claude consumer or team plans (for example, the chat/desktop subscription tiers) buy product access, not API capacity. If you are building an application, plan for API token costs, spend limits, and rate limits separately from any Claude subscription you hold.

vs cloud platforms: Bedrock and Vertex AI

The prices in this article refer to the first-party Claude API unless a section says otherwise. They should not automatically be applied to Amazon Bedrock, Google Cloud Vertex AI, Microsoft Foundry, Claude Platform on AWS, resellers, gateways, or other API providers.

PlatformBillingNotes
Claude API (first-party)Per-MTok token ratesPrices and multipliers in this article
Amazon BedrockProvider-invoiced; regional/global endpointsRegional endpoints include a 10% premium over global endpoints
Google Cloud Vertex AIProvider-invoiced; regional/global/multi-region endpointsRegional endpoints include a 10% premium over global endpoints
Claude Platform on AWSClaude Consumption Units (CCUs) via AWS MarketplaceToken usage converted to CCUs at $0.01 per CCU

Partner platforms can use different billing units, regional pricing, model IDs, availability rules, and retirement schedules. If you are comparing providers, normalize the comparison first:

  1. Use the same model generation and model behavior where possible.
  2. Confirm whether prices are for input, output, cache, and tools separately.
  3. Check whether taxes, cloud fees, or regional multipliers apply.
  4. Verify the exact model ID and availability.
  5. Compare a fixed workload with identical success criteria. A gateway such as ApiFlux can abstract these platform differences behind one key and one balance β€” browse the full model catalog to see which channels each model supports.

vs OpenAI API pricing

If you are choosing between Claude and OpenAI models for a production workload, normalize the comparison by cost per accepted result, not by sticker price alone. The table below compares representative first-party rates; OpenAI GPT-5.6 prices are promotional rates through at least November 21, 2026 (from OpenAI official pricing, checked September 7, 2026); prompts over 272K input tokens are billed at 2x input / 1.5x output. Verify against OpenAI's current pricing page before procurement.

Model familyInput / output per MTokContext windowBest treated as
Claude Haiku 4.5$1 / $5200KHigh-volume, low-latency tasks
GPT-5.6 Luna (OpenAI)$0.20 / $1.201.05MCost-sensitive, high-volume
Claude Sonnet 5$2 / $101MGeneral-purpose balance
GPT-5.6 Terra (OpenAI)$2 / $121.05MBalanced coding and tool use
Claude Opus 5$5 / $251MComplex coding and agents
GPT-5.6 Sol (OpenAI)$4 / $201.05MComplex reasoning, tool-heavy coding

Claude rates from Anthropic official pricing, checked September 4, 2026. OpenAI GPT-5.6 rates from OpenAI official pricing, checked September 7, 2026; promotional through November 21, 2026.

Key differences that affect the real bill:

  • Context window: Claude Sonnet 5 and Opus 5 offer a 1M-token context; GPT-5.6 models offer a 1.05M context window, comparable to Claude's 1M. Larger context on both sides can reduce retrieval and chunking overhead.
  • Prompt caching: Both platforms offer cached-input discounts. Anthropic's 5-minute cache write is 1.25Γ— with 0.1Γ— reads; OpenAI's cached-input discount varies by model and tier. Calculate your actual cache-hit rate before assuming either is cheaper.
  • Batch discounts: Anthropic offers 50% off via the Message Batches API. OpenAI offers batch discounts on select models. If your workload is asynchronous, batch can dominate the price comparison.
  • Tool and search fees: Both charge server-side tool usage separately. Anthropic lists web search at $10 per 1,000 searches; OpenAI's web search pricing differs by model tier.
  • Output token behavior: OpenAI models sometimes produce shorter or longer outputs for the same prompt. A 20% output-length difference can outweigh a 15% input-price gap.

Bottom line: Claude Haiku 4.5 is priced above GPT-5.6 Luna on raw tokens, but both offer 1M+ context. For general-purpose work, Sonnet 5 ($2/$10) and GPT-5.6 Terra ($2/$12) are close on price β€” the decision should come down to task success rate, output length, and tool reliability on your own evaluation set, not sticker price alone.

How ApiFlux can reduce operational complexity

Commercial disclosure: ApiFlux is mentioned because it operates the publishing project. The pricing, feature, and discount statements in this section are vendor-published claims, not independent benchmark results. Verify them before making procurement decisions.

The problem. A team using multiple model providers may need to manage several API keys, balances, model IDs, rate limits, and usage dashboards. That operational overhead is separate from Anthropic's published token rates. When a single provider experiences an outage or rate-limit throttle, an application that depends on one endpoint can fail until the provider recovers.

What ApiFlux advertises. ApiFlux's public site presents it as an AI router and gateway that gives you one API key for 100+ frontier models, including Claude, GPT, Gemini, DeepSeek, Qwen, and Kimi. It advertises native Anthropic, OpenAI, and Gemini-compatible endpoints, automatic failover, transparent per-token billing, one shared balance, and usage monitoring. For compatible clients, connecting may require only a base-URL and key change β€” but confirm the endpoint and model IDs your code uses before assuming no other changes are needed.

Multi-channel routing. ApiFlux advertises that Claude requests can be routed across multiple upstream channels β€” including the Anthropic first-party API, Amazon Bedrock, and Google Cloud Vertex AI β€” so that if one channel is throttled or unavailable, the gateway can fall through to another. The advertised architecture is:

Your application
    β”‚  one API key, one balance
    β–Ό
ApiFlux gateway
    β”œβ”€β”€ Anthropic first-party API  (channel 1)
    β”œβ”€β”€ Amazon Bedrock             (channel 2)
    └── Google Cloud Vertex AI     (channel 3)
         β”‚
         β–Ό
    Claude model response

This is a vendor-described routing topology. Before relying on it, test failover behavior with your own workload: confirm which channels are actually available for the model IDs you use, how routing decisions are made, whether cache and tool billing are preserved across channels, and whether a fallback changes the model behavior or regional endpoint.

Vendor claims to treat as unverified. ApiFlux advertises pricing at 85% of the maker's official list price (its listed Claude prices, checked September 4, 2026, are shown below) and currently advertises a $1 starting credit on signup without a credit card. These are vendor-published commercial claims, not independently audited savings results. ApiFlux describes zero data retention in its public materials β€” this refers to prompt and response content, not billing/routing metadata (request IDs, timestamps, token counts, and model routing are logged for invoicing and debugging). Review the current privacy and retention terms before sending sensitive prompts, and test failover behavior with your own workload before relying on either claim.

ModelAnthropic first-party (in / out per MTok)ApiFlux listed price (in / out per MTok)
Claude Fable 5.1$10 / $50$8.50 / $42.50
Claude Opus 5$5 / $25$4.25 / $21.25
Claude Sonnet 5$2 / $10$1.70 / $8.50
Claude Haiku 4.5$1 / $5$0.85 / $4.25

Source: Anthropic rates from official pricing docs; ApiFlux listed rates from apiflux.ai/models/anthropic, checked September 4, 2026. Vendor-published claims.

Integration example. For compatible Anthropic SDK clients, switching the base URL to ApiFlux can be as short as:

from anthropic import Anthropic

client = Anthropic(
    api_key="your-apiflux-key",
    base_url="https://apiflux.ai",
)

response = client.messages.create(
    model="claude-sonnet-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello, ApiFlux!"}],
)

This is an illustrative example for compatible clients. Verify the exact base URL, model ID format, authentication method, and feature support in the ApiFlux documentation before deploying.

What to verify before production use. Confirm which Claude model IDs are supported (ApiFlux lists Claude Fable 5.1 and Claude Sonnet 5), whether the endpoint is compatible with the Anthropic Messages API format, how input/output/cache/tool usage are reported, whether routing changes the model or deployment region, how balances, refunds, failed requests, and rate limits are handled, where request logs are stored and retained, and whether the published discount applies to every feature including cache reads and batch usage.

Where to start:

Ready to compare Claude API rates on ApiFlux?

Monthly cost examples and sensitivity

These examples are illustrative calculations based on published rates. In production, the ApiFlux team tracks cost per accepted result across routed workloads β€” including retries, tool calls, and review burden β€” not just token spend. See our best LLMs for coding 2026 guide for the full evaluation methodology.

The illustrative monthly estimates below use the base rates above, before cache and batch effects:

Workload exampleModelRequests / moAvg input / output tokensMonthly estimate
High-volume classificationHaiku 4.55,000,0001,500 / 200β‰ˆ $12,500
General assistantSonnet 5500,0004,000 / 800β‰ˆ $8,000
Complex agentic codingOpus 5100,00020,000 / 4,000β‰ˆ $20,000

Worked example β€” general assistant on Sonnet 5. Suppose an application serves 500,000 requests per month. Each request sends 4,000 input tokens (system prompt + conversation history + user question) and receives 800 output tokens.

Monthly input tokens:  500,000 Γ— 4,000 = 2,000,000,000  = 2,000 MTok
Monthly output tokens: 500,000 Γ—   800 =   400,000,000  =   400 MTok

Input cost:  2,000 MTok Γ— $2  = $4,000
Output cost:   400 MTok Γ— $10 = $4,000
─────────────────────────────────────
Direct Anthropic estimate:        $8,000 / month

ApiFlux listed (85%):             $6,800 / month
Listed difference:                $1,200 / month

If 30% of the input is a stable prefix that hits a 5-minute cache (0.1Γ— read rate), the input cost drops:

Cached input:   2,000 MTok Γ— 30% Γ— 0.1Γ— Γ— $2 = $120
Uncached input: 2,000 MTok Γ— 70% Γ—      $2 = $2,800
Cache write (one per session):                  β‰ˆ $10 (estimate)
Output:                                         $4,000
─────────────────────────────────────────────────────
Cached estimate:                                β‰ˆ $6,930 / month

These are illustrative figures for method demonstration only; your real bill depends on caching, tools, retries, batch use, and negotiated terms. Use them to shape the calculation, not as a quote for your workload.

Monthly cost comparison β€” official vs ApiFlux 85% list price for three workloads

Sensitivity β€” what moves the bill most:

VariableChangeEffect on monthly cost
Output tokens+50%Significant increase (output rates are 5Γ— input)
Retry rate0% β†’ 10%Adds roughly 10% to token cost
Cache hit rate0% β†’ 80%Lowers repeated-input cost substantially
Batch usage0% β†’ 100%Cuts standard token charges by 50%
Human reviewIncreasesCan offset API savings

If you route requests through a gateway such as ApiFlux, its listed per-token rates are 15% below official list prices (for example, Claude Opus 5 at $4.25 / $21.25 instead of $5 / $25), which lowers the token-cost component. Factor in the gateway's own fee, failover behavior, and cache accounting before assuming the saving.

Claude API pricing FAQ

Is Claude API pricing monthly or pay-as-you-go?

The first-party Claude API is usage-based. Charges depend on token usage and applicable features rather than a single fixed API subscription price. Separate Claude consumer or team subscriptions should not be treated as prepaid API credits.

What does MTok mean in Claude API pricing?

MTok means one million tokens. Input and output tokens are priced separately, and the rate depends on the selected model.

What is the cheapest Claude API model?

In the current first-party lineup, Claude Haiku 4.5 has the lowest listed standard rate at $1 per million input tokens and $5 per million output tokens. Whether it is the cheapest production choice depends on task success, retries, latency, and review cost.

Why is Claude Sonnet 5 priced at $2 / $10?

Sonnet 5's $2 input / $10 output rate was announced at launch as introductory pricing through August 31, 2026. The scheduled increase to $3 / $15 on September 1, 2026 was canceled, so $2 / $10 is now the standard price, per Anthropic's pricing documentation.

Does the Claude API have a free tier?

Anthropic's API documentation does not establish a permanent free API tier in the sources reviewed for this guide. Check the current Claude Console billing documentation for account-specific credits or promotions, and do not assume the consumer Claude plan structure maps to API usage. (Separately, ApiFlux currently advertises a $1 starting credit on its homepage; eligibility and terms may change, so confirm them before signing up.)

Can prompt caching reduce the total bill?

It can reduce the cost of repeatedly sending an eligible stable prefix when cache hits occur within the selected TTL. It does not automatically reduce output tokens, variable input, tool calls, or every request in an application.

How much cheaper is the Claude Message Batches API?

Anthropic documents a 50% discount versus standard API pricing for the Message Batches API. Batch requests are asynchronous, so the discount is appropriate for workloads that can wait for processing and retrieval.

How is Claude Code billed relative to the Claude API?

Claude Code can be used through subscription plans or a Claude Console/API account. When it uses a Claude Console account or API key, usage may be billed according to the applicable API rates. Subscription plans have their own prices, limits, and terms, so do not automatically apply this API pricing table to every Claude Code session. For setup details, see the ApiFlux Claude Code documentation.

What does Claude cost through a gateway like ApiFlux?

ApiFlux advertises Claude rates at 85% of Anthropic's list price. For example, Claude Sonnet 5 is listed at $1.70 input / $8.50 output per MTok (vs. $2/$10 first-party), and Opus 5 at $4.25 / $21.25 (vs. $5/$25). These are vendor-published gateway rates, not Anthropic first-party prices β€” confirm the current rates on apiflux.ai/models/anthropic before committing. A gateway may also add its own fees, markup, or operational terms; verify cache, tool, and failover billing separately.

Does a Claude API gateway change Anthropic's official prices?

No. Anthropic's official first-party rates remain unchanged. A gateway such as ApiFlux sets its own per-token prices (advertised at 85% of list) and may add routing, failover, or unified-billing value on top. The two are separate billing arrangements.

Are Claude API prices the same on Bedrock and Vertex AI?

Not necessarily. Cloud marketplaces can have different pricing, billing units, model IDs, regional rules, availability, and lifecycle policies. Compare each platform using its own current official documentation.

How much does Claude API cost per token?

Per-token cost is the per-MTok rate divided by one million. Claude Haiku 4.5 at $1/$5 per MTok costs roughly $0.000001 per input token and $0.000005 per output token. Sonnet 5 at $2/$10 costs $0.000002 input and $0.00001 output. Most production bills are easier to estimate at the MTok level because token volumes are large.

Is Claude API cheaper than OpenAI?

It depends on the model pair and your workload. GPT-5.6 Luna undercuts Claude Haiku 4.5 on raw token price, but both offer 1M+ context. For general-purpose work, Sonnet 5 ($2/$10) and GPT-5.6 Terra ($2/$12) are close on sticker price β€” the real difference comes down to task success rate, output length, and tool reliability on your own evaluation set. See the Claude API vs OpenAI API pricing section for a full comparison.

Next steps: estimate, compare, and start

Ready to start routing Claude API?

Create an API key on ApiFlux β€” $1 starting credit, no credit card required.

  1. Estimate your monthly bill with the interactive calculator above.
  2. Compare listed Claude model prices, including vendor-listed 85%-of-list rates.
  3. Follow the quickstart or read the setup guide and FAQ.
  4. Explore related guides: best LLMs for coding in 2026 and Qwen3-8 release window prep.

Sources and update history

This article was written as an editorial guide using Anthropic's official documentation, checked on September 4, 2026:

Update triggers. Review immediately when Anthropic changes model rates, model IDs, caching multipliers, Batch API terms, tool prices, spend limits, or lifecycle dates, and when ApiFlux changes its prices, supported models, privacy or retention terms, or page URLs. Check model IDs and lifecycle monthly; review FAQ and structure quarterly.

Changelog

  • 2026-09-04 β€” Confirmed Sonnet 5 remains at $2 / $10 (standard pricing). Updated Fable 5.1 cache-hit rate to $0.25 / MTok (0.025Γ—). Removed unverified "new user free credits" wording. Added ApiFlux commercial disclosure, vendor-claim labels, model decision tree, interactive cost calculator, "Claude API vs subscription" and "vs Bedrock/Vertex AI" sections, sensitivity analysis, and in-place source citations. Added Opus 4.8 / 4.7 and Sonnet 4.6 to the model price table. Added official-vs-ApiFlux price comparison to the quick-answer section. Expanded ApiFlux multi-channel routing architecture and Python SDK integration example. Added detailed monthly cost worked example. Added per-table source citations, scenario-to-model decision table, prominent CTA blocks, and expanded internal links to existing ApiFlux docs and blog. Established SOURCES.md source ledger.

By Jason Zhu, Builder at ApiFlux AI. I route my own Claude Code and production workloads through multi-provider gateways and write about LLM infrastructure, pricing, and reliability. This article contains vendor-published claims about ApiFlux; all Anthropic pricing is sourced from official documentation and verified on the date above.

This article does not claim an independent benchmark ranking, guaranteed savings, guaranteed availability, or a guaranteed search ranking. Model recommendations are conditional editorial guidance based on published pricing and vendor-described positioning; validate them against your own workload.

Enterprise AI Gateway for routing, securing, and observing every model call.