Claude API Pricing

v1.0.0
app.agentwright/claude-pricing Checked 10 hours ago Published 21 days ago

Current Claude API prices and cost estimates with prompt caching and Batch API pricing.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_claude_models List Claude models and prices

List current Claude API models with their prices in USD per million tokens: input, output, prompt-cache writes (5 min / 1 h), cache reads, and the Batch API discount.

estimate_claude_cost Estimate Claude API cost

Estimate the USD cost of Claude API calls from token counts. Handles prompt caching (cache writes and reads), the Batch API 50% discount and long-prompt pricing. Returns cost per request and in total.

ParameterTypeDescription
input_tokens *numberUncached input tokens per request
model *stringModel id, e.g. claude-fable-5-2, claude-opus-5-5, claude-sonnet-5-5, claude-haiku-5-5
output_tokens *numberOutput tokens per request (includes thinking tokens)
batchbooleanUse Batch API pricing (default false)
cache_read_tokensnumberTokens read from the prompt cache per request
cache_write_1h_tokensnumberTokens written to the 1-hour prompt cache per request
cache_write_5m_tokensnumberTokens written to the 5-minute prompt cache per request
requestsnumberNumber of requests (default 1)

compare_claude_models Compare Claude model costs

Compare what the same workload costs on every Claude model, cheapest first. Give tokens per request and the number of requests (e.g. per user per month).

ParameterTypeDescription
input_tokens *numberInput tokens per request
output_tokens *numberOutput tokens per request
batchbooleanUse Batch API pricing (default false)
requestsnumberNumber of requests (default 1)