Hacker News new | ask | show | jobs
Show HN: Self-hosted AI spend attribution (demo.costura.ai)
5 points by 0set0set 47 days ago
2 comments

I had the same issue with Anthropic not reporting cost per key. I ended up adding an “estimated” figure too, so it could at least be compared with other services. Do you label the split as an estimate in the UI, or show it like the other providers’ numbers?
How do you keep track of changing model costs, new models, etc? Do you need to update it manually each time?
Nope, Costura doesnt calculate token prices. It pulls actual costs from each provider billing API, so price changes and new models are picked up automatically

I only maintain a small catalog for model metadata. Unknown models still get tracked as 'Other'

Anthropic is a bit tricky since costs arent reported per API key, so I split them based on token usage. Anything unmatched stays as 'unallocated' to keep totals accurate

The only manual pricing is for Codex credits and Cursor seats