Workload planning

AI Token Cost Calculator

How do you calculate AI token cost?

AI token cost depends on the selected model, normal input tokens, cached input where supported, output tokens, and request volume. Add the priced input, cache, and output groups to get cost per request, then multiply by daily and monthly traffic. This token cost calculator uses dated official list prices and returns an estimate, not an invoice.

Verified Last verified: Source: Official provider pricing
Applies to 0 input tokens.
Peak: Monday–Friday 01:00–04:00 and 06:00–10:00 UTC, excluding Chinese public holidays. All other times are off-peak. Select the period for your workload; monthly and annual totals assume that rate for every request. Applies only to DeepSeek rows.
Cost estimateEstimated cost
Input tokens0
Cached input tokens0
Cost per request$0.0100
Cost per 1,000 requests$10.0000
Daily cost$0.0100
Monthly cost$0.3000
Annual cost$3.6000
Applied rate tierStandard context
Context window usage0.10%

Official OpenAI pricing · Checked 2026-09-30 · Verified. Rates as of 2026-09-30 (UTC).

Standard direct OpenAI API text rates. Above 272K input tokens, the entire request uses 2x input/cache and 1.5x output rates. Cache writes cost 1.25x uncached input and are excluded. Maximum input 922K; maximum output 128K tokens.

Monthly and annual totals project the selected rates unchanged; they do not forecast scheduled price changes. Include billed thinking tokens in output. Cache writes, tool calls, media, storage, taxes, regional pricing, platform fees, and provider-side token differences are excluded.

Same workload

Compare this request across models

“Lowest estimated cost” means the lowest result for these inputs and listed rates, not a universal claim about the cheapest or best API.

Provider / modelInput tokensInput / 1MCached / 1MOutput / 1MRequestMonthlyContextAccuracyVerified
GPT-6 LunaOpenAI0$0.1Over 272K: $0.2$0.01Over 272K: $0.02$0.5Over 272K: $0.75$0.0005$0.01501,050,000Estimate2026-09-30Verified
Pricing notes

Standard direct OpenAI API text rates. Above 272K input tokens, the entire request uses 2x input/cache and 1.5x output rates. Cache writes cost 1.25x uncached input and are excluded. Maximum input 922K; maximum output 128K tokens.

GPT-5.6 LunaOpenAI0$0.2Over 272K: $0.4$0.02Over 272K: $0.04$1.2Over 272K: $1.8$0.0012$0.03601,050,000Compatible2026-09-30Verified
Pricing notes

Standard direct OpenAI API text rates. Requests above 272K input tokens use 2x input and cached-input rates and 1.5x output rates for the full request.

DeepSeek V4.1 FlashDeepSeekAPI: deepseek-flashPeak rates0$0.3$0.006$1.2$0.0012$0.03601,000,000Estimate2026-09-30Verified
Pricing notes

Use API model deepseek-flash (DeepSeek-V4.1-Flash). The retired V4 Flash model name remains an alias served by V4.1 Flash. Listed base rates are peak; off-peak rates are half. Peak: Monday–Friday 01:00–04:00 and 06:00–10:00 UTC, excluding Chinese public holidays. All other times are off-peak. Select the period for your workload; monthly and annual totals assume that rate for every request.

GPT-5.4 nanoOpenAI0$0.2$0.02$1.25$0.0013$0.0375400,000Compatible2026-09-30Verified
Pricing notes

Standard direct OpenAI API text rates. Batch, Flex, regional processing, tools, and Amazon Bedrock pricing can differ.

Gemini 3.5 Flash-LiteGoogle0$0.3$0.03$2.5$0.0025$0.07501,048,576Estimate2026-09-30Verified
Pricing notes

Standard paid-tier text rates. Cache storage, Batch, Flex, Priority, grounding, media, and tool charges differ.

Gemini 2.5 FlashGoogle0$0.3$0.03$2.5$0.0025$0.07501,048,576Estimate2026-09-30Verified
Pricing notes

Available to previously active Gemini 2.5 users; new projects should use Gemini 3.5 Flash-Lite or 3.8 Flash. Standard paid-tier text rates; audio, cache storage, grounding, and tools cost extra.

Gemini 3.8 FlashGoogle0$0.75$0.075$3.75$0.0038$0.11251,048,576Estimate2026-09-30VerifiedPromotional rates through 2026-12-31Rates change on 2027-01-01
Pricing notes

Standard paid-tier promotional rates through December 31, 2026. From January 1, 2027: $1.50 input, $0.15 cached input, $7.50 output per MTok. Output includes thinking tokens. Cache storage and tools cost extra.

Gemini 3.7 FlashGoogle0$0.75$0.075$3.75$0.0038$0.11251,048,576Estimate2026-09-30VerifiedPromotional rates through 2026-12-31Rates change on 2027-01-01
Pricing notes

Standard paid-tier promotional rates through December 31, 2026. From January 1, 2027: $1.50 input, $0.15 cached input, $7.50 output per MTok. Output includes thinking tokens. Cache storage and tools cost extra.

Gemini 3.6 FlashGoogle0$0.75$0.075$3.75$0.0038$0.11251,048,576Estimate2026-09-30VerifiedPromotional rates through 2026-12-31Rates change on 2027-01-01
Pricing notes

Standard paid-tier promotional rates through December 31, 2026. From January 1, 2027: $1.50 input, $0.15 cached input, $7.50 output per MTok. Output includes thinking tokens. Cache storage and tools cost extra.

DeepSeek V4 Pro (0813)DeepSeekAPI: deepseek-v4-proPeak rates0$1.32$0.044$3.96$0.0040$0.11881,000,000Estimate2026-09-30Verified
Pricing notes

API model deepseek-v4-pro serves DeepSeek-V4-Pro-0813. Listed base rates are peak; off-peak rates are half. Peak: Monday–Friday 01:00–04:00 and 06:00–10:00 UTC, excluding Chinese public holidays. All other times are off-peak. Select the period for your workload; monthly and annual totals assume that rate for every request.

GPT-5.4 miniOpenAI0$0.75$0.075$4.5$0.0045$0.1350400,000Compatible2026-09-30Verified
Pricing notes

Standard direct OpenAI API text rates. Batch, Flex, Fast mode, regional processing, tools, and Amazon Bedrock pricing can differ.

Claude Haiku 4.5Anthropic0$1$0.1$5$0.0050$0.1500200,000Estimate2026-09-30Verified
Pricing notes

Standard direct Claude API rates. Cached input is a cache hit/read; 5-minute and 1-hour cache writes cost more, while partner cloud pricing can differ.

Gemini 3.5 FlashGoogle0$1.5$0.15$9$0.0090$0.27001,048,576Estimate2026-09-30Verified
Pricing notes

Standard paid-tier text rates. Cache storage, Batch, Flex, Priority, grounding, media, and tool charges differ.

GPT-6.1 SolOpenAI0$2Over 272K: $4$0.1Over 272K: $0.2$10Over 272K: $15$0.0100$0.30001,050,000Estimate2026-09-30Verified
Pricing notes

Standard direct OpenAI API text rates. Above 272K input tokens, the entire request uses 2x input/cache and 1.5x output rates. Cache writes cost 1.25x uncached input and are excluded. Maximum input 922K; maximum output 128K tokens.

GPT-6 SolOpenAI0$2Over 272K: $4$0.2Over 272K: $0.4$10Over 272K: $15$0.0100$0.30001,050,000Estimate2026-09-30Verified
Pricing notes

Standard direct OpenAI API text rates. Above 272K input tokens, the entire request uses 2x input/cache and 1.5x output rates. Cache writes cost 1.25x uncached input and are excluded. Maximum input 922K; maximum output 128K tokens.

Claude Sonnet 5.5Anthropic0$2$0.2$10$0.0100$0.30001,000,000Estimate2026-09-30Verified
Pricing notes

Standard direct Claude API rates across the full 1M context window; maximum output 128K. Cached input means cache reads only. Cache writes, US-only inference, tools, and partner platforms are separate. Local token counts are estimates; Claude 4.7 and later use a newer tokenizer.

Claude Sonnet 5Anthropic0$2$0.2$10$0.0100$0.30001,000,000Estimate2026-09-30Verified
Pricing notes

Current standard direct Claude API rates: $2 input, $0.20 cache-hit input, and $10 output per MTok. The current official table does not list the previously announced September increase. Cache writes, regional inference, and tools cost extra.

GPT-5.6 TerraOpenAI0$2Over 272K: $4$0.2Over 272K: $0.4$12Over 272K: $18$0.0120$0.36001,050,000Compatible2026-09-30Verified
Pricing notes

Standard direct OpenAI API text rates. Requests above 272K input tokens use 2x input and cached-input rates and 1.5x output rates for the full request.

Gemini 3.1 Pro PreviewGoogle0$2Over 200K: $4$0.2Over 200K: $0.4$12Over 200K: $18$0.0120$0.36001,048,576Estimate2026-09-30Verified
Pricing notes

Preview-model standard paid-tier text rates. Prompts above 200K tokens use the listed higher input, cache, and output rates; preview terms can change.

Claude Sonnet 4.6Anthropic0$3$0.3$15$0.0150$0.45001,000,000Estimate2026-09-30Verified
Pricing notes

Standard direct Claude API rates. Cached input is a cache hit/read; cache writes cost more, and US-only inference for Claude 4.6 carries a 1.1x multiplier.

Claude Opus 5.5Anthropic0$4$0.2$20$0.0200$0.60001,000,000Estimate2026-09-30Verified
Pricing notes

Standard direct Claude API rates across the full 1M context window; maximum output 128K. Cached input means cache reads only. Cache writes, US-only inference, tools, and partner platforms are separate. Local token counts are estimates; Claude 4.7 and later use a newer tokenizer.

GPT-5.6 SolOpenAI0$4Over 272K: $8$0.4Over 272K: $0.8$20Over 272K: $30$0.0200$0.60001,050,000Compatible2026-09-30Verified
Pricing notes

Promotional direct OpenAI API rates available at least through November 21, 2026; no later rate is confirmed. Requests above 272K input tokens use 2x input and cached-input rates and 1.5x output rates for the full request. Cache writes are separate.

Claude Opus 5Anthropic0$5$0.5$25$0.0250$0.75001,000,000Estimate2026-09-30Verified
Pricing notes

Standard direct Claude API rates. Cached input is a cache hit/read; Fast mode, cache writes, US-only inference, and partner cloud pricing differ.

GPT-6 AstraOpenAI0$10Over 272K: $20$1Over 272K: $2$50Over 272K: $75$0.0500$1.50001,050,000Estimate2026-09-30Verified
Pricing notes

Standard direct OpenAI API text rates. Above 272K input tokens, the entire request uses 2x input/cache and 1.5x output rates. Cache writes cost 1.25x uncached input and are excluded. Maximum input 922K; maximum output 128K tokens.

Claude Fable 5.1Anthropic0$10$0.25$50$0.0500$1.50001,000,000Estimate2026-09-30Verified
Pricing notes

Standard direct Claude API rates across the full 1M context window; maximum output 128K. Cached input means cache reads only. Cache writes, US-only inference, tools, and partner platforms are separate. Local token counts are estimates; Claude 4.7 and later use a newer tokenizer.

Claude Fable 5Anthropic0$10$1$50$0.0500$1.50001,000,000Estimate2026-09-30Verified
Pricing notes

Standard direct Claude API rates. Cached input is a cache hit/read; 5-minute and 1-hour cache writes cost more, while partner cloud pricing can differ.

The 26 model rows use USD list prices per one million text tokens, checked against the linked official provider pages. OpenAI and Gemini long-context tiers are applied automatically from the entered input count. Batch, audio, image, video, tools, storage, regional, and platform fees may differ.

Rates as of 2026-09-30 (UTC); published scheduled changes apply automatically. Monthly totals assume those rates throughout the month. Cache writes are excluded; output should include billed thinking tokens. DeepSeek: peak rates. Peak: Monday–Friday 01:00–04:00 and 06:00–10:00 UTC, excluding Chinese public holidays. All other times are off-peak. Select the period for your workload; monthly and annual totals assume that rate for every request.

How much does one AI API request cost?

The token cost calculator divides input into normal and cached groups, applies the listed per-million rates, and adds expected output cost. That sum is the estimated cost per request. The token cost calculator then multiplies the request result by daily volume and active days, with an annual projection equal to twelve monthly scenarios.

Use Paste text in the token cost calculator while editing a prompt. Use Enter token count when provider telemetry already supplies usage totals. Review the token cost calculator output again after real usage data becomes available.

How do cached tokens change API cost?

In the token cost calculator, eligible cached input uses the listed cache-read or cache-hit rate instead of the normal input rate. The token cost calculator caps cached tokens at total input, but it cannot prove cache eligibility or a hit. Model cache writes, storage, retention, minimum prefix size, and invalidation separately when the provider charges for them. Rerun the token cost calculator with measured cache-hit data before approving a budget.

How can I compare model cost for one workload?

Keep input, cached input, output, request volume, and active days identical in the token cost calculator, then sort the model table by Lowest estimated cost. Start with a typical request and rerun a long-output or retry case. The lowest result is conditional on those assumptions and does not identify the best model quality or total implementation cost. The token cost calculator should be one input to the model decision, not the decision itself.

Compare the token cost calculator result with LLM API pricing, then inspect the GPT cost calculator, Claude cost calculator, or GPT vs Claude comparison.

Five token cost calculator checks before trusting a monthly estimate

Source and method

Which sources and measured checks support this token cost calculator?

The token cost calculator covers 26 current model records and measured zero, 1, 1,000, 1 million, and 10 million-token cases, long-context tiers, cached input, missing prices, zero output, and high request volume. Its limitation is scope: calculations use direct-API text list prices and exclude tools, media, storage, regional terms, taxes, retries, and provider token differences. OpenAI official pricing. Last verified: .

Which sources and measured checks support this token cost calculator? Evidence and limitations for the current page.
EvidenceObserved result or boundary
Measured cost cases0 to 10 million tokens, 0% to 100% cached input, and large request volume.
Provider coverageThe token cost calculator compares OpenAI, Anthropic Claude, Google Gemini, and DeepSeek standard text rates.
Answers

Token cost calculator questions

What does the token cost calculator include?

The token cost calculator includes normal input, cached input when a separate rate is listed, expected output, requests per day, days per month, and a twelve-month annual projection.

Does entering cached input guarantee cache hits?

No. The token cost calculator treats it as a planning assumption. Cache eligibility, write charges, retention, and prefix matching vary by provider and request.

Why can the final API bill differ?

The token cost calculator cannot see provider tokenization, tool schemas, message framing, thinking tokens, media, retries, storage, regional rates, platform fees, or taxes that can change the final charge.

Which model is cheapest?

The token cost calculator table can identify the lowest estimated cost for the entered workload and current list prices. It cannot establish the best model or a guaranteed cheapest total implementation.

Close the token cost calculator estimate with real usage

This token cost calculator is suitable for planning and model comparison, but it is not for invoicing. Before approving a budget, check the provider pricing source and reconcile the token cost calculator estimate against production usage records.