Saraswati Stitch needle-and-thread markSaraswati Stitch®
contact@saraswatistitch.comBook a call

Case study · in-house build

AI API Cost Calculator

A free tool that compares what a request costs across AI models, using prices loaded live instead of typed in by hand.

Client
In-house
First version
16 November 2026
Price data
Cached for up to an hour

The problem

AI providers charge separately for the text you send and the text the model writes, and their prices change. Comparing them meant opening one pricing page after another and doing the sums by hand.

A table typed into a web page goes out of date without anyone noticing.

What we built

  • A calculator that shows the cost per request and per month for each listed model, with filters by model type and provider, a search box and a token estimator.
  • A server route that loads the public model list from OpenRouter, keeps the models that carry a price and converts everything to cost per million tokens.
  • Eight provider pages, each opening the calculator on that provider with its own explanation of how that provider charges.

Stack

  • Next.js and TypeScript
  • OpenRouter public model list, which needs no key
  • Hosting on Vercel

Timeline

  • 16 November 2026. Calculator built, and the eight provider pages added the same day.
  • 23 November 2026. Launched on Product Hunt.
  • 30 November 2026. Added a next step and anonymous run tracking, and redesigned the page with the other tools.

Results

  • The tool is live and free, with no account.
  • It loads prices from the source, so a price change does not need an edit by us.
  • We are not publishing usage or revenue figures: it is too early for them to mean much.

What we would do differently

  • The first version had no next step and gave us no usage data. We added both two weeks later, and would now include them from the start.
  • All prices come from one source, so a provider’s direct price can differ. The page has to say that plainly.

See it and read on

Book a free call