- FINANCIAL
- EFFICIENCY
- TECHNICAL
- HUMAN
Our technology reaches across leading technology and enterprise teams.

Short answer
How do I calculate prompt cache savings?
Your agent scans your request logs to identify how often identical prefixes appear. It then compares the cost of those cached hits against standard input costs to give you a final dollar amount. You get a clear breakdown of your savings.
The results you get
What your analysis reveals
Your agent processes your logs and delivers these specific insights.
FINANCIAL
Total dollar savings
Your agent calculates the exact money saved by using cached prefixes instead of paying full price for each token.
EFFICIENCY
Cache hit rate
You get a percentage showing how often your requests actually hit the cache versus being processed as new input.
TECHNICAL
Prefix reuse patterns
Your agent identifies which specific prompt structures are being reused most frequently in your logs.
HUMAN
Optimization decisions
You decide which prompts to restructure for better caching based on the data your agent provides.
The workflow
What your agent does when the logs arrive.
Your agent handles the heavy lifting of parsing logs and doing the math.
Ingest logs
Your agent reads your request history to identify token counts and prefix structures.
analyze_cache_performanceIdentify reuse
It looks for identical token sequences at the start of your prompts to find cacheable segments.
analyze_cache_performanceCalculate delta
Your agent compares the cost of non-cached requests against the discounted cached rates.
analyze_cache_performanceReport savings
Your agent presents the final dollar amounts and hit rates in a clear format.
analyze_cache_performance
Vinkius Agentic Execution Platform
State the outcome. Agents take it from there.
You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.
Run it in Vinkius
Agents carry the task to the end
Agents execute Prompt Cache Hit Calculator tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.
Take it to any compatible AI
One connection, any client
Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.
Spaces
One Space per activity
A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.
Limits
Autonomy inside limits you set
Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.
Record
All steps, on the record
Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.
Models
Included in your plan
A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.
Try it
Copy these to start.
Use these prompts to begin your analysis.
Starting points
Swap the bracketed text with your actual log file names or storage paths.
Prompt Cache Hit Calculator Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_RtPMDdAVBYJh5FuqI4pTMxgwoz4sOxqI1BctS0MI/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat, Prompt Cache Hit Calculator capabilities are ready to use.
{
"mcpServers": {
"prompt-cache-hit-calculator-mcp": {
"url": "https://edge.vinkius.com/vk_preview_RtPMDdAVBYJh5FuqI4pTMxgwoz4sOxqI1BctS0MI/mcp"
}
}
}- 01
Analyze my logs in [path/to/logs] and tell me how much money I saved through prompt caching.
- 02
What is my current cache hit rate based on the request data in [file_name.json]?
- 03
Show me which prompt prefixes are being reused most often in my [log_directory] logs.
- 04
Calculate the total cost difference between my cached and non-cached requests in [log_file].
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Prompt Cache Hit Calculator once, then ask.
Link your log source to the MCP. Your credentials stay encrypted, and you can immediately start asking your agent about your savings.
Connect Prompt Cache Hit Calculator to your agentFAQ
How this task behaves
- 01
Can your agent change my actual billing settings?
No. Your agent only reads your logs to calculate savings; it cannot access your billing account or change any pricing.
- 02
Does your agent delete my request logs?
No. Your agent only performs analysis on the data it reads. It has no capability to delete or modify your original log files.
- 03
How does it know the cost of a cached token?
Your agent uses the specific pricing models provided in your analysis request to calculate the delta between standard and cached rates.
- 04
Can I use this with any log format?
Your agent can process standard JSON or text-based request logs that contain token counts and prefix data.
- 05
Will this work if I don't have prefix reuse?
Yes, but your savings will be zero. Your agent will report that no cache hits were detected.
More questions about Prompt Cache Hit Calculator? The Connector page answers them. See everything the Prompt Cache Hit Calculator Connector can do
Building with AI? Ship this whole workflow in your product.
Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Prompt Cache Hit Calculator to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.
Explore Vinkius ConnectTypeScript · Python · Java · Go · C# · PHP · Rust
- 01
Your customers bring their own keys.
Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.
- 02
Whole catalog, kept current.
Prompt Cache Hit Calculator plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.
- 03
Any agent, any model.
Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.
Connect Prompt Cache Hit Calculator to Claude, Cursor, ChatGPT & more
From idea to done
See what gets done when the agents take over the busywork
Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.









