Exact token count for text using OpenAI tokenizers
Exact token count for text using OpenAI tokenizers. Body: {text, encoding?} where encoding is cl100k_base or o200k_base (default). Returns tokens and char_count. Use to budget prompts and context windows.
Answeringour last check, 2026-10-10
1 of 1checks answered this week
949 msmedian answer time
$0.002listed price per call
$0.002price 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://x402.shizu.me/count
| Category | Market data |
|---|---|
| Provider host | x402.shizu.me |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 2 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-10-10 | valid payment request | 402 | $0.002 | 949 ms |
Example input (from the provider)
{
"body": {
"encoding": "o200k_base",
"text": "hello world"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"properties": {
"body": {
"properties": {
"encoding": {},
"text": {}
},
"required": [
"text",
"encoding"
],
"type": "object"
},
"method": {
"const": "POST"
}
},
"required": [
"method"
],
"type": "object"
}
}
}