AI API Cost Calculator (LLM Token Pricing)
Estimate what an AI API costs per request, per day, per month and per year from input and output tokens per request, the number of…
Estimate what an AI API costs per request, per day, per month and per year from input and output tokens per request, the number of requests and each model's price per million tokens. Includes prompt-caching and batch discounts.
Results
About This Calculator
Cost per request = input tokens × input price + output tokens × output price, with prices quoted per million tokens. Output tokens usually cost about 5× more than input.
If you resend the same long prompt, prompt caching bills those cached input tokens at about 10% of the normal price. Batch processing halves the price for jobs that can wait. For OpenAI, Gemini or any other model, choose Custom and enter its current prices.
Example
Example: 1,000 requests a day on Claude Sonnet 5.5, each with 2,000 input and 500 output tokens, costs about $270 a month ($0.00900 per request).
Assumptions
Claude presets are Anthropic's first-party list prices (cached November 2026). Prompt-cache writes cost a little more than normal input and aren't modelled. A month is 30 days. Prices change, so check the provider's pricing page.
Frequently Asked Questions
How much does the Claude API cost?
From $0.10 / $0.50 per million input / output tokens for Haiku 5.5 to $8 / $40 for Fable 5.2. Sonnet 5.5 is $2 / $10.
How can I cut AI API costs?
Cache long repeated prompts, batch non-urgent jobs, keep outputs short and use the smallest model that does the job well.
Related Calculators
About the Author

Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile