Count the LLM tokens in text for a given model or encoding — exact for OpenAI an
Count the LLM tokens in text for a given model or encoding — exact for OpenAI and open models (Llama, Mistral, Qwen, Gemma, DeepSeek, Command-R); labelled-approximate for Claude & Gemini.
Answeringour last check, 2026-09-24
1 of 1checks answered this week
607 msmedian answer time
$0.004listed price per call
$0.004price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://tokens.openverbs.com/v1/count
| Category | Market data |
|---|---|
| Provider host | tokens.openverbs.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 4 from 2 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-24 | valid payment request | 402 | $0.004 | 607 ms |
Example input (from the provider)
{
"body": {
"encoding": "o200k_base",
"model": "example",
"text": "example"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"encoding": {
"description": "Explicit OpenAI BPE encoding. Overrides \"model\" and is always exact. Defaults to o200k_base.",
"enum": [
"o200k_base",
"cl100k_base",
"p50k_base",
"r50k_base"
],
"type": "string"
},
"model": {
"description": "LLM model name, e.g. \"gpt-4o\", \"llama-3.1-70b\", \"claude-3-5-sonnet\". Resolved to its tokenizer. Defaults to gpt-4o. Supported families: o200k_base, cl100k_base, p50k_base, r50k_base, llama3, llama2, mistral, qwen, gemma, deepseek, command-r, claude, gemini.",
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"text": {
"description": "The text to tokenize. Empty string counts as 0 tokens.",
"maxLength": 100000,
"type": "string"
}
},
"required": [
"text"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}