A cost calculator for anything built on a language model, for pricing pages, ROI sections and AI agency sites.
Enter requests per month and the input and output tokens per request. It returns cost per request, per thousand requests, per month and per year, and it shows the input and output split as a bar, which is usually the surprise: output tokens are most of the bill on most workloads.
Models are a plain text field, one per line: a name, the input price per million tokens, the output price per million. Deliberately not a built-in list of vendors and their prices. Token prices move, this runs on your live site, and a stale price shown as fact is worse than no calculator, so you type today's numbers off today's pricing page and they are yours. Every model you list is costed against the same usage at once and ranked, and a visitor can click between them.
Prompt caching is modelled: set what share of input tokens are served from cache and how much cheaper a cached token is, and the input rate becomes a blend rather than a discount applied at the end.
Currency is a visitor-facing selector, every figure goes through Intl so it reads correctly in any locale, and the heading, radius and every colour are controls.
After purchase you receive the component URL. In Framer, press Insert, choose Add Component URL, and paste it.
Licence: yours to use on your own sites and on client sites, commercially, with no attribution. Not for resale or redistribution: do not share the component URL, and do not publish the component or its code anywhere, paid or free. Full terms arrive with your purchase. Questions: me@majedesigns.dev
A cost calculator for anything built on a language model, for pricing pages, ROI sections and AI agency sites.
Enter requests per month and the input and output tokens per request. It returns cost per request, per thousand requests, per month and per year, and it shows the input and output split as a bar, which is usually the surprise: output tokens are most of the bill on most workloads.
Models are a plain text field, one per line: a name, the input price per million tokens, the output price per million. Deliberately not a built-in list of vendors and their prices. Token prices move, this runs on your live site, and a stale price shown as fact is worse than no calculator, so you type today's numbers off today's pricing page and they are yours. Every model you list is costed against the same usage at once and ranked, and a visitor can click between them.
Prompt caching is modelled: set what share of input tokens are served from cache and how much cheaper a cached token is, and the input rate becomes a blend rather than a discount applied at the end.
Currency is a visitor-facing selector, every figure goes through Intl so it reads correctly in any locale, and the heading, radius and every colour are controls.
After purchase you receive the component URL. In Framer, press Insert, choose Add Component URL, and paste it.
Licence: yours to use on your own sites and on client sites, commercially, with no attribution. Not for resale or redistribution: do not share the component URL, and do not publish the component or its code anywhere, paid or free. Full terms arrive with your purchase. Questions: me@majedesigns.dev