ai

Prompt Caching Savings Calculator (LLM API Costs)

Estimate how much prompt caching cuts your LLM API bill: monthly input tokens, cacheable share, and hit rate give per-model savings, cache writes included.

post/api/v1/tools/prompt-caching-savings-calculator

Request

  • Base URL: https://calcfleet.com
  • URL: https://calcfleet.com/api/v1/tools/prompt-caching-savings-calculator
  • Auth: none declared

Request body

monthlyInputTokensMnumber required
cacheableSharePctnumber required
hitRatePctnumber required
modelId'gpt-5.5' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'claude-opus-4.8' | 'claude-sonnet-4.6' | 'claude-haiku-4.5' | 'gemini-3.5-flash' | 'gemini-3.1-pro' | 'gemini-2.5-flash' required

Response

Successful calculation result.

resultobject required

Structured calculation output (fields vary per calculator).

Changes

No recorded changes to this operation across all 1 revision of this API.