{"uid":"cap_ra9irwAfZ1p5A76-oJDSd","slug":"base64-encode-decode-api-c57fe1ba","name":"Base64 Encode/Decode API","description":"Base64 encode/decode","url":"https://compute-api-production-245d.up.railway.app/base64?utm_source=zero.xyz","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":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"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.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AlRJ90uoESWfzFVZUq555","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes or decodes strings using Base64 encoding via a paid HTTP endpoint","exampleAgentPrompt":"Can you base64 encode the string 'Hello, World!' for me?","exampleUseCases":[{"title":"Encode credentials for API auth","prompt":"Base64 encode 'myusername:mypassword' so I can use it in a Basic Auth header."},{"title":"Decode an embedded config payload","prompt":"I have this base64 string 'eyJrZXkiOiJ2YWx1ZSJ9' — can you decode it back to plain text for me?"},{"title":"Encode file content for JSON embedding","prompt":"Take this text 'PK\nline1\nline2' and base64 encode it so I can safely embed it inside a JSON payload."}],"resultDescription":"Returns the Base64-encoded or decoded version of the input string, depending on the operation specified in the request body.","failureModes":["Missing required 'input' field returns a 400-level error","Invalid body type (not json/form-data/text) causes request rejection","Malformed Base64 input during decode may return an error or garbled output","Network timeout or Railway platform downtime returns 5xx","Insufficient USDC balance causes x402 payment failure, blocking the request"],"whenToPreferThis":"Choose this endpoint when you need a quick, reliable Base64 encode/decode operation as part of an automated agent workflow and are already integrated with the x402 micropayment protocol on Base. It is particularly useful when you need a hosted, stateless conversion without running your own compute, and when $0.001 USDC per call is acceptable. Prefer a local library instead if you need to avoid network latency or payment overhead for high-volume encoding tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T06:38:46.338Z","isFirstParty":false,"canonicalSlug":"base64-encode-decode-api-c57fe1ba"}