{"uid":"cap_YLHHxDFJYpguvfPoxhfR_","slug":"delx-commerce-bytes-format-converter-1c9cca3d","name":"Delx Commerce — Bytes Format Converter","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-format?utm_source=zero.xyz","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_pZCO75MWg73rYi4oHRYi0","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. 1536 → '1.5 KB')","exampleAgentPrompt":"Can you format 1536 bytes into a human-readable file size string for me?","exampleUseCases":[{"title":"Display upload size in dashboard","prompt":"I have a file that's 2097152 bytes — can you format that into a readable size like '2 MB' for display in my app's upload dashboard?"},{"title":"Format download size for user notification","prompt":"My agent just downloaded a file that's 10485760 bytes. Can you convert that to a friendly size string so I can show it in the notification to the user?"},{"title":"Summarize storage usage report","prompt":"I'm generating a storage report and one item is 768 bytes — format that into a human-readable string like '768 B' or '0.75 KB' so it looks clean in the output."}],"resultDescription":"A JSON object containing the human-readable formatted text (e.g. '1.5 KB'), the original byte count as an integer, and a schema identifier ('delx/bytes-format/v1') for verifiable delivery.","failureModes":["Missing or non-integer 'bytes' field returns a validation error","Negative byte values may be rejected (minimum: 0)","Payment not completed via x402 protocol returns HTTP 402 Payment Required","Network timeout if Base or Solana payment settlement is delayed"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call, no-signup solution for formatting raw byte counts into human-readable strings. Ideal for AI agents that need to display file sizes to end users without integrating a full utility library, especially in environments that support x402 micropayments on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:52.975Z","isFirstParty":false,"canonicalSlug":"delx-commerce-bytes-format-converter-1c9cca3d"}