Home › Embed calculator
Free LLM API cost calculator widget
Put a live LLM pricing calculator on your blog, docs or internal wiki with one iframe. It prices any of 49 models for your input tokens, output tokens and monthly request volume, and shows the five cheapest alternatives. No signup, no API key.
Live preview
Copy this code
Paste it where you want the calculator to appear. Keep the line under the frame, it is how the prices are credited.
<iframe src="https://rabayid.com/embed/cost-calculator" width="100%" height="520" style="border:1px solid #e2e8f0;border-radius:12px;max-width:720px" loading="lazy" title="LLM API cost calculator by TokenMeter"></iframe>
<p style="font-size:12px">Prices by <a href="https://rabayid.com/">TokenMeter</a></p>
What it shows
- Monthly cost for the chosen model and workload, and the cost per request.
- Five cheapest models for the same workload, so readers see the alternatives.
- Current list prices from the open dataset, loaded each time the widget opens.
Cached-input and batch discounts are not included. For those, see the prompt caching calculator, or paste text into the token counter.
Frequently asked questions
Is the widget free?
Yes. There is no signup, no API key and no fee. Keep the small "Prices by TokenMeter" link under the widget, which is how the project is credited.
Where do the prices come from?
From the open TokenMeter pricing dataset, which is checked against each provider's own pricing page and re-verified regularly. The widget loads the current file, so your embed stays up to date without any change on your side.
Does the widget track my visitors?
The calculator itself sets no cookies and loads no ads or analytics scripts. It only fetches the public price file.
Can I change the size?
Yes. Set the iframe height to 480 to 560 pixels and the width to 100 percent. It works from about 320 pixels wide.
Can I use the data directly instead?
Yes. The full dataset is at https://rabayid.com/data/pricing.json under CC BY 4.0, so you can build your own calculator if you prefer.