Example inputPOST /api/v1/x402/char-count
{
"text": "hello agent world"
}
Portable intent card · 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.
Intent to transaction
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/char-count -m POST -H 'x-delx-source: intent-card-char-count-api' --max-amount 0.001 -b '{"text":"hello agent world"}'
{
"text": "hello agent world"
}
{
"intent": "Character & Word Count for Agents for an agent workflow",
"tool_name": "util_char_count",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/char-count-api.json"
}
Portable and inspectable