LLM APIs · Answer
How to calculate prompt caching and batch API costs
Short answer
Batch processing offers a 50 percent discount on input and output tokens across providers like Anthropic, Azure OpenAI, and Mistral1,2,3. Prompt caching lowers input rates, such as $0.10 (₹9.28) per million tokens for Claude Sonnet 5.5 or ₹0.25 per million tokens for Sarvam 105B4,5. Total costs require applying these input cache hit rates and batch discounts to standard model rates6,7.
Batch processing discounts
Batch processing reduces token costs when requests do not require immediate responses. Anthropic Batch API offers a 50 percent discount on both input and output tokens3. Azure OpenAI Batch API returns completions within 24 hours for a 50% discount on Global Standard Pricing1. Mistral batch processing also reduces API pricing by 50%2.
Prompt caching rates
Prompt caching lowers rates for repeating context in input prompts. For Mistral API, cached input tokens reduce input cost by up to 90%12. For OpenAI gpt-6.2-astra, standard input tokens cost $8.00 (₹742.37) per million tokens, while cached input tokens cost $0.40 (₹37.12) per million tokens6,7. For gpt-6.2-sol, standard input tokens cost $2.00 (₹185.59) per million tokens and cached input tokens cost $0.10 (₹9.28) per million tokens13,14.
Prompt cache hits for Claude Fable 5.2 and Claude Opus 5.5 cost $0.20 (₹18.56) per million tokens15,16. Prompt cache hits for Claude Sonnet 5.5 cost $0.10 (₹9.28) per million tokens4. Sarvam 105B features an introductory input price of ₹10.00 per million tokens and a cached input price of ₹0.25 per million tokens17,5.
Prompt tier thresholds
Some models change pricing tiers based on prompt length thresholds. For Claude Haiku 5.5, base input tokens cost $0.10 (₹9.28) per million tokens and output tokens cost $0.50 (₹46.40) per million tokens for prompts up to 100,000 tokens18,19. For prompts exceeding 100,000 tokens, Claude Haiku 5.5 base input tokens cost $0.50 (₹46.40) per million tokens and output tokens cost $2.50 (₹231.99) per million tokens20,21,22,23.
Batch pricing for Claude Haiku 5.5 also changes at 100,000 tokens. For prompts up to 100,000 tokens, batch input tokens cost $0.05 (₹4.64) per million tokens and batch output tokens cost $0.25 (₹23.20) per million tokens24,25. For prompts over 100,000 tokens, batch input tokens cost $0.25 (₹23.20) per million tokens and batch output tokens cost $1.25 (₹116.00) per million tokens26,27.
Prices exclude taxes.
Rupee amounts use ₹92.7968 per $1, the FBIL reference rate checked on 25 Nov 202628. Your bank's rate may differ.
Sources
Each fact links to its official source, with the date it was checked.
- 1Azure OpenAI Batch API returns completions within 24 hours for a 50% discount on Global Standard Pricing. azure.microsoft.com · checked 25 Nov 2026
- 2Batch processing reduces API pricing by 50%. mistral.ai · checked 25 Nov 2026
- 3The Batch API offers a 50 percent discount on both input and output tokens. platform.claude.com · checked 25 Nov 2026
- 4Prompt cache hits for Claude Sonnet 5.5 cost $0.10 USD per million tokens. platform.claude.com · checked 25 Nov 2026
- 5Sarvam 105B introductory cached input price is ₹0.25 per 1M tokens. sarvam.ai · checked 25 Nov 2026
- 6The Standard input price for gpt-6.2-astra is $8.00 per 1M tokens.
Correction
Of the three providers, only Anthropic says its 50 percent batch discount applies to both input and output tokens3. Azure OpenAI's page gives a 50% discount on Global Standard pricing1, and Mistral's says batch processing reduces the price by 50%2; neither statement names input or output tokens.
Added 28 Nov 2026.
Disclosures
- Rishi and I (Debarati Seal, who built this section) are both students at RCC Institute of Information Technology, Kolkata.
- Rishi is an unpaid Microsoft Student Ambassador and an unpaid GDG on Campus organiser. Microsoft and Google are among the providers this section covers.
- He is not employed or paid by any AI provider this section covers.
Review history
First published 27 Nov 2026, last updated 28 Nov 2026.