NHacker Next on Rails
  • top
  • new
  • best
  • ask
  • show
  • jobs
login
GuidelinesFAQListsAPISecurityLegalApply to YCContact

Hacker News on Rails, powered by React on Rails Pro. Open the source on GitHub by ShakaCode.

Commit 06fc0df

Rendered at 10:34:58 GMT+0000 (Coordinated Universal Time) with Rails + React on Rails RSC.

Show HN: Self-hosted AI spend attribution (demo.costura.ai)

5 points by 0set0set 1d ago | 2 comments

cjimesh 1d ago
How do you keep track of changing model costs, new models, etc? Do you need to update it manually each time?
0set0set 1d 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