Yearly Pay yearly and get 2 months free on every paid plan. See plans
Sign in Start free

Understanding multimodal AI pricing — tokens, images, and seconds

One BillingRecord per call, full snapshot Every AI call on ToRun produces exactly one BillingRecord that captures the price at the moment of execution. Provider rates change every few weeks; storing the rate inline means…

One BillingRecord per call, full snapshot

Every AI call on ToRun produces exactly one BillingRecord that captures the price at the moment of execution. Provider rates change every few weeks; storing the rate inline means an invoice from three months ago is still verifiable today.

The twelve pricing units

We track twelve canonical pricing units that cover every multimodal capability we route:

  1. PerInputToken (text input)
  2. PerOutputToken (text output)
  3. PerCachedInputToken (prompt cache hit)
  4. PerImage (image generation)
  5. PerSecondAudio (TTS / STT)
  6. PerSecondVideo (video generation)
  7. PerCharacterTts (legacy text-to-speech billing)
  8. PerSearchCall (web search tool)
  9. PerComputeSecond (sandbox execution)
  10. PerEmbedding (vector embedding)
  11. PerMinuteRealtime (realtime voice / video)
  12. PerRerankPair (reranking)

Why per-million instead of per-1k

All token-priced models now publish their rates per million tokens. We follow that convention so the math is honest at the scale modern users operate at. The legacy "Per1k" field was removed from AiModel and replaced by AiModelPricing rows that carry a PricingUnit enum.

Multi-currency snapshot

Every BillingRecord carries: CurrencyCode, AmountUsd (canonical), AmountLocal, ExchangeRate and ExchangeRateAt. If the dollar moves, your historical invoices keep their original FX, and a finance report can reconcile back to the original USD basis at any time.

What this means for you

You can audit every cent. You can export billing data and recompute it offline. You can switch providers without losing historical pricing context. That is the foundation we are building everything else on.

Share LinkedIn X Email
Try it on your own workEvery reply shows what it cost. Start on the Free plan. Start free
Get product updates, not noise New models, features, and changelog highlights - a short email when something actually ships.
By subscribing, you agree to receive ToRun product update e-mails. You can unsubscribe at any time. Privacy Policy