Skip to content

Claude 5 API Pricing for Production Budgets

Claude 5 API pricing is route-specific: pair the exact model with the route your account can use, price input and output tokens separately, and include retries in the forecast. In the current public catalog, claude-sonnet-5 costs $0.11 input / $0.55 output per 1M tokens on the Claude Sale Channel and $0.22 / $1.10 on the Claude Route. Those are separate public rates, not one universal Claude 5 price. Check the live Frugal Relay pricing catalog before approving a production budget.

This matters because a budget can look precise while using the wrong route. A spreadsheet that stores only claude-sonnet-5 cannot explain whether its rate came from the Claude Sale Channel or Claude Route, and it can silently become wrong when route eligibility changes. The reliable unit is a model, a named route, a billing unit, and measured usage.

Claude 5 API pricing for a production budget

Section titled “Claude 5 API pricing for a production budget”

The live response marks these Claude chat models as token-priced (quota_type: 0). It supplies a model ratio, completion ratio, eligible groups, and a ratio for each named route. For a route that appears in both the model’s enable_groups and the live group_ratio map, calculate:

input USD per 1M tokens = model_ratio * 2 * group_ratio[route]
output USD per 1M tokens = input price * completion_ratio

The current route names are Claude Sale Channel for claude_sale and Claude Route for claude. The table below applies that formula to model names that are also documented in the pricing guide and supported models guide. Each price is USD per 1M tokens and includes its route.

ModelRouteInputOutputEndpoint types
claude-haiku-4-5Claude Sale Channel$0.055$0.275Anthropic, OpenAI
claude-sonnet-5Claude Sale Channel$0.11$0.55Anthropic, OpenAI
claude-sonnet-5Claude Route$0.22$1.10Anthropic, OpenAI
claude-sonnet-4-6Claude Sale Channel$0.165$0.825Anthropic, OpenAI
claude-sonnet-4-6Claude Route$0.33$1.65Anthropic, OpenAI
claude-opus-5Claude Sale Channel$0.275$1.375Anthropic, OpenAI
claude-opus-5Claude Route$0.55$2.75Anthropic, OpenAI

For example, claude-sonnet-5 has a model ratio of 1 and a completion ratio of 5. The Claude Sale Channel ratio is 0.055, so its input rate is 1 * 2 * 0.055 = $0.11; its output rate is $0.11 * 5 = $0.55. The Claude Route ratio is 0.11, which produces $0.22 input and $1.10 output. This is an explanation of the live pricing inputs, not a promise that every account can use both routes.

The route check is important. Do not calculate a Claude Route price for a model unless claude appears in that model’s enabled groups and claude has a live ratio. If your account exposes only the Claude Sale Channel, use that route’s rate. If the live catalog does not list a model or route pairing, leave it out of the estimate rather than extrapolating from a similar model.

Once a model and route are selected, calculate one request from observed token counts:

request cost = (input tokens / 1,000,000 * input rate)
+ (output tokens / 1,000,000 * output rate)

Suppose a document-review task sends 120,000 input tokens and returns 8,000 output tokens. On the Claude Sale Channel, claude-sonnet-5 costs:

input: 120,000 / 1,000,000 * $0.11 = $0.0132
output: 8,000 / 1,000,000 * $0.55 = $0.0044
total: $0.0176 per request

The same token profile on the Claude Route is $0.0352: $0.0264 for input plus $0.0088 for output. Neither figure is a monthly quote. They are arithmetic estimates for a stated token profile and named route. Your usage logs and dashboard are the billing record.

For a simple monthly scenario, assume 25,000 successful tasks, one request per task, and a 6% retry rate with the same token profile. The expected call count is 25,000 * 1.06 = 26,500. At $0.0176 per call on the Claude Sale Channel, the token estimate is $466.40. State the retry assumption next to the result; otherwise a later reader may mistake the total for a guaranteed price.

Production cost optimization starts with measurements, not the cheapest row in a table. Sample requests from each meaningful workload and retain the model, route, input tokens, output tokens, response outcome, and retry count. Then make separate budget buckets:

BucketMeasureBudget use
Typical taskMedian input and output tokensBaseline per-task estimate
Long taskHigh-percentile context and completionStress-test the monthly ceiling
Retry pathRetry frequency and tokens per retryAdd expected recovery cost
Background workEvaluations, reprocessing, and scheduled callsKeep non-user traffic visible

Compare candidates on the same evaluation set. A lower token rate is useful only if the result passes your application checks without extra repair calls. Conversely, a higher-priced route may be reasonable if it reduces retries for a measured workload. That is a recommendation to test, not a claim about model quality.

Keep input and output in separate columns. Claude output rates in the live catalog are higher than input rates, so a workflow that asks for long summaries can be output-heavy even when its prompts are short. Add a high-usage case to the forecast instead of relying on one small development request.

Send Claude 5 through an OpenAI-compatible API

Section titled “Send Claude 5 through an OpenAI-compatible API”

The catalog lists claude-sonnet-5 with both Anthropic and OpenAI endpoint types. The documented OpenAI-compatible chat endpoint is POST /v1/chat/completions through https://frugalrelay.me/v1. This Python example sends a representative request and prints usage so you can feed real token counts into the estimate.

import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["FRUGALRELAY_API_KEY"],
base_url="https://frugalrelay.me/v1",
)
response = client.chat.completions.create(
model="claude-sonnet-5",
messages=[
{"role": "system", "content": "Return a concise JSON object."},
{"role": "user", "content": "Classify this support request: I cannot sign in."},
],
)
print(response.choices[0].message.content)
print(response.usage)

The endpoint shape does not select a cheaper route by itself. Confirm the model and eligible route in the live catalog, then verify the current rate at frugalrelay.me/pricing. The getting started guide covers the initial key and connection setup. Start with a small, representative sample before moving traffic.

If your client needs Anthropic’s native request shape, the live response also documents POST /v1/messages. Use the endpoint type that matches your integration and keep the model slug unchanged. Endpoint compatibility and pricing eligibility are separate checks.

Production checklist for Claude 5 API pricing

Section titled “Production checklist for Claude 5 API pricing”
  • Record the exact model slug and human-readable route beside every input and output rate.
  • Confirm the route is enabled for the model and has a group_ratio in the live response.
  • Measure input and output tokens from representative traffic, including long requests.
  • Add retries, fallback calls, evaluations, and background jobs to the volume estimate.
  • Compare cost per accepted task, quality, latency, and retry rate on the same test set.
  • Set application output limits and separate development and production keys.
  • Recheck the live pricing catalog before a material rollout or budget change.

No. The live catalog exposes different rates for the Claude Sale Channel and Claude Route, and route availability depends on the model and account configuration. Always publish the route beside the rate.

FAQ: can I use the token formula for every model?

Section titled “FAQ: can I use the token formula for every model?”

No. The formula above is for token-priced models. A request-priced model uses model_price * group_ratio[route] and must be estimated per request. Check the model’s quota type in the live response before applying a formula.

Refresh it when the model, route, traffic mix, retry policy, or response contract changes, and before a significant production rollout. Use the live pricing page for the current public rate rather than carrying forward an old spreadsheet value.

A defensible Claude 5 production budget is therefore more than a model name times a request count. It is measured input and output usage, a named eligible route, explicit retry assumptions, and a live-rate check. That small amount of bookkeeping keeps an OpenAI-compatible integration predictable as it moves from test traffic to production.