ToolPuma Logo

LLM Token Cost Calculator

Estimate the cost of LLM token usage across models.

$0.075
Input cost
$0.075
Output cost
GPT-4.5 Preview — cost estimate
Total tokens1,500
Input rate$75 / 1M
Output rate$150 / 1M
Total cost$0.150

What Is a LLM Token Cost Calculator?

The LLM Token Cost Calculator estimates the API cost of a language model request across OpenAI, Anthropic Claude, and Google Gemini models. Enter input and output token counts, or paste a prompt to estimate input tokens automatically, and the tool calculates the price using each model's per-million-token rates.

How to Use This LLM Token Cost Calculator

  1. 1
    Pick a modelSelect the model you plan to use.
  2. 2
    Enter tokensType the input and output token counts.
  3. 3
    Or paste a promptPaste a prompt to auto-estimate its input tokens.
  4. 4
    Read the costReview the input, output, and total cost.

Frequently Asked Questions

The rates reflect published per-million-token prices at the time the models were added. Pricing changes often, so confirm current rates on the provider's pricing page.
Input tokens include the system prompt, any conversation history, and the new user message. All of them are billed at the input rate.
The general calculator uses the standard input rate. For models with prompt caching, see the Claude cost calculator for cache-aware estimates.