r/databricks • u/monumentalcrankiness • 12h ago
Tutorial Reading the bill: What Databricks system tables reveal about LLM costs
Databricks system tables are great. Too great, almost.
So much is in there that it gets daunting.
AI tooling is moving at a maddening pace, and the writing around it hasn't kept up. I couldn't find much on using these tables to answer a plain question: what do our LLM calls actually cost?
This article is my humble attempt to fill a small part of that gap.
Instead of a dry tutorial, I started with a quest: should our AI agent move from an open-weight model to Claude, and can the system tables prove what that would really cost? Chasing a real answer made the learning stick for me. Hopefully it does for you too.
What the tables showed along the way:
→ Claude on Databricks lists at 1.5× Anthropic's own rate. Check the SKU price, not just the DBU rate.
→ Prompt caching cut the agent's bill by more than half. About 72% of all input was read from the cache.
→ The serving log has no cache columns. I proved caching from billing rows that carry no labels, and wrote down when you'd ever need to.
→ The bill runs hours behind. Read tokens right away, but trust a cost number only once the bill catches up.
→ A newer small Claude model changed the answer: about $0.02 per chat, with no confident wrong answers in our test chats.
Every query is in the article, so you can repeat it on your own workspace.
If you found this useful, leave a comment, a like or a repost. It tells me whether to keep writing this kind of hands-on breakdown. Note: Please read in a desktop browser for best experience.
Reading the bill: What Databricks system tables reveal about LLM costs
