medium10 pts · first answer countsprompt-cachingtoken-cost
Savings from a cached prefix
Each request has an 8,000-token shared prefix and 2,000 new tokens. Input costs $2 per million tokens, and cached prefix reads cost 10% of that. Ignoring cache write costs, how much cheaper is the input of a cache-hit request than an uncached one?
Discussion 0
Join free to post in the discussion.
Related questions
- Tracking tokens per requestAI Engineer (LLM & Generative AI)
- Asking for five versions at onceAI Engineer (LLM & Generative AI)
- Input or output, which costs moreAI Engineer (LLM & Generative AI)
- Converting an API bill to rupeesAI Engineer (LLM & Generative AI)
- Cache entries do not last foreverAI Engineer (LLM & Generative AI)
- Cost of a long system promptAI Engineer (LLM & Generative AI)
- Estimating monthly token costAI Engineer (LLM & Generative AI)
- Which rate limit binds firstAI Engineer (LLM & Generative AI)