Skip to content
Demo · sample data

LLM cost calculator

Token budget and example cost for a prompt, with mock prices

Build this for me
rajibsai.com/demos/llm-cost

Interactive demo · mock data. Unit prices are invented examples so the math is visible, not a vendor price and not a quote. Nothing is sent to a model API.

Estimated cost (example rates)
$60.00/ month
$0.0060 per request
Share of $200 budget30%

(800/1e6 × $2.5) + (400/1e6 × $10) × 10,000 requests

About this demo

Pick a model, enter prompt and completion tokens, and see an estimated cost using example unit prices. The prices are fictional snapshot figures for the demo, not a live price list and not a quote. It shows the kind of cost check I write about in the blog note on LLM cost control.

Features

  • Example unit prices, clearly labeled as mock data
  • Prompt vs. completion token split
  • A simple monthly budget bar
  • Runs entirely in your browser

Tech used

TypeScriptReact

Use cases

  • Cost checks before wiring an LLM API
  • Token-budget notes in a product brief

Want the production version?

Real contracts, APIs and integrations, scoped to your project.