{"uid":"cap_Fl7sG6qlKospO0kZoLxgF","slug":"centralcity-ai-base64-encoder-decoder-4c959f33","name":"centralcity.ai Base64 Encoder/Decoder","description":"Encodes a text as Base64, or decodes Base64 back to its UTF-8 text.","url":"https://centralcity.ai/api/public/x402/off_h4vgmisbo4i2yh76?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["encode","decode"],"type":"string","description":"encode or decode the text."},"text":{"type":"string","description":"The text to encode (at most 48 KiB) or the Base64 to decode, at most 64 KiB."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7XTJ7TmPtHOWTE5EY9zOE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes UTF-8 text to Base64 or decodes a Base64 string back to its original UTF-8 text.","exampleAgentPrompt":"Can you Base64-encode this text for me: 'Hello, World! This is a test message.' — I need the encoded string to embed in a data URI.","exampleUseCases":[{"title":"Encode credentials for HTTP Basic Auth","prompt":"I need to Base64-encode the string 'myusername:mysecretpassword' so I can use it in an HTTP Basic Authorization header."},{"title":"Decode a Base64 JWT payload","prompt":"Can you decode this Base64 string back to readable text? Here it is: eyJ1c2VySWQiOiAxMjMsICJyb2xlIjogImFkbWluIn0="},{"title":"Encode configuration blob for embedding","prompt":"Please Base64-encode this JSON config so I can safely embed it as a data attribute in HTML: '{\"theme\":\"dark\",\"lang\":\"en\",\"debug\":false}'"}],"resultDescription":"Returns the transformed string — either a Base64-encoded representation of the input text (up to 48 KiB), or the decoded UTF-8 text from a valid Base64 input (up to 64 KiB).","failureModes":["Input exceeds size limit (48 KiB for encode, 64 KiB for decode) causing rejection","Invalid or malformed Base64 string passed to decode mode causing an error","Mode field missing or not set to 'encode' or 'decode' causing validation failure","Non-UTF-8 characters in decoded output may cause errors if source was binary data"],"whenToPreferThis":"Use this endpoint when an AI agent needs a simple, reliable, pay-per-call Base64 encode or decode operation without setting up local tooling. Ideal for agents in sandboxed environments where native encoding libraries are unavailable, or when encoding/decoding is a one-off step in an automated workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:39:01.832Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-base64-encoder-decoder-9a7f09bc"}