Add the AI cost calculator to your website
Free embeddable LLM API and GPU rental cost calculator for developer blogs, docs, newsletters and AI tool sites. Paste one snippet; it runs in the visitor’s browser and stores nothing.
What your visitors get
- The same calculator as this site, with the same published prices and a source link and check date for each one.
- LLM API costs for their own traffic (requests a day, tokens in and out, prompt caching, batch share), with every model ranked side by side.
- Cloud GPU rental by the hour, per month, and per million tokens where a published benchmark exists.
- No sign-up, no fee, no ads inside the widget, and nothing typed into it is sent anywhere.
- It works on phones and resizes to fit when the optional script is included.
Pick a version and copy the code
Paste the code where you want the calculator to appear, using your site builder’s HTML or code block. If your site removes script tags, the calculator still works: it shows at a fixed height of 2000 pixels and scrolls inside its frame. Please keep the “Powered by” line.
US dollars
LLM API and GPU rental costs in US dollars, exactly as the providers publish them.
Code without the script
Pounds sterling
The same costs in pounds, converted from the US dollar price lists at a Bank of England exchange rate shown with the results.
Code without the script
Both, with a currency switch
Starts in US dollars; visitors can switch to pounds.
Code without the script
Preview
This is the version with the currency switch, exactly as it appears on another site.
Good to know
- Prices update when we recheck the providers’ price lists, so the widget never needs changing on your side. Every price, its source and the date it was checked is listed on the methodology page.
- The results are estimates from list prices. They leave out negotiated discounts, free allowances, tool and search charges, and differences in how each model counts tokens.
- A price a provider has not published, or that we have not yet verified, is shown as unavailable rather than guessed.
- The script only listens for the calculator’s height from this site. It does not load anything else.