{"uid":"cap_pTQ17onbfvprZsd-m6uiC","slug":"penny-api-base64-encoder-decoder-fd5d55e2","name":"Penny API – Base64 Encoder/Decoder","description":"Pay-per-call tools for agents (x402, 0.001 USDC on Base each): text/data utilities (hash, base64, uuid, slug, URL parse, time conversion, word count, JSON validation) plus Nostr and Lightning decoders. Run by Penny.","url":"https://pennyagent.pythonanywhere.com/paid/base64?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"}}},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"mode":"enc","result":"aGVsbG8="}},"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_JyKLRjJupZWFVRPXaSOFj","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 encoding, paid per call via x402 micropayment (0.001 USDC on Base).","exampleAgentPrompt":"Can you base64-encode the string 'Hello, World!' for me?","exampleUseCases":[{"title":"Encoding API credentials for auth header","prompt":"Base64-encode the string 'myuser:mypassword' so I can use it in a Basic Authorization header."},{"title":"Decoding an unknown base64 token","prompt":"I got this base64 string 'aGVsbG8gd29ybGQ=' — can you decode it back to plain text?"},{"title":"Encoding a JSON payload for transmission","prompt":"Encode this JSON as base64 so I can embed it safely in a URL parameter: '{\"userId\":42,\"role\":\"admin\"}'."}],"resultDescription":"Returns a JSON object with two fields: 'mode' (either 'enc' for encode or 'dec' for decode) and 'result' (the transformed string — the Base64-encoded or Base64-decoded output).","failureModes":["Missing 'input' parameter returns 4xx validation error","Payment not supplied or invalid results in HTTP 402 Payment Required","Invalid Base64 string when decoding (malformed input) may return error or garbage output","Network timeout on PythonAnywhere free tier under load"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-use Base64 encode/decode operation without setting up a local library or free-tier rate-limited service, especially in an agent workflow that already supports x402 micropayments on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:36:55.920Z","isFirstParty":false,"canonicalSlug":"penny-api-base64-encoder-decoder-fd5d55e2"}