Home Work & Income LLM Token Cost Calculator

LLM Token Cost Calculator

What an AI feature really costs per request, per month and per year, from the token prices.

Advertisement

How it works

Take the two prices your provider lists per million tokens, one for input and one for output, then estimate a typical request: prompt plus context on the way in, answer on the way out. Multiply by how many requests you expect per month. Small per-request numbers hide fast: a cent and a half per request is over six hundred dollars a month at fifty thousand requests.

Advertisement

Formula

Cost per request = input tokens / 1,000,000 x input price + output tokens / 1,000,000 x output price.
Monthly = cost per request x requests per month.

Example

Example in plain words. Input at 2.5 per million tokens, output at 10, a request of 2000 tokens in and 800 out, 50,000 requests a month.

Per request: 0.005 + 0.008 = 0.013.

Monthly: 0.013 x 50,000 = 650.00. Yearly: 7,800.00.

Frequently asked questions

Why are input and output priced differently?

Generating tokens costs the provider more than reading them, so output is usually three to five times the input price. Long answers are the expensive half of most workloads.

How do I estimate my tokens?

Paste a real prompt and answer into a tokenizer from your provider; rough English averages about four characters per token, and other languages often use more.

Advertisement

Related calculators

Salary Calculator

Convert a salary between hourly, weekly, every two weeks, monthly and yearly pay.

Time Card Calculator

Add up your clock-in and clock-out times for the week, take off breaks, and get total hours and pay.

Prorated Salary Calculator

Pay for part of a month, for example when you start or leave in the middle of it.

IP Subnet Calculator

Network address, broadcast address, subnet mask and usable host range for any IPv4 address and prefix length.