mirrored listing x402 eip155:8453

Count the LLM tokens in text for a given model or encoding — exact for OpenAI and open mod

Count the LLM tokens in text for a given model or encoding — exact for OpenAI and open models (Llama, Mistral, Qwen, Gemma, DeepSeek, Command-R); labelled-approximate for Claude & Gemini.

Do you run tokens.openverbs.com? This listing was mirrored from Coinbase's public Bazaar. Claim it in 30 seconds — no account required — and it becomes verified, permanently overriding the mirrored copy.

Claim this listing
4000 (raw units)
price
4
calls / 30d
2
unique payers
2026-09-14
updated

Provider

tokens.openverbs.com · discovered, not yet claimed by its owner

Payment (x402 accepts[])

[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xb3f4de103F34b99f0Da19B4F16D6B53a14C2194A",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "4000",
    "maxTimeoutSeconds": 300
  }
]

Output schema

{
  "bazaar": {
    "info": {
      "input": {
        "body": {
          "encoding": "o200k_base",
          "model": "example",
          "text": "example"
        },
        "bodyType": "json",
        "method": "POST",
        "type": "http"
      }
    },
    "schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "properties": {
        "input": {
          "additionalProperties": false,
          "properties": {
            "body": {
              "additionalProperties": false,
              "properties": {
                "encoding": {
                  "description": "Explicit OpenAI BPE encoding. Overrides \"model\" and is always exact. Defaults to o200k_base.",
                  "enum": [
                    "o200k_base",
                    "cl100k_base",
                    "p50k_base",
                    "r50k_base"
                  ],
                  "type": "string"
                },
                "model": {
                  "description": "LLM model name, e.g. \"gpt-4o\", \"llama-3.1-70b\", \"claude-3-5-sonnet\". Resolved to its tokenizer. Defaults to gpt-4o. Supported families: o200k_base, cl100k_base, p50k_base, r50k_base, llama3, llama2, mistral, qwen, gemma, deepseek, command-r, claude, gemini.",
                  "maxLength": 100,
                  "minLength": 1,
                  "type": "string"
                },
                "text": {
                  "description": "The text to tokenize. Empty string counts as 0 tokens.",
                  "maxLength": 100000,
                  "type": "string"
                }
              },
              "required": [
                "text"
              ],
              "type": "object"
            },
            "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"
        }
      },
      "required": [
        "input"
      ],
      "type": "object"
    }
  }
}

Use it

curl

curl "https://tokens.openverbs.com/v1/count"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid

JavaScript

const res = await fetch("https://tokens.openverbs.com/v1/count");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}

Python

import httpx
res = httpx.get("https://tokens.openverbs.com/v1/count")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Machine-readable

Everything on this page is also available as clean JSON at /resources/12662.json, and this resource appears in /discovery/resources and /discovery/search.