Token Counter
The Universal LLM Token Counter provides estimated token counting for text inputs across major language model providers. Whether you're working with OpenAI's GPT models, Anthropic's Claude, Google's Gemini, or other supported models, this API delivers token count estimates with real-time cost estimation. Built on character-ratio estimation with pricing tables, the API provides consistent token…
Token Counter endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST |
Token Counter /api/count-tokens |
Returns estimated token count, estimated cost in USD, context window usage %, and overflow flag for models across OpenAI, Anthropic, Google, Mistral, and Meta. |
Token Counter pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|