Tokenizer Diff
by denk.halowerk.com in Onchain & crypto
Compare how 2 to 6 tokenizers split the same text: token pieces with byte offsets, pairwise boundary agreement and the words that are split most differently. The text is NFC-normalized, tokenized by each selected tokenizer and every token is mapped back to its exact UTF-8 bytes (tiktoken byte table; GPT-2 byte mapping for byte-level BPE; Metaspace and byte-fallback for SentencePiece-style vocabularies).
https://denk.halowerk.com/v1/tokenizer-diff- Price
- $0.003
- per call in USDC
- Uptime
- 96.0%
- last 30 days
- Response time
- 129 ms
- 251 ms slowest 5%
- Last check
- Passed
- 47 min ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://denk.halowerk.com/v1/tokenizer-diff
Each call costs $0.003 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://denk.halowerk.com/v1/tokenizer-diff
content-type: application/json
{
"text": "Lebensversicherungsgesellschaft antidisestablishmentarianism",
"tokenizers": [
"o200k_base",
"qwen2.5"
]
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
max_tokens_listed | integer | No | Default: 300. |
text | string | Yes | |
tokenizers | array of string | No | Default: ["o200k_base","cl100k_base","qwen2.5","mistral-tekken"]. |
Example response
The provider's example. We can't check it without paying.
Example response, 242 lines
{
"limitations": [
"Boundary agreement measures segmentation similarity, not model quality."
],
"result": {
"agreement": [
{
"a": "o200k_base",
"b": "qwen2.5",
"boundary_jaccard": 0.533,
"identical": false,
"shared_boundaries": 8
}
],
"normalized": "NFC",
"text_bytes": 60,
"tokenizers": [
{
"offsets_exact": true,
"pieces": [
{
"byte_end": 3,
"byte_start": 0,
"id": 120732,
"partial": false,
"text": "Leb"
},
{
"byte_end": 6,
"byte_start": 3,
"id": 696,
"partial": false,
"text": "ens"
},
{
"byte_end": 18,
"byte_start": 6,
"id": 105950,
"partial": false,
"text": "versicherung"
},
{
"byte_end": 22,
"byte_start": 18,
"id": 74849,
"partial": false,
"text": "sges"
},
{
"byte_end": 31,
"byte_start": 22,
"id": 36567,
"partial": false,
"text": "ellschaft"
},
{
"byte_end": 35,
"byte_start": 31,
"id": 4624,
"partial": false,
"text": " ant"
},
{
"byte_end": 39,
"byte_start": 35,
"id": 129901,
"partial": false,
"text": "idis"
},
{
"byte_end": 42,
"byte_start": 39,
"id": 376,
"partial": false,
"text": "est"
},
{
"byte_end": 52,
"byte_start": 42,
"id": 160388,
"partial": false,
"text": "ablishment"
},
{
"byte_end": 57,
"byte_start": 52,
"id": 21203,
"partial": false,
"text": "arian"
},
{
"byte_end": 60,
"byte_start": 57,
"id": 2367,
"partial": false,
"text": "ism"
}
],
"tokenizer": "o200k_base",
"tokens": 11,
"truncated": false
},
{
"offsets_exact": true,
"pieces": [
{
"byte_end": 2,
"byte_start": 0,
"id": 2304,
"partial": false,
"text": "Le"
},
{
"byte_end": 6,
"byte_start": 2,
"id": 55874,
"partial": false,
"text": "bens"
},
{
"byte_end": 10,
"byte_start": 6,
"id": 3004,
"partial": false,
"text": "vers"
},
{
"byte_end": 15,
"byte_start": 10,
"id": 28064,
"partial": false,
"text": "icher"
},
{
"byte_end": 18,
"byte_start": 15,
"id": 2185,
"partial": false,
"text": "ung"
},
{
"byte_end": 20,
"byte_start": 18,
"id": 1991,
"partial": false,
"text": "sg"
},
{
"byte_end": 22,
"byte_start": 20,
"id": 288,
"partial": false,
"text": "es"
},
{
"byte_end": 31,
"byte_start": 22,
"id": 69701,
"partial": false,
"text": "ellschaft"
},
{
"byte_end": 35,
"byte_start": 31,
"id": 3196,
"partial": false,
"text": " ant"
},
{
"byte_end": 39,
"byte_start": 35,
"id": 84242,
"partial": false,
"text": "idis"
},
{
"byte_end": 48,
"byte_start": 39,
"id": 33400,
"partial": false,
"text": "establish"
},
{
"byte_end": 52,
"byte_start": 48,
"id": 478,
"partial": false,
"text": "ment"
},
{
"byte_end": 57,
"byte_start": 52,
"id": 8821,
"partial": false,
"text": "arian"
},
{
"byte_end": 60,
"byte_start": 57,
"id": 2142,
"partial": false,
"text": "ism"
}
],
"tokenizer": "qwen2.5",
"tokens": 14,
"truncated": false
}
],
"words": [
{
"pieces": {
"o200k_base": [
"Leb",
"ens",
"versicherung",
"sges",
"ellschaft"
],
"qwen2.5": [
"Le",
"bens",
"vers",
"icher",
"ung",
"sg",
"es",
"ellschaft"
]
},
"splits": {
"o200k_base": 5,
"qwen2.5": 8
},
"spread": 3,
"word": "Lebensversicherungsgesellschaft"
}
]
},
"service": "tokenizer-diff",
"status": "success"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.003.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://denk.halowerk.com/v1/tokenizer-diff' \
-H 'content-type: application/json' \
--data-raw '{"text":"Lebensversicherungsgesellschaft antidisestablishmentarianism","tokenizers":["o200k_base","qwen2.5"]}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://denk.halowerk.com/v1/tokenizer-diff' \
-H 'content-type: application/json' \
--data-raw '{"text":"Lebensversicherungsgesellschaft antidisestablishmentarianism","tokenizers":["o200k_base","qwen2.5"]}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.003 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.003" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.003 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fdenk.halowerk.com%2Fv1%2Ftokenizer-diff&method=POST
const res = await pay("https://denk.halowerk.com/v1/tokenizer-diff", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"text": "Lebensversicherungsgesellschaft antidisestablishmentarianism",
"tokenizers": [
"o200k_base",
"qwen2.5"
]
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.003 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.003"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://denk.halowerk.com/v1/tokenizer-diff",
json={
"text": "Lebensversicherungsgesellschaft antidisestablishmentarianism",
"tokenizers": [
"o200k_base",
"qwen2.5",
],
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 47 min ago | Passed | 402 | 126 ms | $0.003 |
| 14 h ago | Passed | 402 | 127 ms | $0.003 |
| 3 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 121 ms | $0.003 |
| 4 days ago | Passed | 402 | 128 ms | $0.003 |
Show 10 older checks
| 5 days ago | Passed | 402 | 135 ms | $0.003 |
| 5 days ago | Passed | 402 | 172 ms | $0.003 |
| 5 days ago | Passed | 402 | 125 ms | $0.003 |
| 6 days ago | Passed | 402 | 138 ms | $0.003 |
| 6 days ago | Passed | 402 | 132 ms | $0.003 |
| 7 days ago | Passed | 402 | 181 ms | $0.003 |
| 7 days ago | Passed | 402 | 131 ms | $0.003 |
| 7 days ago | Passed | 402 | 140 ms | $0.003 |
| 7 days ago | Passed | 402 | 127 ms | $0.003 |
| 8 days ago | Passed | 402 | 121 ms | $0.003 |