We use cookies to understand how the site is used and to display ads. Analytics and advertising only run after you accept. You can change your choice anytime. Privacy policy

Skip to content
devvkit

devvkit / calculators

LLM Token Cost Calculator

Calculate API costs for GPT-4, Claude, Gemini, and other LLMs.

Context: 128,000 tokens

Cost Breakdown

ModelGPT-4o
Input cost ($/1K tokens)$2.50
Output cost ($/1K tokens)$10.00

Total input tokens1,000,000
Total output tokens500,000

Input cost$2500.00
Output cost$5000.00

Total Monthly$7500.00

Pricing as of 2025-01-15and subject to change by providers. Always verify current rates on the provider's pricing page before budgeting.

share this tool

Calculate cost estimates for major LLM providers from a built-in price table. Set input tokens, output tokens, and monthly requests to get per-request and monthly totals.

>[x]Features
  • -Supports GPT-4o, GPT-4 Turbo, Claude 3/3.5, Gemini 1.5, Llama 3, Mistral
  • -Built-in price table with an "as of" date shown on the tool
  • -Separate input and output token cost breakdown
  • -Per-request and monthly totals
  • -Context window shown for each model
>>Use Cases
  • >Budgeting for AI API usage in production applications
  • >Comparing cost efficiency between different LLM models
  • >Estimating fine-tuning and batch processing costs
  • >Optimizing prompt length to minimize API spend

Frequently Asked Questions

>What models are supported??
GPT-4, GPT-4o, GPT-3.5, Claude 3 Opus/Sonnet/Haiku, Claude 3.5, Gemini 1.5 Pro/Flash, Llama 3, Mistral, and more.
>How are costs calculated??
Costs are based on official pricing from each provider. Input tokens and output tokens are calculated separately.
>Are these estimates accurate??
Costs come from the built-in price table (as of January 2025, noted on the tool). Enter your own token counts; actual billing may vary slightly with rounding and provider changes.