Api Endpoint

Lookup Kit

Token counter, count LLM tokens (GPT, OpenAI tokenizer), context window check. Count tokens in a text with an offline tokenizer: OpenAI's o200k_base (the encoding of GPT-4o, GPT-4.1 and o-series models). Counts for other model families (Claude, Gemini, Llama) are estimates. Optionally checks whether it fits a limit. The text is not stored or logged.

Open interactive test console

Offering

Provider
lookupkit.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://lookupkit.dev/api/token_count
MIME type
application/json
First seen
2026-11-25T17:15:42.733Z
Last seen
Tags
token counter, count llm tokens, context window check, tokens, 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": "0x2eDB61aE5aAAfDC59b715C2cBB5672cA0C402B80"
  }
]

Observed health

Status
Healthy
Latest latency
46 ms
Average latency
46 ms
HTTP status
402
Last checked
Reachability
100% over 1 checks

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

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "HEAD",
        "DELETE"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "minLength": 1,
          "maxLength": 8000
        },
        "limit": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "text"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object"
    }
  },
  "required": [
    "type"
  ]
}