Count the tokens of a text for OpenAI models (o200k_base for GPT-4o and later, c
Count the tokens of a text for OpenAI models (o200k_base for GPT-4o and later, cl100k_base for GPT-4), with characters, words and lines, to size prompts and estimate cost.
Answeringour last check, 2026-11-26
7 of 7checks answered this week
619 msmedian answer time
$0.001listed price per call
$0.001price 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://utils.kagurazaka.dev/v1/tokens
| Category | Market data |
|---|---|
| Provider host | utils.kagurazaka.dev |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 5 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.001 | 627 ms |
| 2026-11-25 | valid payment request | 402 | $0.001 | 613 ms |
| 2026-11-24 | valid payment request | 402 | $0.001 | 619 ms |
| 2026-11-23 | valid payment request | 402 | $0.001 | 619 ms |
| 2026-11-22 | valid payment request | 402 | $0.001 | 612 ms |
| 2026-11-21 | valid payment request | 402 | $0.001 | 493 ms |
| 2026-11-20 | valid payment request | 402 | $0.001 | 623 ms |
| 2026-11-19 | valid payment request | 402 | $0.001 | 633 ms |
| 2026-11-18 | valid payment request | 402 | $0.001 | 498 ms |
| 2026-11-17 | valid payment request | 402 | $0.001 | 634 ms |
| 2026-11-16 | valid payment request | 402 | $0.001 | 625 ms |
| 2026-11-15 | valid payment request | 402 | $0.001 | 620 ms |
| 2026-11-14 | valid payment request | 402 | $0.001 | 651 ms |
| 2026-11-13 | valid payment request | 402 | $0.001 | 630 ms |
| 2026-11-12 | valid payment request | 402 | $0.001 | 633 ms |
| 2026-11-11 | valid payment request | 402 | $0.001 | 654 ms |
| 2026-11-10 | valid payment request | 402 | $0.001 | 643 ms |
| 2026-11-09 | valid payment request | 402 | $0.001 | 636 ms |
| 2026-11-08 | valid payment request | 402 | $0.001 | 627 ms |
| 2026-11-07 | valid payment request | 402 | $0.001 | 618 ms |
| 2026-11-06 | valid payment request | 402 | $0.001 | 689 ms |
| 2026-11-05 | valid payment request | 402 | $0.001 | 620 ms |
| 2026-11-04 | valid payment request | 402 | $0.001 | 627 ms |
| 2026-11-03 | valid payment request | 402 | $0.001 | 621 ms |
| 2026-11-02 | valid payment request | 402 | $0.001 | 616 ms |
| 2026-11-01 | valid payment request | 402 | $0.001 | 650 ms |
| 2026-10-31 | valid payment request | 402 | $0.001 | 659 ms |
| 2026-10-29 | valid payment request | 402 | $0.001 | 495 ms |
Example input (from the provider)
{
"body": {
"text": "Agents pay for APIs with x402."
},
"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": {
"encodings": {
"description": "which encodings (default both)",
"items": {
"enum": [
"o200k_base",
"cl100k_base"
],
"type": "string"
},
"type": "array"
},
"text": {
"description": "the text (up to 1 MB)",
"type": "string"
}
},
"required": [
"text"
]
},
"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": {
"characters": {},
"tokens": {},
"words": {}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}