{"uid":"cap_tfnNqAPPbOG1uL-Tb8bmP","slug":"apex-edge-base64-utility-cff27070","name":"apex-edge Base64 Utility","description":"x402-paid inference + audit endpoints","url":"https://apex-edge.pearceshrader.workers.dev/api/v1/util/base64?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","properties":{"queryParams":{"type":"object","properties":{"input":{"type":"string"},"decode":{"type":"boolean"}}}}},"output":{"type":"object","properties":{"example":{"status":"ok"}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GjfP8wTl6vsonNMKoZDfB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes or decodes data using Base64 via a paid x402 inference and audit endpoint","exampleAgentPrompt":"Can you Base64 encode this string for me: 'Hello, World! This is my secret payload' — I need the encoded result to embed in an API header.","exampleUseCases":[{"title":"Encode credentials for API auth","prompt":"I need to Base64 encode my username and password combined as 'myuser:mypassword123' so I can use it in a Basic Auth header — can you encode that for me?"},{"title":"Decode a Base64 response payload","prompt":"I got back this Base64 string from an API: 'SGVsbG8gV29ybGQh' — can you decode it so I can read the actual content?"},{"title":"Encode JSON body for transmission","prompt":"I need to encode this JSON blob in Base64 before I send it over a legacy system: '{\"user\":\"alice\",\"role\":\"admin\"}' — please convert it."}],"resultDescription":"A JSON object containing the Base64-encoded or decoded result of the submitted input data, returned after a successful x402 micropayment of $0.001 USDC is processed.","failureModes":["Invalid or malformed input payload returns an error response","Payment failure (insufficient USDC balance or x402 handshake failure) blocks the request","Malformed Base64 string on decode may return a decoding error","Empty input body may result in a validation error","Network timeout on the Cloudflare Worker edge node"],"whenToPreferThis":"Choose this endpoint when you need a metered, auditable Base64 encode/decode operation in an agent pipeline that already uses the x402 micropayment protocol and requires a verifiable audit trail of utility calls. It is particularly useful in automated workflows where usage accountability and per-call billing are required, as opposed to a free local or library-based Base64 operation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:36:33.076Z","isFirstParty":false,"canonicalSlug":"apex-edge-base64-utility-cff27070"}