InputPOST /api/v1/x402/char-count
{
"text": "hello agent world"
}
Web and API intelligence · utility
Count characters, words, and lines. Call before truncating prompts, validating SMS length, or estimating token budget from raw text. Returns character, word, line, and byte-oriented counts in one JSON object. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.
One-command purchase
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/char-count -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"text":"hello agent world"}'
{
"text": "hello agent world"
}
{
"schema": "delx/char-count/v1",
"chars": 17,
"bytes_utf8": 17,
"words": 3,
"lines": 1
}
Machine-readable evidence