Skip to main content
100% Client-Side PrivacyAll prompt templates, token calculators, and model configs run completely in your browser. Zero server telemetry or API key leakage.

LLM API Cost Calculator

Compare real-time API inference costs across OpenAI, Anthropic Claude, Google Gemini, and open-source cloud providers based on token usage.

Average tokens sent to the model per request.

Average tokens generated by the model.

#1

Gemini 1.5 Flash

Google

Input: $0.075/1MOutput: $0.3/1M
Est. Monthly Cost
$22.50
$0.225 / 1k req
#2

GPT-4o-mini

OpenAI

Input: $0.15/1MOutput: $0.6/1M
Est. Monthly Cost
$45.00
$0.45 / 1k req
#3

Claude 3 Haiku

Anthropic

Input: $0.25/1MOutput: $1.25/1M
Est. Monthly Cost
$87.50
$0.875 / 1k req
#4

Llama 3.1 70B (Hosted)

Open Source

Input: $0.6/1MOutput: $0.9/1M
Est. Monthly Cost
$105.00
$1.05 / 1k req
#5

Gemini 1.5 Pro

Google

Input: $3.5/1MOutput: $10.5/1M
Est. Monthly Cost
$875.00
$8.75 / 1k req
#6

Claude 3.5 Sonnet

Anthropic

Input: $3/1MOutput: $15/1M
Est. Monthly Cost
$1,050.00
$10.50 / 1k req
#7

GPT-4o

OpenAI

Input: $5/1MOutput: $15/1M
Est. Monthly Cost
$1,250.00
$12.50 / 1k req

How to use the LLM API Cost Calculator

Model your monthly infrastructure expenditure by inputting prompt and completion token volumes across leading commercial and open-source models.

Why use a dedicated llm api cost calculator?

As AI developer tools become more complex, writing boilerplate code, complex system prompts, or schema definitions manually is error-prone. This tool guarantees structured, predictable output tailored to your exact stack without the hassle of manual formatting.