Skip to content
AI
Everyday AI
Back to Tools

Token Cost Calculator

Estimate API costs for various AI models. Select a model, enter your expected token usage, and see the calculated costs instantly. Prices are per million tokens and can be customized.

Configuration

Custom Pricing (per million tokens)

Cost Estimate

Total Cost (1 call)

$0.006000

Cost per request$0.006000
Input cost (1,000 tokens)$0.002000
Output cost (500 tokens)$0.004000

GPT-4.1

Input: $2/M • Output: $8/M • Cached: $0.5/M

About This Calculator

Costs are calculated using the industry-standard token pricing formula:

Total = (Input Tokens × Input Cost + Output Tokens × Output Cost − Cached Tokens × Cache Savings) ÷ 1,000,000

All prices are in USD per million tokens. Cached token savings apply when your provider supports prompt caching, reducing repeat input costs. These figures are estimates based on publicly available pricing as of January 2025.

[1] Pricing methodology based on standard API pricing models. Always verify current rates on official provider pricing pages: OpenAI, Anthropic, Google AI