hard20 pts · first answer countsai-agentscontext-management
Savings from caching a long prefix
Each of 20 agent calls sends a 10,000-token unchanged prefix. Normal input is $3 per million tokens. Writing the cache costs 1.25x and cache reads cost 0.1x. Ignoring other tokens, what is the prefix cost with caching (1 write, 19 reads)?
Discussion 0
Join free to post in the discussion.
Related questions
- What the context window limitsAI Engineer (LLM & Generative AI)
- Workflow or agentAI Engineer (LLM & Generative AI)
- Reading the stop reasonAI Engineer (LLM & Generative AI)
- Describing tool parametersAI Engineer (LLM & Generative AI)
- What ReAct meansAI Engineer (LLM & Generative AI)
- MCP message formatAI Engineer (LLM & Generative AI)
- What an MCP server offersAI Engineer (LLM & Generative AI)
- Choosing an MCP transportAI Engineer (LLM & Generative AI)