Skip to tool

LLM Cost Calculator

Calculate LLM API costs for prompts and completions.

Output will appear here…

How to Use This Tool

  1. Choose a model. Listed USD rates are 2026 public list-price estimates (for example gpt-4o is $2.50 per 1M input tokens and $10.00 per 1M output tokens).
  2. Enter prompt (input) token count and completion (output) token count. Use the LLM Token Counter if you need a count from raw text.
  3. Click the action button to see estimated cost per call and per 1,000 calls. Providers change prices — confirm on the vendor’s pricing page before budgeting.

Learn More About LLM Cost Calculator

About LLM Cost Calculator

Estimate LLM API costs for prompts and completions across multiple providers.

About

Estimate LLM API costs for prompts and completions across multiple providers.
Estimate LLM API costs for prompts and completions across multiple providers.
Runs in browser
Yes
No signup required
Yes

Examples

GPT-4

GPT-4
Input
{
  "model": "gpt-4",
  "inputTokens": "1500",
  "outputTokens": "500"
}
Output
Model: gpt-4
Input tokens: 1500 → $0.0450
Output tokens: 500 → $0.0300
Total cost: $0.0750 per call
Cost per 1K calls: $75.00

Claude Haiku cheap

Claude Haiku cheap
Input
{
  "model": "claude-3-haiku",
  "inputTokens": "2000",
  "outputTokens": "1000"
}
Output
Model: claude-3-haiku
Input tokens: 2000 → $0.0005
Output tokens: 1000 → $0.0013
Total cost: $0.0018 per call
Cost per 1K calls: $1.75

GPT-4o longer prompt

GPT-4o longer prompt
Input
{
  "model": "gpt-4o",
  "inputTokens": "8000",
  "outputTokens": "1200"
}
Output
Model: gpt-4o
Input tokens: 8000 → $0.0200
Output tokens: 1200 → $0.0120
Total cost: $0.0320 per call
Cost per 1K calls: $32.00

Use Cases

  • Check llm cost calculator values while you draft a page, spreadsheet, or config.
  • Fill Model, Input Tokens, Output Tokens and compare the result to a second source.
  • Keep sensitive inputs on-device — this page runs the calculation in the browser.

Frequently Asked Questions

Related tools: