AI Token Counter & Cost Estimator
Calculate the exact token count and estimated API cost for any text across the most popular large language models — before you send a single request. ## Why Use This API? Token limits and API costs are the #1 pain point when building LLM-powered applications. This API solves both: pass your text and model name, get back the exact token count and the precise cost in USD — for input and output —…
AI Token Counter & Cost Estimator endpoints
| Method | Endpoint | Description |
|---|---|---|
| Tokens | ||
| POST |
countTokens /count |
Returns the exact token count for the given text using each model's native tokenizer, along with the estimated cost in USD for using that text as input or output. **Tokenization… |
| Models | ||
| GET |
listModels /models |
Returns all supported models grouped by provider, including the official model ID used in each provider's API and the current input/output pricing per million tokens. |
AI Token Counter & Cost Estimator pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO | $9.99 / month | — |
|
| ULTRA | $29.99 / month | — |
|
| MEGA | $99.99 / month | — |
|