{"uid":"cap_ADurQ61NixwefP3UdhqBI","slug":"delx-bits-to-bytes-3e070719","name":"Delx Bits To Bytes","description":"Convert bit count to bytes. Call when you convert link rates into byte budgets. Returns bytes, bits, whole_bytes for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/bits-to-bytes","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"bits":{"type":"integer","description":"Input field: bits."}}},"responseSchema":{"type":"json","example":{"bits":16,"bytes":2,"schema":"delx/util-bits-to-bytes/v1","whole_bytes":2}},"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_wrOCfI82kj5qvhE2q820z","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 bit count integer into its equivalent byte representation, returning bytes, bits, and whole_bytes values.","exampleAgentPrompt":"How many bytes is 8192 bits? I need the result broken down into bytes, raw bits, and whole bytes.","exampleUseCases":[{"title":"Network link rate byte budget","prompt":"I have a 1 Mbps link, which is 1000000 bits — how many bytes does that translate to so I can size my receive buffer?"},{"title":"Protocol frame size conversion","prompt":"My packet header is 160 bits long. Can you tell me how many bytes that is, including the whole-bytes count?"},{"title":"Storage quota calculation from bits","prompt":"A sensor streams 4096 bits per reading. Convert that to bytes so I can figure out how many readings fit in a 1 KB storage slot."}],"resultDescription":"A JSON object containing three fields: 'bytes' (the exact fractional byte equivalent), 'bits' (the original input bit count echoed back), and 'whole_bytes' (the floor integer of full bytes), enabling callers to work with both exact and rounded byte budgets.","failureModes":["Missing or non-integer 'bits' field returns a validation error","Negative bit values may return an error or zero result","Non-numeric input types (e.g. strings) will likely cause a 400 bad request","Network timeout if the API is temporarily unavailable","Payment failure if USDC balance is insufficient for the $0.001 fee"],"whenToPreferThis":"Choose this endpoint when you need a quick, stateless, no-auth unit conversion from bits to bytes — especially in agentic pipelines computing byte budgets from link rates or protocol specs. Prefer it over manual arithmetic when you need both fractional and whole-byte outputs in a single call with a guaranteed local JSON response and no external dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:43.796Z","isFirstParty":false}