{"uid":"cap_c9flBIt_7Gl2jzN1eSFKB","slug":"relaystation-base64-encode-decode-b1eca4f4","name":"RelayStation Base64 Encode/Decode","description":"$0.0002/MB. Base64 encode or decode a string — simple, bounded, fast. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/utils/base64","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"data":{"type":"string","minLength":1},"mode":{"enum":["encode","decode"],"type":"string"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rl_lYiJhGT9HS5ONuc6As","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Base64-encodes or decodes a string, returning the transformed result instantly at a per-MB rate.","exampleAgentPrompt":"Can you base64-encode this string for me: 'Hello, World! This is my API payload' — I need the encoded result to embed in a JSON request body.","exampleUseCases":[{"title":"Encode payload for API auth","prompt":"Base64-encode this credential string for me so I can put it in a Basic Auth header: 'myusername:s3cr3tpassword'"},{"title":"Decode received base64 message","prompt":"I got this base64 string from a webhook and I need to know what it says — can you decode it? SGVsbG8gZnJvbSBSZWxheVN0YXRpb24h"},{"title":"Prepare image data for embedding","prompt":"Take this raw image data string and base64-encode it so I can embed it in an HTML img src tag as a data URI."}],"resultDescription":"Returns the base64-encoded or base64-decoded version of the input string. The response is a simple, bounded text result — the transformed string — delivered synchronously with no side effects.","failureModes":["Invalid base64 input when decoding (malformed characters or incorrect padding) — returns an error response","Oversized payload exceeding size limits — may return a payload-too-large error","Missing or malformed request body — returns a 400-level error","Payment/x402 failure if insufficient USDC balance — call is rejected before processing"],"whenToPreferThis":"Choose this endpoint when you need a reliable, metered, no-setup base64 encode/decode operation within an agentic workflow that already uses x402 micropayment infrastructure. Ideal for one-off conversions where spinning up a local utility is unnecessary or unavailable in the execution environment. The per-MB pricing makes it cost-effective for small strings (typical API payloads).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:49:06.662Z","isFirstParty":false}