{"uid":"cap_3NeIMIDoCO4T5j9iwIW_H","slug":"centralcity-ai-base64-encoder-decoder-9a7f09bc","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_4hpyjh5a55isbz52?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_fx8VTC387DREDfEXkoyHK","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 Base64 back to UTF-8 text.","exampleAgentPrompt":"Can you encode this text to Base64: 'Hello, World! This is my secret payload.' — I need the Base64 string back.","exampleUseCases":[{"title":"Encode API credentials for auth header","prompt":"Encode 'myuser:mypassword' to Base64 so I can put it in a Basic Authorization header for an HTTP request."},{"title":"Decode mystery Base64 blob","prompt":"Can you decode this Base64 string for me and tell me what it says: 'SGVsbG8sIFdvcmxkISBUaGlzIGlzIGEgdGVzdC4='"},{"title":"Encode JSON payload for embedding","prompt":"I need to encode this JSON as Base64 so I can safely embed it in a URL parameter: '{\"userId\":\"abc123\",\"role\":\"admin\"}'"}],"resultDescription":"Returns the transformed text: either the Base64-encoded string of the input UTF-8 text, or the decoded UTF-8 string of the input Base64 value. The response is a plain string result ready to use directly.","failureModes":["Invalid Base64 input when decoding (non-Base64 characters) may return an error","Input text exceeding 48 KiB (encode) or 64 KiB (decode) will be rejected","Missing or invalid 'mode' enum value will cause a validation error","Binary data that cannot be represented as UTF-8 may fail on decode"],"whenToPreferThis":"Use this endpoint when an AI agent needs to perform Base64 encoding or decoding on the fly without executing local code or relying on a language runtime. It is especially useful in sandboxed environments, automated pipelines, or when the agent lacks access to a code interpreter. Prefer this over manual computation or LLM-generated Base64, which can be error-prone for non-trivial inputs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:40:34.956Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-base64-encoder-decoder-9a7f09bc"}