Hacker News new | ask | show | jobs
by cjimesh 47 days ago
How do you keep track of changing model costs, new models, etc? Do you need to update it manually each time?
1 comments

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