Prices updated daily

LLM API Cost Calculator

Paste a prompt, pick a model and see what it costs. Compare API token prices for OpenAI GPT, Anthropic Claude, Google Gemini, Mistral, DeepSeek and xAI Grok. Runs in your browser, no sign-up, no ads.

Model Press / to search

Compare LLM API prices

Prices per 1 million tokens in US dollars. The last column shows the cost of your prompt on each model. Click a row to use that model.

chat-latestOpenAI$5$0.5$30$0.02
gpt-3.5-turboOpenAI$0.5–$1.5$0.00125
gpt-3.5-turbo-16kOpenAI$3–$4$0.005
gpt-4OpenAI$30–$60$0.06
gpt-4-1106-previewOpenAI$10–$30$0.025
gpt-4-turboOpenAI$10–$30$0.025
gpt-4.1OpenAI$2$0.5$8$0.006
gpt-4.1-miniOpenAI$0.4$0.1$1.6$0.0012
gpt-4.1-nanoOpenAI$0.1$0.025$0.4$0.0003
gpt-4oOpenAI$2.5$1.25$10$0.0075
gpt-4o-miniOpenAI$0.15$0.075$0.6$0.00045
gpt-5OpenAI$1.25$0.125$10$0.00625
gpt-5-miniOpenAI$0.25$0.025$2$0.00125
gpt-5-nanoOpenAI$0.05$0.005$0.4$0.00025
gpt-5.1OpenAI$1.25$0.125$10$0.00625
gpt-5.2OpenAI$1.75$0.175$14$0.00875
gpt-5.4OpenAI$2.5$0.25$15$0.01
gpt-5.4-miniOpenAI$0.75$0.075$4.5$0.003
gpt-5.4-nanoOpenAI$0.2$0.02$1.25$0.000825
gpt-5.5OpenAI$5$0.5$30$0.02
gpt-5.6OpenAI$4$0.4$20$0.014
gpt-5.6-lunaOpenAI$0.2$0.02$1.2$0.0008
gpt-5.6-solOpenAI$4$0.4$20$0.014
gpt-5.6-terraOpenAI$2$0.2$12$0.008
gpt-6-astraOpenAI$10$1$50$0.035
gpt-6-lunaOpenAI$0.1$0.01$0.5$0.00035
gpt-6-solOpenAI$2$0.2$10$0.007
gpt-6.1-solOpenAI$2$0.1$10$0.007
o1OpenAI$15$7.5$60$0.045
o3OpenAI$2$0.5$8$0.006
o3-miniOpenAI$1.1$0.55$4.4$0.0033
o4-miniOpenAI$1.1$0.275$4.4$0.0033
claude-fable-5Anthropic$10$1$50$0.035
claude-fable-5-1Anthropic$10$0.25$50$0.035
claude-haiku-4-5Anthropic$1$0.1$5$0.0035
claude-haiku-5-5Anthropic$0.1$0.01$0.5$0.00035
claude-mythos-5Anthropic$10$1$50$0.035
claude-mythos-5-1Anthropic$10$0.25$50$0.035
claude-opus-4-5Anthropic$5$0.5$25$0.0175
claude-opus-4-6Anthropic$5$0.5$25$0.0175
claude-opus-4-7Anthropic$5$0.5$25$0.0175
claude-opus-4-8Anthropic$5$0.5$25$0.0175
claude-opus-5Anthropic$5$0.5$25$0.0175
claude-opus-5-5Anthropic$4$0.2$20$0.014
claude-sonnet-4-5Anthropic$3$0.3$15$0.0105
claude-sonnet-4-6Anthropic$3$0.3$15$0.0105
claude-sonnet-5Anthropic$2$0.2$10$0.007
claude-sonnet-5-5Anthropic$2$0.1$10$0.007
gemini-2.5-flashGoogle Gemini$0.3$0.03$2.5$0.00155
gemini-2.5-flash-liteGoogle Gemini$0.1$0.01$0.4$0.0003
gemini-2.5-proGoogle Gemini$1.25$0.125$10$0.00625
gemini-3-flash-previewGoogle Gemini$0.5$0.05$3$0.002
gemini-3.1-flash-liteGoogle Gemini$0.25$0.025$1.5$0.001
gemini-3.1-pro-previewGoogle Gemini$2$0.2$12$0.008
gemini-3.5-flashGoogle Gemini$1.5$0.15$9$0.006
gemini-3.5-flash-liteGoogle Gemini$0.3$0.03$2.5$0.00155
gemini-3.6-flashGoogle Gemini$0.75$0.075$3.75$0.00263
gemini-3.7-flashGoogle Gemini$0.75$0.075$3.75$0.00263
gemini-3.8-flashGoogle Gemini$0.75$0.075$3.75$0.00263
gemini-4-argonGoogle Gemini$2$0.1$10$0.007
gemini-flash-latestGoogle Gemini$0.75$0.075$3.75$0.00263
gemini-flash-lite-latestGoogle Gemini$0.3$0.03$2.5$0.00155
gemini-omni-1.1-flashGoogle Gemini$1.5–$9$0.006
gemini-omni-flash-previewGoogle Gemini$1.5–$9$0.006
gemini-pro-latestGoogle Gemini$2$0.2$12$0.008
codestral-2508Mistral$0.3$0.03$0.9$0.00075
codestral-latestMistral$0.3$0.03$0.9$0.00075
codestral-mamba-latestMistral$0.25$0.025$0.25$0.000375
devstral-latestMistral$0.4$0.04$2$0.0014
devstral-medium-latestMistral$0.4$0.04$2$0.0014
devstral-small-latestMistral$0.1$0.01$0.3$0.00025
labs-leanstral-1-5-1Mistral$0–$0$0
magistral-medium-latestMistral$1.5$0.15$7.5$0.00525
magistral-small-latestMistral$0.15$0.015$0.6$0.00045
ministral-3-3b-2512Mistral$0.1$0.01$0.1$0.00015
ministral-3-8b-2512Mistral$0.15$0.015$0.15$0.000225
ministral-3-14b-2512Mistral$0.2$0.02$0.2$0.0003
ministral-3b-2512Mistral$0.1$0.01$0.1$0.00015
ministral-3b-latestMistral$0.1$0.01$0.1$0.00015
ministral-8b-2512Mistral$0.15$0.015$0.15$0.000225
ministral-8b-latestMistral$0.15$0.015$0.15$0.000225
ministral-14b-2512Mistral$0.2$0.02$0.2$0.0003
ministral-14b-latestMistral$0.2$0.02$0.2$0.0003
mistral-code-agent-latestMistral$0.4$0.04$2$0.0014
mistral-code-fim-latestMistral$0.3$0.03$0.9$0.00075
mistral-code-latestMistral$0.3$0.03$0.9$0.00075
mistral-large-3Mistral$0.5$0.05$1.5$0.00125
mistral-large-4Mistral$0.68$0.068$2.09$0.00172
mistral-large-4-0Mistral$0.68$0.068$2.09$0.00172
mistral-large-2512Mistral$0.5$0.05$1.5$0.00125
mistral-large-latestMistral$0.5$0.05$1.5$0.00125
mistral-mediumMistral$1.5$0.15$7.5$0.00525
mistral-medium-3Mistral$1.5$0.15$7.5$0.00525
mistral-medium-3-5Mistral$1.5$0.15$7.5$0.00525
mistral-medium-3.5Mistral$1.5$0.15$7.5$0.00525
mistral-medium-latestMistral$1.5$0.15$7.5$0.00525
mistral-smallMistral$0.1$0.01$0.3$0.00025
mistral-small-latestMistral$0.15$0.015$0.6$0.00045
mistral-tinyMistral$0.25$0.025$0.25$0.000375
open-mistral-nemoMistral$0.3$0.03$0.3$0.00045
pixtral-large-latestMistral$2$0.2$6$0.005
deepseek-coderDeepSeek$0.14$0.014$0.28$0.00028
deepseek-flashDeepSeek$0.3$0.006$1.2$0.0009
deepseek-r1DeepSeek$0.55$0.14$2.19$0.00164
deepseek-v3DeepSeek$0.27$0.07$1.1$0.00082
deepseek-v3.2DeepSeek$0.28$0.028$0.4$0.00048
deepseek-v4-flashDeepSeek$0.3$0.006$1.2$0.0009
deepseek-v4-proDeepSeek$1.32$0.044$3.96$0.0033
grok-4.3xAI$1.25$0.2$2.5$0.0025
grok-4.3-latestxAI$1.25$0.2$2.5$0.0025
grok-4.5xAI$2$0.3$6$0.005
grok-4.5-latestxAI$2$0.3$6$0.005
grok-4.6xAI$2$0.5$6$0.005
grok-4.7xAI$2$0.5$6$0.005
grok-4.20xAI$1.25$0.2$2.5$0.0025
grok-4.20-0309-non-reasoningxAI$1.25$0.2$2.5$0.0025
grok-4.20-0309-reasoningxAI$1.25$0.2$2.5$0.0025
grok-4.20-non-reasoningxAI$1.25$0.2$2.5$0.0025
grok-4.20-non-reasoning-latestxAI$1.25$0.2$2.5$0.0025
grok-4.20-reasoningxAI$1.25$0.2$2.5$0.0025
grok-4.20-reasoning-latestxAI$1.25$0.2$2.5$0.0025
grok-build-0.1xAI$1$0.2$2$0.002
grok-build-latestxAI$2$0.3$6$0.005
grok-code-fastxAI$1$0.2$2$0.002
grok-code-fast-1xAI$1$0.2$2$0.002

FAQ

How is the API cost calculated?

Cost = input tokens × input price + output tokens × output price. Prices are per 1 million tokens, in US dollars. Multiply by the number of requests to get the total.

How often are the prices updated?

Every day. Prices come from the open LiteLLM price list, which links each provider's official pricing page. Each model links to its source.

What is batch pricing?

OpenAI, Anthropic and Google offer a batch API: you send requests that are processed within 24 hours, at about half the normal price. Models without a batch price show a dash.

What is cached input?

When the start of a prompt repeats across requests, providers can cache it and charge a much lower rate for those tokens, often 10% of the normal input price. Turn on "Cached input" to price the whole prompt at that rate.

Are the token counts exact?

Token counts are estimated in your browser with an OpenAI tokenizer. Claude, Gemini and other models count tokens differently, so treat those as close estimates. You can also type a token count yourself.

Is my text sent anywhere?

No. Everything runs in your browser. The page only downloads the price list.