Token Cost Calculator

Estimate the cost of a call from input/output tokens and per-million pricing, in USD or CNY.

FreeNo sign-up
Text

Tokens

0

Characters

0

Words

0

Total

—

Input price (per 1M tokens)

Input cost

—

Output cost

—

Total

—

Estimated values. Actual usage depends on the model's official tokenizer.

Estimate the cost of a call from input/output tokens and per-million pricing, in USD or CNY.

Large language models bill by token, and tokens aren't characters: English runs roughly 4 characters per token, while Chinese is close to 1 token per character. This tool estimates the token count of your text and turns your own per-million price into a cost figure.

How to use it

  1. 1Paste the text you want to estimate into the input.
  2. 2Enter your model's price per million tokens.
  3. 3The token count, character count and estimated cost update live below.

FAQ