Api Endpoint

Busker Token Counter

Exact BPE token counts for OpenAI-family encodings (o200k_base for GPT-4o/4.1/5, cl100k_base for GPT-4/3.5/embeddings), single text or batches, with optional truncation to a token budget. Up to 512 KB per call.

Open interactive test console

Offering

Provider
workbot1.oddsys.org
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Development
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://workbot1.oddsys.org/tokens
MIME type
Not provided
First seen
2026-10-16T01:51:30.109Z
Last seen
Tags
tokens, tiktoken, token-count, context-window, LLM

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0x15459498e1191d8787c83177809bd54022fA18c4"
  }
]

Observed health

Status
Healthy
Latest latency
67 ms
Average latency
175 ms
HTTP status
204
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "additionalProperties": false,
      "properties": {
        "encoding": {
          "description": "BPE encoding (default o200k_base).",
          "enum": [
            "o200k_base",
            "cl100k_base"
          ],
          "type": "string"
        },
        "text": {
          "description": "Text to count.",
          "type": "string"
        },
        "texts": {
          "description": "Batch of texts.",
          "items": {
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "truncate": {
          "description": "Token budget — when exceeded the response includes the text cut to this many tokens.",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "bodyType": {
      "enum": [
        "json"
      ],
      "type": "string"
    },
    "method": {
      "enum": [
        "POST"
      ],
      "type": "string"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "encoding": {
              "description": "BPE encoding (default o200k_base).",
              "enum": [
                "o200k_base",
                "cl100k_base"
              ],
              "type": "string"
            },
            "text": {
              "description": "Text to count.",
              "type": "string"
            },
            "texts": {
              "description": "Batch of texts.",
              "items": {
                "type": "string"
              },
              "maxItems": 100,
              "type": "array"
            },
            "truncate": {
              "description": "Token budget — when exceeded the response includes the text cut to this many tokens.",
              "type": "integer"
            }
          },
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    }
  }
}