{"uid":"cap_vZOjhMkANdNToY3utHj_i","slug":"delx-commerce-parse-bytes-b6a5c834","name":"Delx Commerce — Parse Bytes","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/parse-bytes?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":100000,"description":"Primary text input (max 100k chars). Processed first-party; not retained as a dataset."}}},"responseSchema":{"type":"json","example":{"bytes":1536,"input":"1.5KB","schema":"delx/parse-bytes/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_sc0UaHQr0TcERuhsFimKD","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":"Computes the byte size of a given text string and returns a human-readable size representation","exampleAgentPrompt":"How many bytes is this text: 'The quick brown fox jumped over the lazy dog and kept running until it reached the edge of the forest'?","exampleUseCases":[{"title":"Payload size check before API call","prompt":"Before I send this JSON body to the external API, can you tell me how many bytes it is? Here's the text: '{\"user\":\"alice\",\"message\":\"Hello, world!\",\"timestamp\":1700000000}'"},{"title":"Validate text fits within limit","prompt":"I need to know the byte size of this article excerpt to make sure it's under 10KB — can you parse it for me? The text is: 'Artificial intelligence is transforming industries at an unprecedented rate, reshaping how we work, communicate, and create value across every sector of the global economy.'"},{"title":"Monitor token-adjacent size of AI prompt","prompt":"Can you measure the byte count of this prompt I'm about to send to an LLM? I want to track payload sizes. The prompt is: 'Summarize the following research paper abstract in three bullet points, focusing on methodology, results, and conclusions.'"}],"resultDescription":"Returns a JSON object containing the raw byte count as an integer, a human-readable size string (e.g. '1.5KB'), and a schema identifier ('delx/parse-bytes/v1') confirming the response format.","failureModes":["Text input exceeds 100,000 character limit — returns validation error","Empty or missing text field — may return zero bytes or a 400 error","Non-UTF-8 encoded content may produce unexpected byte counts","Payment not settled via x402 protocol — returns 402 Payment Required before processing"],"whenToPreferThis":"Choose this endpoint when you need a quick, deterministic byte-count measurement of a text string without standing up any infrastructure. Ideal for agents that need to verify payload sizes before transmitting data, enforce size limits, or log text footprint metrics. At $0.001 USDC per call with no signup and pay-per-result pricing via x402, it suits agentic workflows that process variable volumes of text on demand.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:50.006Z","isFirstParty":false,"canonicalSlug":"delx-commerce-parse-bytes-b6a5c834"}