{"uid":"cap_IZ0yhHRQIAvqWGH_BrSQt","slug":"delx-commerce-base64-size-estimator-dd288ec7","name":"Delx Commerce — Base64 Size Estimator","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/base64-size-estimate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"base64":{"type":"string","description":"Input field: base64."}}},"responseSchema":{"type":"json","example":{"ok":true,"schema":"delx/util-base64-size-estimate/v1","padding":1,"encoded_chars":8,"decoded_bytes_estimate":5}},"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_HZ3zmqysx_VbgnFvfE2oM","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":"Estimates the decoded byte size of a base64-encoded string by analyzing its padding and character count","exampleAgentPrompt":"How many bytes would this base64 string decode to: 'SGVsbG8='? I want to know the padding and decoded size before I process it.","exampleUseCases":[{"title":"Pre-check image payload size","prompt":"I have this base64 encoded image string — 'iVBORw0KGgoAAAANSUhEUgAA...' — can you tell me how many bytes it will be once decoded so I know if it's too large to store?"},{"title":"Validate API response payload","prompt":"Before I decode this base64 blob from the API response, can you estimate how many decoded bytes it contains? The string is 'dGhpcyBpcyBhIHRlc3Q='."},{"title":"Audit base64 data before upload","prompt":"I need to know the decoded byte size of 'YWJjZGVmZ2hpamtsbW5vcA==' before uploading it — can you check the padding and give me the estimated size?"}],"resultDescription":"Returns a JSON object with 'ok' (boolean), 'schema' (version identifier string), 'padding' (number of '=' padding characters in the base64 string), 'encoded_chars' (total character count of the base64 input), and 'decoded_bytes_estimate' (estimated byte count of the decoded data).","failureModes":["Invalid or malformed base64 string may return unexpected estimates or an error","Empty string input may cause a zero or null result","Non-base64 characters in input may lead to incorrect padding/size calculations","Payment failure via x402 protocol will block the request from completing"],"whenToPreferThis":"Choose this endpoint when you need a fast, lightweight estimate of a base64 string's decoded byte size without actually decoding it — useful for pre-flight checks before storage, memory allocation, or bandwidth planning. It is ideal for agents that need to reason about data size in pipelines involving base64-encoded content such as images, files, or API payloads, and want a pay-per-use model with no signup friction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:41.769Z","isFirstParty":false,"canonicalSlug":"delx-commerce-base64-size-estimator-dd288ec7"}