RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

LlmCostTracker 0.14.2: OpenRouter billed cost, xAI and Mistral prices, and a reprice

LlmCostTracker tracks LLM spend and budgets in a Rails app by user, feature, or any tag, in your own database and with no proxy.

What’s new in 0.14.2:

  • OpenRouter calls are recorded at the billed usage.cost, not a list-price estimate
  • Bundled xAI and Mistral prices, with batch, priority and regional rates
  • A new reprice task for calls already recorded at a wrong rate
  • Capture for the Gemini Interactions API, background OpenAI Responses, and Anthropic fallback and advisor calls
  • Dozens of accounting fixes, e.g. Gemini image models priced up to 770x too low and transcriptions now billed per second
  • Rails 8.0+ is now required

Details are in the changelog.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in