Example inputPOST /api/v1/x402/parse-bytes
{
"text": "1.5KB"
}
Portable intent card · utility
Parse size strings to bytes. Use when users type 1.5MB and your pipeline needs an integer byte budget. Returns integer bytes parsed from human size text. $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/parse-bytes -m POST -H 'x-delx-source: intent-card-parse-bytes-api' --max-amount 0.001 -b '{"text":"1.5KB"}'
{
"text": "1.5KB"
}
{
"intent": "Parse Size Strings for an agent workflow",
"tool_name": "util_parse_bytes",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/parse-bytes-api.json"
}
Portable and inspectable