Count the tokens of a text with OpenAI tokenizers (o200k for GPT-4o/4.1/5, cl100
Count the tokens of a text with OpenAI tokenizers (o200k for GPT-4o/4.1/5, cl100k for GPT-4/3.5) plus estimates for Claude, Llama and Gemini, with characters per token. Budget LLM calls and split contexts.
Answeringour last check, 2026-10-03
1 of 1checks answered this week
343 msmedian answer time
$0.003listed price per call
$0.003price 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://api.vextorium.com/contar-tokens-pago
| Category | Market data |
|---|---|
| Provider host | api.vextorium.com |
| Networks | eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-10-03 | valid payment request | 402 | $0.003 | 343 ms |
Example input (from the provider)
{
"body": {
"texto": "Artificial intelligence agents are transforming the digital economy. AI agents pay for data with micropayments. The x402 protocol lets agents pay per call without accounts. Many companies already offer pay-per-use APIs for agents. USDC micropayments make this business model viable."
},
"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": {
"properties": {
"modelo": {
"enum": [
"o200k_base",
"cl100k_base"
],
"type": "string"
},
"texto": {
"type": "string"
}
},
"required": [
"texto"
]
},
"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"
},
"output": {
"properties": {
"example": {
"properties": {
"caracteres": {
"type": [
"number",
"null"
]
},
"caracteres_por_token": {
"type": [
"number",
"null"
]
},
"codificacion": {
"type": [
"string",
"null"
]
},
"estimaciones": {
"properties": {
"claude_aprox": {
"type": [
"number",
"null"
]
},
"gemini_aprox": {
"type": [
"number",
"null"
]
},
"llama3_aprox": {
"type": [
"number",
"null"
]
}
},
"type": [
"object",
"null"
]
},
"nota": {
"type": [
"string",
"null"
]
},
"palabras": {
"type": [
"number",
"null"
]
},
"tokens": {
"type": [
"number",
"null"
]
},
"tokens_otra_codificacion": {
"properties": {
"cl100k_base": {
"type": [
"number",
"null"
]
}
},
"type": [
"object",
"null"
]
}
},
"type": [
"object",
"null"
]
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}