{"uid":"cap_TTDXLsG2Zc09jmZP06zwL","slug":"centralcity-ai-base64-encode-decode-c42621c4","name":"centralcity.ai Base64 Encode/Decode","description":"Encodes a text as Base64, or decodes Base64 back to its UTF-8 text.","url":"https://centralcity.ai/api/public/x402/off_sukajade7wo45zxx?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_4hQDGkdhPL7-j6gpE3Ljj","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 Base64-encode the text 'Hello, World! This is my secret message.' for me?","exampleUseCases":[{"title":"Encoding API credentials for HTTP auth","prompt":"I need to Base64-encode the string 'myuser:mypassword123' so I can use it in a Basic Auth header — can you encode that for me?"},{"title":"Decoding an unknown Base64 payload","prompt":"I received this Base64 string in a webhook and need to see what it says — can you decode 'SGVsbG8gV29ybGQh' back to plain text?"},{"title":"Preparing data for embedding in a data URI","prompt":"I have some JSON text I need to embed in a data URI, so please Base64-encode this: '{\"key\":\"value\",\"flag\":true}'"}],"resultDescription":"Returns a JSON object containing the transformed string — either the Base64-encoded representation of the input text, or the UTF-8 decoded text from a valid Base64 input.","failureModes":["Invalid Base64 input when decoding (malformed or non-Base64 characters) returns an error","Input text exceeds 48 KiB for encode or 64 KiB for decode, resulting in a size limit error","Missing required 'mode' or 'text' fields returns a validation error","Non-UTF-8 output after decoding (binary data) may result in an error or garbled output"],"whenToPreferThis":"Use this endpoint when you need a simple, reliable, pay-per-call Base64 encode or decode operation without setting up a local library or runtime — ideal for agents operating in environments where code execution is unavailable, or when you want a consistent API-driven transformation in a workflow pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:37:17.183Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-base64-encode-decode-c42621c4"}