Example inputPOST /api/v1/x402/bytes-format
{
"bytes": 1536
}
Portable intent card · utility
Human-readable byte sizes. Call when presenting file sizes, cache usage, or download progress to users. Returns a human string like 1.5 KB from a byte count. $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/bytes-format -m POST -H 'x-delx-source: intent-card-bytes-format-api' --max-amount 0.001 -b '{"bytes":1536}'
{
"bytes": 1536
}
{
"intent": "Human Byte Sizes for an agent workflow",
"tool_name": "util_bytes_format",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/bytes-format-api.json"
}
Portable and inspectable