Parameters2
| Parameter | Type | Default | Example |
|---|---|---|---|
left | object | null | null |
right | object | null | null |
Service overview
Count the number of tokens in a text string using the specified tokenizer encoding. Supports cl100k_base (GPT-4/GPT-3.5, exact BPE), o200k_base (GPT-4o, exact BPE), claude (Claude models, estimated), and gemini (Gemini models, estimated). Use before sending text to an LLM to estimate cost, check context window fit, or enforce token budgets. For base64-encoded images, set content_type='image' for tile-based token estimation. Send {"text": "...", "encoding": "cl100k_base"}. Max 50 MB text.
Level up your agent by giving it access to thousands of services. All payable per-request via x402. No API keys, no accounts.
Paste into your agentic chat and let your agent guide you.
npx awal x402 pay "https://utilsforagents.com/v1/diff" \
--method POST \
--data '{
"left": "{left}",
"right": "{right}"
}'{
"endpoint": "POST /v1/diff",
"paid": true,
"query": "example input",
"result": {
"value": "Structured response from the service."
}
}API surface
8 crawlable routes
| Parameter | Type | Default | Example |
|---|---|---|---|
left | object | null | null |
right | object | null | null |
| Parameter | Type | Default | Example |
|---|---|---|---|
url | string | null | https://quotes.toscrape.com |
| Parameter | Type | Default | Example |
|---|---|---|---|
html | string | null | <h1>Hello</h1><p>World</p> |
| Parameter | Type | Default | Example |
|---|---|---|---|
file | string | null | (binary JPEG image) |
| Parameter | Type | Default | Example |
|---|---|---|---|
Content-Type | string | null | image/jpeg | image/png | multipart/form-data |
| Parameter | Type | Default | Example |
|---|---|---|---|
file | string | null | (binary JPEG or PNG image) |
| Parameter | Type | Default | Example |
|---|---|---|---|
url | string | null | https://quotes.toscrape.com/readme.md |
| Parameter | Type | Default | Example |
|---|---|---|---|
url | string | null | https://quotes.toscrape.com |
| Parameter | Type | Default | Example |
|---|---|---|---|
encoding | string | null | cl100k_base |
text | string | null | Hello, world! |
FAQ
Service
Base wallet portfolio breakdown: up to 100 token positions with live USD price and value, portfolio percentage, 24h price change — native ETH included, spam filtered, top 50 returned; truncated:true means the wallet exceeds the 100-position fetched page (totals null then). Plus total value, top-position concentration and an AI bagcheck read. Wallet holdings, wallet portfolio, wallet balance, bagcheck. $0.02 per call.
Service
CuseTheJuice agent APIs on Base USDC: email relay, spam and phishing checks, IP threat scoring, Base Notary hash anchors, and Jupiter Solana swap quotes. Spam/phishing from From, Reply-To, Subject only (no body). GET/POST headers, optional mode. JSON rules/signals; optional X-CTJ-Spam-Check header. Pay with x402 (Base USDC). HTTP shape: extensions.bazaar on the 402. Catalog: https://app.cusethejuice.com/agents
Service
CuseTheJuice agent mailbox on Base USDC: create accounts, list and read mail, send, reply, search, folders, attachments, trust index, password recovery, custom domains, and domain admin. move a message between folders (message_id, to_folder, optional from_folder) Pay with x402 (Base USDC). HTTP shape: extensions.bazaar on the 402. Catalog: https://mail.cusethejuice.com/machine-mail.html