{"uid":"cap_uX9uh8BVXlv4DSu2yImM4","slug":"minia2a-x402-format-bytes-fc731e1a","name":"minia2a x402-format-bytes","description":"minia2a service: x402-format-bytes","url":"https://minia2a.uk/x402/formatBytes?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"type":{"type":"string"},"method":{"type":"string"},"bodyType":{"type":"string"},"queryParams":{"type":"object"}}},"output":{"type":"object","properties":{"type":{"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Chgeny1ghror8dStRDEMA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 into a human-readable file size string (e.g. 1024 → '1 KB')","exampleAgentPrompt":"Format 1073741824 bytes into a human-readable file size string for me.","exampleUseCases":[{"title":"Display upload progress size","prompt":"I have a file that's 5242880 bytes — can you format that into a readable size like MB so I can show it to users in my upload UI?"},{"title":"Storage quota display","prompt":"My app reports available disk space as 107374182400 bytes — format that into a clean human-readable string like GB or TB."},{"title":"Log file size labeling","prompt":"I have a log file that's 2097152 bytes, can you convert that to a readable format like '2 MB' so I can display it in my dashboard?"}],"resultDescription":"A human-readable string representing the byte value converted to the most appropriate unit (e.g. KB, MB, GB, TB), making raw byte counts easy to read and display.","failureModes":["Missing or invalid 'input' parameter returns an error","Non-numeric byte value causes a parsing or validation error","Negative byte values may not be handled gracefully","Network timeout on the x402 micropayment flow"],"whenToPreferThis":"Choose this endpoint when you need a quick, stateless utility to convert raw byte counts to human-readable size strings without setting up local formatting logic. Useful in agent pipelines that surface storage metrics, file sizes, or bandwidth usage to end users.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:40:24.447Z","isFirstParty":false,"canonicalSlug":"minia2a-x402-format-bytes-fc731e1a"}