跳到主要内容

Token Estimator

入门

Paste any prompt or document and get a quick token estimate — so you can budget context window and cost before you hit the API. All client-side; nothing leaves your browser.

2
25字符
~36估算 token 数

只是大致感受(约为 字符 ÷ 4,或 词 × 1.33)。token 计数因模型而异——切勿使用其他模型的分词器。需要精确数字请使用 Anthropic 的 token 计数接口。

:::tip Why tokens matter Context limits and pricing are both measured in tokens (≈ ¾ of a word). Trimming what you send cuts both cost and latency. Deep dive in Tokens, Context & Pricing. :::

Next