LLM Token Cost Calculator
Calculate API costs for large language models based on input/output tokens and request volume.
Inputs
Results
Cost per Request
$0.01
Monthly Cost
$405.00
≈ 7 tanks of gas
How to Use This Calculator
- Enter Input Tokens per Request, Output Tokens per Request, and Model.
- Set GPT-4o, Claude Sonnet, and Llama 3 (hosted).
- Adjust Requests per Day as needed.
- Review Cost per Request ($) and Monthly Cost ($).
- Use Daily Cost ($) to inform your decision.
How the result changes with Output Tokens per Request
| Output Tokens per Request | Cost per Request | Monthly Cost |
|---|---|---|
| 10,000 | $0.16 | $4,680.00 |
| 35,000 | $0.53 | $15,930.00 |
| 65,000 | $0.98 | $29,430.00 |
| 90,000 | $1.36 | $40,680.00 |
What each input means
- Input Tokens per Request
- Average number of input/prompt tokens per API request
- Output Tokens per Request
- Average number of output/completion tokens per API request
- Model
- API provider and model — pricing varies significantly between providers
- Requests per Day
- Expected number of API calls per day
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersInput Tokens per Request = 2000, Output Tokens per Request = 500, Model = 2, Requests per Day = 1000 = 4 input(s) provided
- Calculate Cost per RequestCost per Request0.0135 = $0.014
- Calculate Monthly CostMonthly Cost405 = $405
- Calculate Daily CostDaily Cost13.5 = $13.5
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
GPU Training Cost Calculator
Estimate cloud GPU training time, cost, and CO2 emissions for machine learning model training.
MLOps & AI CostingInference Latency Calculator
Estimate model inference latency, throughput, and memory requirements across CPU, GPU, and edge hardware.
Ai ToolsAI Model Cost Comparison Calculator
Compare per-token and per-request costs across AI providers including GPT-4o, Claude, Gemini, and self-hosted Llama.
Ai ToolsLLM Token Calculator
Estimate token count and API cost from text length across different tokenizers (GPT-4, Claude, Llama).
Ai ToolsFine-Tuning Cost Calculator
Estimate LLM fine-tuning costs from dataset size, epochs, and model choice for OpenAI API and self-hosted options.
More in Technology & Computing.