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.
Formula
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.