{"uid":"cap_3yOnEdO771l4OevFgKJiZ","slug":"delx-commerce-bytes-to-human-readable-size-785475c9","name":"Delx Commerce — Bytes to Human-Readable Size","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/bytes-to-human?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"bytes":{"type":"integer","description":"Input field: bytes."}}},"responseSchema":{"type":"json","example":{"ok":true,"unit":"MiB","bytes":1536000,"human":"1.46 MiB","scaled":1.4648,"schema":"delx/util-bytes-to-human/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_1Gi2eBDQW7EsM8C_5j-_e","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 file size string (e.g. '1.46 MiB') with unit, scaled value, and exact bytes.","exampleAgentPrompt":"Convert 1536000 bytes into a human-readable file size for me — like '1.46 MiB' — so I can display it nicely in the UI.","exampleUseCases":[{"title":"Format download size for display","prompt":"I have a file that's 104857600 bytes — can you convert that to a human-readable size like MB or GB so I can show it in the download dialog?"},{"title":"Display disk usage in dashboard","prompt":"My storage monitor is reporting 2147483648 bytes used — convert that to something readable like '2 GiB' so I can put it on the dashboard."},{"title":"Show upload progress in readable units","prompt":"The upload API says 512000 bytes have been transferred so far — what's that in human-readable form like KB or MB?"}],"resultDescription":"Returns a JSON object with: 'ok' (boolean success flag), 'bytes' (original integer input), 'human' (formatted string like '1.46 MiB'), 'unit' (the chosen unit e.g. 'MiB'), 'scaled' (float representation in that unit), and 'schema' identifier 'delx/util-bytes-to-human/v1'.","failureModes":["Missing or non-integer 'bytes' field returns an error response","Negative byte values may produce unexpected results","Network or payment failure via x402 protocol prevents response","Extremely large integers beyond supported range may not format correctly"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a quick, pay-per-call, no-signup conversion of a raw byte integer to a human-readable size string with a structured JSON response including the unit, scaled value, and schema identifier. Ideal for agents that already operate in USDC micropayment environments (x402 on Base or Solana) and need a reliable formatting utility without maintaining their own logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:44:00.245Z","isFirstParty":false,"canonicalSlug":"delx-commerce-bytes-to-human-readable-size-785475c9"}