{"uid":"cap_-1RQfWFr_YkT92fvcBX46","slug":"human-byte-sizes-71c50598","name":"Human Byte Sizes","description":"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.","url":"https://api.delx.ai/api/v1/x402/bytes-format","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"bytes":{"type":"integer","minimum":0,"description":"Byte count to format for humans (e.g. 1536 → 1.5 KB)."}}},"responseSchema":{"type":"json","example":{"text":"1.5 KB","bytes":1536,"schema":"delx/bytes-format/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KYgZ8xpbWOzGRmDp1h048","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a raw byte count integer into a human-readable size string like '1.5 KB' or '2.3 MB'","exampleAgentPrompt":"Format 1572864 bytes as a human-readable file size string like '1.5 MB'.","exampleUseCases":[{"title":"File size display in upload UI","prompt":"I have a file that's 2097152 bytes — what should I show the user as a friendly file size?"},{"title":"Cache usage reporting","prompt":"My cache is using 10737418240 bytes of space, can you convert that to a human-readable size for the dashboard?"},{"title":"Download progress indicator","prompt":"The user has downloaded 524288 bytes so far — format that as a readable size like KB or MB to show in the progress bar."}],"resultDescription":"A JSON object containing a human-readable string representation of the byte count, such as '1.5 KB', '3.2 MB', or '1.0 GB', suitable for direct display to end users.","failureModes":["Negative byte count returns a structured validation error (not billed)","Non-integer or missing bytes field returns a validation error","Extremely large integers beyond supported range may return an error"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, consistent byte formatting result without shipping your own formatting logic, managing library dependencies, or dealing with locale inconsistencies. Ideal for agents building UI labels, logs, or reports where byte counts must be presented cleanly to humans. Preferred over rolling your own when you want first-party JSON output at low cost with no API key or subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:30.885Z","isFirstParty":false}