ToolAssay

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

CategoryMarket data
Provider hostx402.shizu.me
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days2 from 2 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
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"
    }
  }
}

This page as JSON