Hacker News new | ask | show | jobs
by 0set0set 47 days ago
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