{"uid":"cap_8lptg4F7oOD7MiltfHRST","slug":"x402-base64-encode-decode-utility-188c3445","name":"x402 Base64 Encode/Decode Utility","description":"66 pay-per-call APIs: AI text/image generation ($0.01), Polymarket odds, crypto prices, DeFi yields, FX rates, weather, IP/geo, FBI wanted, SEC tickers, clinical trials, 250M academic papers, Stack Overflow, meme-coin launchpads (pump.fun, Clanker, Four.meme, SunPump), tokenized stocks, Solana top 100, and 40+ more. $0.005/call standard. USDC on Base and Solana via x402.","url":"https://workspace-x402-paywall.onrender.com/utils/base64?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"object"},"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_hptY58fx9hV4ajLGZr7p9","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 a string using Base64 for $0.001 USDC per call via x402 micropayment on Base or Solana mainnet.","exampleAgentPrompt":"Can you base64-encode the string 'Hello, World!' for me using a pay-per-call micro-utility?","exampleUseCases":[{"title":"Encode credentials for HTTP header","prompt":"Base64-encode the string 'myuser:mypassword123' so I can use it in a Basic Auth header."},{"title":"Decode an incoming API token payload","prompt":"I got this base64 string from an API response — can you decode it back to readable text? The value is 'eyJ1c2VyIjoiYWxpY2UiLCJyb2xlIjoiYWRtaW4ifQ=='"},{"title":"Encode binary data for JSON embedding","prompt":"Encode the text 'SELECT * FROM users WHERE id=1;' to base64 so I can safely embed it in a JSON field."}],"resultDescription":"Returns a JSON object containing the result of the base64 operation — either the Base64-encoded version of the input string or the decoded plaintext, depending on the 'op' parameter chosen.","failureModes":["Missing or invalid 'op' parameter (not 'encode' or 'decode') returns an error","Missing 'data' or 'text' field results in a bad request error","Payment failure or insufficient USDC balance causes a 402 Payment Required response","Malformed base64 input when decoding may return a decoding error","Service unavailability on Render free tier may cause timeouts or cold-start delays"],"whenToPreferThis":"Choose this endpoint when you need a quick, serverless base64 encode/decode operation and are operating within a crypto-native or x402-enabled payment flow using USDC on Base or Solana. It is ideal for AI agents that already handle micropayments via x402 and want a utility call without setting up their own encoding library call. Less appropriate if you can perform base64 natively in code without a network call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:42:17.666Z","isFirstParty":false,"canonicalSlug":"x402-base64-encode-decode-utility-188c3445"}