{"uid":"cap_t4BBQHc7yU5BqR72bseM7","slug":"textkit-human-readable-byte-size-formatter-d76068b8","name":"TextKit Human-Readable Byte Size Formatter","description":"General-purpose text, Unicode and date utilities for AI agents: homoglyph folding and spoofed-domain detection, Unicode script detection, NFC/NFD normalization, grapheme counting, date description (weekday, ISO week, quarter, leap year), business-day counting, slugify, FNV-1a hashing, Shannon entropy, string format detection (uuid, email, url, ipv4, jwt, iban), byte-encoding detection and human-readable byte sizes. Pay per request in USDC on Base via x402 - no signup, no API key, no KYC.","url":"https://textkit.johnaio281.workers.dev/api/tk/human-bytes?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["bytes"],"properties":{"bytes":{"type":["integer","number"]}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"bytes":1048576,"readable":"1 MB","kilobytes":1024,"mebibytes":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KgljK1wmTqrhesiBzviTq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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 string with appropriate units (KB, MB, GB, etc.)","exampleAgentPrompt":"How big is 1048576 bytes in human-readable form — like MB or GB?","exampleUseCases":[{"title":"Display upload file size","prompt":"A user just uploaded a file that's 2097152 bytes — can you show me that in a friendly readable format like MB?"},{"title":"Format disk usage report","prompt":"I have a storage report showing 107374182400 bytes used — convert that to a human-readable size like GB or TB for the dashboard."},{"title":"Show download size to user","prompt":"This download is 524288 bytes, what should I show the user — like '512 KB' or something readable?"}],"resultDescription":"A JSON object containing the original byte count, a human-readable string (e.g. '1 MB'), the value in kilobytes, and the value in mebibytes — ready to display directly to end users.","failureModes":["Missing required 'bytes' query parameter returns an error","Non-numeric or negative byte value may return an error or unexpected result","Payment failure via x402 protocol blocks the request","Very large integers beyond JavaScript safe integer range may produce inaccurate results"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-use, no-signup conversion of raw byte counts to human-readable sizes — especially useful in AI agent pipelines that handle file uploads, storage reporting, or any context where displaying raw bytes to end users is undesirable. Prefer this over building custom formatting logic when operating in a serverless or agent context that already uses x402 micropayments on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:38:06.519Z","isFirstParty":false,"canonicalSlug":"textkit-human-readable-byte-size-formatter-d76068b8"}