Triweb AI

Free AI Tool

AI Cost Calculator

Compare per-request costs across OpenAI, Anthropic, Google, Groq, xAI, and DeepSeek. Adjust token counts to see real pricing - no sign-up, no API key needed.

Sort by:
ProviderModelInputOutputTotal
Google
Gemini 2.0 Flash-LiteCheapest
$0.0001$0.0006$0.0007
Groq
Llama 4 Scout 17B
$0.0002$0.0006$0.0008
Groq
Mixtral 8x7B
$0.0005$0.0005$0.0010
Google
Gemini 2.0 Flash
$0.0002$0.0008$0.0010
Groq
Llama 4 Maverick 17B
$0.0004$0.0008$0.0012
OpenAI
GPT-4o-mini
$0.0003$0.0012$0.0015
DeepSeek
DeepSeek V3
$0.0005$0.0022$0.0027
Groq
Llama 3.3 70B
$0.0012$0.0016$0.0028
Groq
DeepSeek R1 Distill Llama 70B
$0.0016$0.0018$0.0034
xAI
Grok 3-mini
$0.0006$0.0030$0.0036
DeepSeek
DeepSeek R1
$0.0011$0.0044$0.0055
Anthropic
Claude Haiku 3.5
$0.0016$0.0080$0.0096
OpenAI
o3-mini
$0.0022$0.0088$0.011
OpenAI
o1-mini
$0.0022$0.0088$0.011
Google
Gemini 2.5 Pro
$0.0025$0.010$0.013
Google
Gemini 1.5 Pro
$0.0025$0.010$0.013
OpenAI
GPT-4o
$0.0050$0.020$0.025
Anthropic
Claude Sonnet 4
$0.0060$0.030$0.036
xAI
Grok 3
$0.0060$0.030$0.036
OpenAI
o3
$0.020$0.080$0.100
OpenAI
o1
$0.030$0.120$0.150
Anthropic
Claude Opus 4
$0.030$0.150$0.180

How pricing works

Input tokens - the text you send (prompt + context + instructions). Longer inputs cost more.

Output tokens - the text the model generates. Almost all providers charge more for output than input.

Total = (input tokens × input price) + (output tokens × output price). Prices update automatically as you adjust the sliders. The cheapest model is highlighted in green.

Prices shown are per-request estimates in USD, based on each provider's published per-million-token rates. Actual costs may vary for cached inputs, batch APIs, or special pricing agreements.

Get AI insights delivered weekly

Like what you read? Join the newsletter and receive the latest AI news, analysis, and practical insights straight to your inbox every week - written by Triweb AI.

Free AI Implementation Starter Kit