Skip to content
Utilities / API

API cost calculator

Plan a text-model budget using verified prices and your own token estimates.

Compare up to three models in US dollars, Chinese yuan or Japanese yen. Calculations happen in your browser without an account, API key or model request.

Token & context check

Count text tokens locally and optionally use the count in your cost estimate.

Text or code to check
0 / 20,000 · Enter 1–20,000 characters. Oversized input is rejected, never truncated.

This counts plain text with the selected tokenizer, not exact usage for every model. It excludes system prompts, history, message framing, tools, images and reasoning output. Treat it as an estimate for models using another tokenizer.

Inputs are processed in this page's memory, without upload or storage. Closing the page or switching languages clears them.

1. Choose models

Enter unit prices in the provider’s billing currency. Currency conversions are estimates.
Model provider
Select up to 3 models
Selected 1 / 3

2. Describe your usage

Include billed reasoning/thinking tokens, system instructions and conversation history where applicable. Visible answer length is not the total billable output.

gemini-4-argon

Gemini Developer API · Paid Standard · Supported first-party API regions, default routing

From December 1, 2026, Standard costs $4 per 1M input tokens and $20 per 1M billed output tokens. For usage through November 30, 2026, select “Use my own unit prices” and enter $2 for input and $10 for output.

Per-call token limits: 1,048,576 / 65,536 · Combined input + output: 1,048,576

Applicable scope

Standard synchronous text generation with uncached input. Billed output includes thinking tokens. This estimate covers up to 65,536 output tokens per call. Caching, batch and priority processing, regional surcharges, media, tools and taxes are outside its scope.

Verified: · Review by:

Official pricing ↗ · Model specifications ↗
DIGINTOAI / ESTIMATE

Your estimate

Choose a model, adjust your usage and calculate.

API usage is separate from chat subscriptions and Coding Plans.

How the estimate works

Cost = (input tokens × input price + billed output tokens × output price) ÷ 1,000,000 × calls per day × days.

Example: 3,000 input tokens and 1,000 billed output tokens per call, 100 calls per day and 30 days. Change each model's token counts to match its tokenizer and your actual workload.

Token quantities can differ between models. Estimates are not invoices or quality rankings. Taxes, discounts and unsupported billing features are excluded; confirm the provider's current terms.

Your usage and custom prices stay in this browser. A shared link includes those numeric conditions. Anonymous tool-usage totals do not include the entered quantities or prices.

gemini-4-argon · USD · Verified: 2026-12-02

Gemini Developer API · Paid Standard · Supported first-party API regions, default routing

From December 1, 2026, Standard costs $4 per 1M input tokens and $20 per 1M billed output tokens. For usage through November 30, 2026, select “Use my own unit prices” and enter $2 for input and $10 for output.

Standard synchronous text generation with uncached input. Billed output includes thinking tokens. This estimate covers up to 65,536 output tokens per call. Caching, batch and priority processing, regional surcharges, media, tools and taxes are outside its scope.

Input / 1M tokens: 4 USD · Output / 1M tokens: 20 USD

Official pricing ↗ · View model ↗
gemini-4-carbon · USD · Verified: 2026-12-02

Gemini Developer API · Paid Standard · Provider-supported markets · USD billing

From December 1, 2026, Standard costs $4 per 1M input tokens and $20 per 1M billed output tokens. For usage through November 30, 2026, select “Use my own unit prices” and enter $2 for input and $10 for output.

Standard synchronous text generation with uncached input. Billed output includes thinking tokens. This estimate covers up to 65,536 output tokens per call. Caching, batch and priority processing, regional surcharges, media, tools and taxes are outside its scope.

Input / 1M tokens: 4 USD · Output / 1M tokens: 20 USD

Official pricing ↗ · View model ↗
gemini-3.1-pro-preview · USD · Verified: 2026-11-25

Gemini Developer API · Paid Standard · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes. Paid standard tier, at most 200,000 input tokens; longer inputs use separate rates.

Input / 1M tokens: 2 USD · Output / 1M tokens: 12 USD

Official pricing ↗ · View model ↗
MiniMax-M3 · USD · Verified: 2026-11-25

MiniMax International API · Standard · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes. MiniMax international API. M3 uses Standard with at most 512,000 input tokens. This tool temporarily caps output, including thinking, at the documented example's 4,096 tokens; this is not the model maximum.

Input / 1M tokens: 0.30 USD · Output / 1M tokens: 1.20 USD

Official pricing ↗ · View model ↗
MiniMax-M3.1-Flash · USD · Verified: 2026-11-25

MiniMax International API · Standard · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes. MiniMax international API Standard pricing for MiniMax-M3.1-Flash. This tool temporarily caps output, including thinking, at the documented example's 4,096 tokens; this is not the model maximum.

Input / 1M tokens: 0.15 USD · Output / 1M tokens: 0.60 USD

Official pricing ↗ · View model ↗
glm-5.3 · USD · Verified: 2026-11-25

Z.ai International API · Standard · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes. Z.ai international USD rates. GLM-5.3 always uses reasoning; Coding Plan subscriptions are excluded.

Input / 1M tokens: 1.40 USD · Output / 1M tokens: 4.40 USD

Official pricing ↗ · View model ↗
gpt-6.1-sol · USD · Verified: 2026-11-25

OpenAI API · Standard · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes. Short-context rate only, up to 272,000 input tokens. This quote rejects larger prompts.

Input / 1M tokens: 2 USD · Output / 1M tokens: 10 USD

Official pricing ↗ · View model ↗
gpt-6-luna · USD · Verified: 2026-11-25

OpenAI API · Standard · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes. Short-context rate only, up to 272,000 input tokens. This quote rejects larger prompts.

Input / 1M tokens: 0.10 USD · Output / 1M tokens: 0.50 USD

Official pricing ↗ · View model ↗
gpt-6-astra · USD · Verified: 2026-11-25

OpenAI API · Standard · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes. Short-context rate only, up to 272,000 input tokens. This quote rejects larger prompts.

Input / 1M tokens: 10 USD · Output / 1M tokens: 50 USD

Official pricing ↗ · View model ↗
claude-sonnet-5-5 · USD · Verified: 2026-11-25

Claude API · Standard · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes.

Input / 1M tokens: 2 USD · Output / 1M tokens: 10 USD

Official pricing ↗ · View model ↗
claude-opus-5-5 · USD · Verified: 2026-11-25

Claude API · Standard · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes.

Input / 1M tokens: 4 USD · Output / 1M tokens: 20 USD

Official pricing ↗ · View model ↗
claude-haiku-5-5 · USD · Verified: 2026-11-25

Claude API · Standard · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes. Only the tier up to 100,000 input tokens. Larger inputs use different rates and are excluded.

Input / 1M tokens: 0.10 USD · Output / 1M tokens: 0.50 USD

Official pricing ↗ · View model ↗
gemini-3.8-flash · USD · Verified: 2026-11-25

Gemini Developer API · Paid Standard · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes. Gemini Developer API paid tier; introductory rates through 2026-12-31, with an announced change from 2027-01-01. Future rates are not applied automatically.

Input / 1M tokens: 0.75 USD · Output / 1M tokens: 3.75 USD

Official pricing ↗ · View model ↗
deepseek-flash · USD · Verified: 2026-11-25

DeepSeek API · USD peak · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes. USD peak-rate budget: Mon–Fri 01–04 and 06–10 UTC, excluding Chinese public holidays. Other hours are half price. All calls here use peak rates; there is no automatic time allocation. Conservative combined/output caps: 1,000,000/384,000 tokens.

Input / 1M tokens: 0.30 USD · Output / 1M tokens: 1.20 USD

Official pricing ↗ · View model ↗
deepseek-v4-pro · USD · Verified: 2026-11-25

DeepSeek API · USD peak · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes. USD peak-rate budget: Mon–Fri 01–04 and 06–10 UTC, excluding Chinese public holidays. Other hours are half price. All calls here use peak rates; there is no automatic time allocation. Conservative combined/output caps: 1,000,000/384,000 tokens.

Input / 1M tokens: 1.32 USD · Output / 1M tokens: 3.96 USD

Official pricing ↗ · View model ↗
claude-haiku-4-5-20251001 · USD · Verified: 2026-11-25

Claude API · Supported regions, Claude API default global routing

Listed as an available legacy model. Check account access and retirement announcements. Continued availability is not guaranteed by this tool.

Anthropic first-party API, standard synchronous text-only requests. Excludes cache reads/writes, batch, third-party clouds, tools and taxes. Output must include all billed thinking tokens. Input plus output cannot exceed 200,000 tokens.

Input / 1M tokens: 1 USD · Output / 1M tokens: 5 USD

Official pricing ↗ · View model ↗
gemini-2.5-flash · USD · Verified: 2026-11-25 · Review due

Gemini Developer API · Regions supported by Gemini Developer API

Existing API calls to this deprecated ID move to Gemini 3.5 Flash-Lite and its rates on December 1, 2026. Google AI Studio no longer offers the old model for selection.

Official paid tier, standard synchronous text-only requests. Excludes caching, batch, Flex, priority, audio/video, search and other tools. Output includes all billed thinking tokens.

Input / 1M tokens: 0.30 USD · Output / 1M tokens: 2.50 USD

Official pricing ↗ · View model ↗
gemini-2.5-flash-lite · USD · Verified: 2026-11-25

Gemini Developer API · Regions supported by Gemini Developer API

Google currently restricts 2.5 access to existing users of these models. New projects must verify availability first. This quote is not a recommendation to purchase or sign up.

Official paid tier, standard synchronous text-only requests. Excludes caching, batch, Flex, priority, audio/video, search and other tools. Output includes all billed thinking tokens.

Input / 1M tokens: 0.10 USD · Output / 1M tokens: 0.40 USD

Official pricing ↗ · View model ↗
gpt-6.2-astra · USD · Verified: 2026-11-25

OpenAI API · Standard · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes. Short-context rate only, up to 272,000 input tokens. This quote rejects larger prompts.

Input / 1M tokens: 8 USD · Output / 1M tokens: 40 USD

Official pricing ↗ · View model ↗
gpt-6.2-sol · USD · Verified: 2026-11-25

OpenAI API · Standard · Supported first-party API regions, default routing

Account access and model availability are determined by the provider. Subscription plans do not offset these API charges.

Standard synchronous text with uncached input; output includes billed thinking tokens. Excludes caching, batch, fast/priority, regional premiums, media, tools and taxes. Short-context rate only, up to 272,000 input tokens. This quote rejects larger prompts.

Input / 1M tokens: 2 USD · Output / 1M tokens: 10 USD

Official pricing ↗ · View model ↗
gemini-4-neon · USD · Verified: 2026-11-25

Gemini Developer API · Paid Standard · Provider-supported markets · USD billing

Available to eligible API accounts in supported markets.

Standard synchronous text generation with uncached input and text output. Pricing for cache, batch, priority processing, media and tools is separate.

Input / 1M tokens: 3 USD · Output / 1M tokens: 15 USD

Official pricing ↗ · View model ↗
gemini-4-hydrogen · USD · Verified: 2026-11-25

Gemini Developer API · Paid Standard · Provider-supported markets · USD billing

Available to eligible API accounts in supported markets.

Standard synchronous text generation with uncached input and text output. Pricing for cache, batch, priority processing, media and tools is separate.

Input / 1M tokens: 1.5 USD · Output / 1M tokens: 7.5 USD

Official pricing ↗ · View model ↗
claude-fable-5-2 · USD · Verified: 2026-11-25

Claude API · Standard · Provider-supported markets · USD billing

Available to eligible API accounts in supported markets.

Standard synchronous text generation with uncached input and text output. Pricing for cache, batch, priority processing, media and tools is separate.

Input / 1M tokens: 8 USD · Output / 1M tokens: 40 USD

Official pricing ↗ · View model ↗
claude-mythos-5-2 · USD · Verified: 2026-11-25

Claude API · Standard · Provider-supported markets · USD billing

Anthropic limits Mythos access to approved organizations.

Standard synchronous text generation with uncached input and text output. Pricing for cache, batch, priority processing, media and tools is separate.

Input / 1M tokens: 8 USD · Output / 1M tokens: 40 USD

Official pricing ↗ · View model ↗
qwen4-max · USD · Verified: 2026-11-25

Model Studio · International · Alibaba Cloud international deployment · USD

Available to eligible API accounts in supported markets.

Standard synchronous text generation with uncached input and text output. Pricing for cache, batch, priority processing, media and tools is separate.

Input / 1M tokens: 1.5 USD · Output / 1M tokens: 4.5 USD

Official pricing ↗ · View model ↗
qwen4-max · USD · Verified: 2026-11-25

Model Studio · US Virginia · Global · US Virginia endpoint · Global deployment

Available to eligible API accounts in supported markets.

Standard synchronous text generation with uncached input and text output. Pricing for cache, batch, priority processing, media and tools is separate.

Input / 1M tokens: 1.413 USD · Output / 1M tokens: 4.24 USD

Official pricing ↗ · View model ↗
qwen4-max · USD · Verified: 2026-11-25

Model Studio · US Virginia · Virginia · US Virginia endpoint · Virginia-only deployment

Available to eligible API accounts in supported markets.

Standard synchronous text generation with uncached input and text output. Pricing for cache, batch, priority processing, media and tools is separate.

Input / 1M tokens: 1.5 USD · Output / 1M tokens: 4.5 USD

Official pricing ↗ · View model ↗
kimi-k3.1-pro · USD · Verified: 2026-11-25

Kimi API · international · Provider-supported markets · USD billing

Available to eligible API accounts in supported markets.

Reference workload up to 128,000 input and 4,096 output tokens. This is the calculator’s quoted range. Standard synchronous text with uncached input; cache, tools and premium service tiers cost extra.

Input / 1M tokens: 2 USD · Output / 1M tokens: 10 USD

Official pricing ↗ · View model ↗
kimi-k3.1-pro-highspeed · USD · Verified: 2026-11-25

Kimi API · international · Provider-supported markets · USD billing

Available to eligible API accounts in supported markets.

Reference workload up to 128,000 input and 4,096 output tokens. This is the calculator’s quoted range. Standard synchronous text with uncached input; cache, tools and premium service tiers cost extra.

Input / 1M tokens: 4 USD · Output / 1M tokens: 20 USD

Official pricing ↗ · View model ↗
grok-4.7 · USD · Verified: 2026-11-25

xAI API · base text tier · Provider-supported markets · USD billing

Available to eligible API accounts in supported markets.

Reference workload up to 128,000 input and 4,096 output tokens. This is the calculator’s quoted range. Standard synchronous text with uncached input; cache, tools and premium service tiers cost extra.

Input / 1M tokens: 2 USD · Output / 1M tokens: 6 USD

Official pricing ↗ · View model ↗