Enrichment · STEM Explorations · Pricing a project

Price the project
before the first
invoice arrives.

Type how many requests the app makes a day, how many tokens go in and come back on an average request and the prices your provider lists for a million tokens in and out. The page works out the cost of one request, a day, a month and a year, and how much of the bill is the answers.

The AI API cost forecast calculator

The worked example is 2,000 requests a day with 900 tokens in and 350 tokens out, priced at $3 and $15 for a million tokens, over 30 days against a $600 monthly budget. Nothing you type leaves this browser.

Loading the calculator. If nothing appears, turn on JavaScript.

What you get

Enrichment · STEM ExplorationsOpen to everyone · no sign-in

What you finish with
The cost of one request, a day, a month and a year of an app that calls a language model, how much of the bill is the answers, the tokens used and a table for other traffic.
Who it is for
Students and makers building a project that calls a language model through an API, and teachers planning one for a class.
Format
Browser calculator for a phone, tablet or computer, by touch or keyboard. Prints a summary; downloads a spreadsheet (.csv); export and import a file.
Access
Open to everyone with the link: no account, no sign-in, nothing to buy and nothing to install. Everything you type stays in this browser; nothing is sent to Caveat.
Where it lives
The STEM Explorations space in Caveat Enrichment.
Support
Questions, a correction or a request: team@caveatacademic.com.

How to use it

  1. Name the project.
  2. Type the requests a day and the tokens in and out of an average request.
  3. Type the two prices from your provider.
  4. Type the days of use and a monthly budget.
  5. Read the cost of a month, then try other traffic.

Forecast the bill

How the figures are worked out

Tokens in and out, priced by the million.

The worked example: a hint botTokens in$0.0027900 at $3 a millionTokens out$0.0053350 at $15One day$15.902,000 requestsOne month$47730 daysThe worked example: a hint botTokens in$0.0027900 at $3 a millionTokens out$0.0053350 at $15One day$15.902,000 requestsOne month$47730 days
Tokens in and out are priced separately per million, added for one request, and scaled up by the requests and the days.

Why the answer costs more than the question

Providers price tokens that come back higher than tokens that go in, often by a factor of three to five. A long answer to a short question can cost more than the whole prompt, so asking for brief answers is the quickest way to lower a bill.

What a token is

Models read text in pieces called tokens, usually a few letters or a short word. English averages about four characters, or three quarters of a word, per token, but code and other languages differ. Use your provider's counter for a real number.

Sources

  1. OpenAI. What are tokens and how to count them (help.openai.com).
  2. Anthropic. Pricing and Token counting in the API documentation (docs.anthropic.com).
  3. Google. Gemini API pricing and token counting (ai.google.dev).
  4. Your own provider's current pricing page, the only source of the prices you should type.

An estimate from the prices you type; providers change prices and add fees. The worked example is made up. Your entries stay in this browser. Support: team@caveatacademic.com.

Written with AI, then checked before it is published. How we checkFound a mistake? Report it and we fix it, or refund you.Cancel anytime.