All posts
Wallet, billing & per-request cost — the exact formula
Product 6 min read· 18 Jul 2026· By TokenBaazar Team

Wallet, billing & per-request cost — the exact formula

How TokenBaazar meters a request: token count, model rate, wallet deduction, transaction ledger.

Transparency matters when you're paying per token. Every request generates a ledger entry you can inspect from your dashboard.

The formula#

text
cost_paise = ceil((tokens_in * rate_in + tokens_out * rate_out) / 1000)

Rates come from the model_pricing table and are always quoted per 1000 tokens in paise. Fractional paise round up so you never underpay by one.

Where you see it#

  • Dashboard: live wallet balance
  • Transactions: every request with tokens in/out and cost
  • Response headers: X-Cost-Paise and X-Balance-Paise
Wallet ledger screenshot
Refunds on failed upstream calls are automatic — you are never charged for a 5xx you didn't get value from.

Ready to build?

Grab a key, keep your OpenAI SDK, and pay in INR.

Start free