AI Model Cost & Context Calculator
Estimate Claude Fable 5 and other Claude API costs for 1M context, output tokens, prompt caching, Batch API discounts, and Fable-to-Opus switching budgets.
Pricing reference
Switching impact
Enter a long prompt, expected output, and request count to see whether a million-token context fits your per-run budget.
Use the side-by-side model total to estimate the premium or savings when routing the same workload between Fable, Opus, Sonnet, or Haiku.
Separate fresh input from shared context and see the cache write, cache hit, and no-cache totals before designing your API flow.
The calculator uses USD per MTok for base input, cache writes, cache hits, and output. It does not estimate provider taxes, enterprise discounts, or marketplace-specific pricing.
When Batch API is enabled, the tool applies the 50% discount to input, output, cache write, and cache read line items because Anthropic says Batch and prompt caching discounts can be combined.
Fable 5, Opus 4.8/4.7/4.6, and Sonnet 4.6 presets use a 1M token window at standard rates. A 900K prompt costs much more than a 9K prompt even without a separate long-context surcharge.
Quick answers for Claude Fable 5 cost, cache break-even, Batch API discounts, and long-context budgeting.
Related tools
More Calculator tools
Compare the real unit price for grocery, warehouse, and online deals after package size, units, coupons, percent discounts, and multi-buy offers.
Plan whether PDFs, meeting notes, transcripts, and project docs can fit into a 1M-token context window before you paste them into an AI model.
Calculate what score you need on a final exam or remaining coursework to reach a target course grade, including multiple remaining assignments.
Calculate how much soil you need for a raised garden bed, including cubic feet, cubic yards, liters, bag count, fill mix, and estimated cost.
