AI API Token Cost Calculator

Calculate API costs for OpenAI and Anthropic models per 1M tokens.

About this Calculator

Building with AI APIs requires careful cost modeling — token costs add up quickly at scale. This calculator uses current published pricing for OpenAI (GPT-4o, GPT-4o mini, o1, o3-mini) and Anthropic (Claude 3.5 Sonnet, Claude 3 Haiku, Claude 3 Opus) models, with separate input and output token rates. Enter your expected daily/monthly request volume and average tokens per request to get a monthly cost projection — essential for pricing your AI product.

AI APItoken costOpenAI pricingAnthropic pricingGPT costClaude cost

Related Calculators