Count the tokens of a text for 12 tokenizers at once
denk.halowerk.com/v1/token-count-multi
Count the tokens of a text for 12 tokenizers at once: OpenAI o200k/cl100k/p50k/r50k plus Qwen, DeepSeek, Mistral Tekken, Falcon, GPT-NeoX, Yi, Granite and GLM. Exact counts, not estimates: OpenAI encodings via js-tiktoken, other families via their published tokenizer.json (Hugging Face, pinned revisions, SHA-256 checked, open licenses only: Apache-2.0 or MIT) run with transformers.js.
POST
https://denk.halowerk.com/v1/token-count-multiUptimeNot checked yet
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://denk.halowerk.com/v1/token-count-multi", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"text":"Die Rechnung ist innerhalb von 14 Tagen ohne Abzug zu bezahlen.","tokenizers":["o200k_base","qwen2.5","mistral-tekken"]}),
});
console.log(await res.json());Example input
{
"text": "Die Rechnung ist innerhalb von 14 Tagen ohne Abzug zu bezahlen.",
"tokenizers": [
"o200k_base",
"qwen2.5",
"mistral-tekken"
]
}