ToolAssay

Count the LLM tokens in text for a given model or encoding — exact for OpenAI an

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.

Answeringour last check, 2026-09-24
1 of 1checks answered this week
607 msmedian answer time
$0.004listed price per call
$0.004price 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://tokens.openverbs.com/v1/count

CategoryMarket data
Provider hosttokens.openverbs.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days4 from 2 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-09-24 valid payment request 402$0.004 607 ms

Example input (from the provider)

{
  "body": {
    "encoding": "o200k_base",
    "model": "example",
    "text": "example"
  },
  "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": {
          "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"
}

This page as JSON