Local price calculation

AI API price and token calculator

Enter token prices and usage to split the cost of one request or a batch.
Complete estimateUSD 0.030000
Input cost
USD 0.015000
Output cost
USD 0.015000
Number of calls
1

Cost inputs

Prices use a per-million-token unit and intermediate amounts are never rounded.

Currency

正在读取目录…

Advanced cost parameters

Prices are entered manually and have no attached provider source.

Cost result

Complete estimate

Total after multiplierUSD 0.0300001 call(s) × 1
Input cost
USD 0.015000
Output cost
USD 0.015000
Base cost
USD 0.030000
Multiplier difference
USD 0.000000
Average per call
USD 0.030000
Formulacalls × (input tokens × input price + output tokens × output price) ÷ 1,000,000 × relay multiplier

Exact decimal arithmetic is used internally. The page shows 6 decimals while the copied snapshot keeps full values.

Local token range estimate

Paste text to get a character-based range. This is not an exact count from a model-specific tokenizer.

Run the estimate to see a range

Code, emoji, whitespace, and model vocabularies can shift the result. Use a tokenizer compatible with the target model for precise billing.

Cost boundaries

Normalize the unit first, then separate included and excluded fees.

Included here

  • Input and output token charges
  • Batch call count
  • Relay multiplier or discount

Not included here

  • Image, audio, and search tool fees
  • Cache writes and batch discounts
  • Tax, exchange rates, and tiered pricing

Price calculation FAQ

Why do input and output prices differ?

Providers commonly bill them separately because generation often uses more inference work. Check the exact model billing terms.

Can the token range be used for billing?

No. It is for early budgeting only. Exact counts depend on the tokenizer, message framing, tool schemas, and attachments.

Are model preset prices live?

No. Presets come from this project’s UI preview dataset and have no observation time. Verify provider pricing before use.