{"uid":"cap_-QkUu_YReHb5N_Iped2Ac","slug":"pennyrail-base64-encode-3c6d3ffb","name":"PennyRail Base64 Encode","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/encoding.base64-encode--encode-base64","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"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_7G4z2KhPE3xnfkujuZb26","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 an input string to Base64 format via a paid micro-API endpoint","exampleAgentPrompt":"Can you base64-encode the string 'Hello, World!' for me using a paid micro-API?","exampleUseCases":[{"title":"Encode API credentials for HTTP auth","prompt":"I need to base64-encode my username and password combined as 'myuser:mypassword' so I can use it in a Basic Auth header — can you do that for me?"},{"title":"Encode payload for data transport","prompt":"Take this JSON string '{\"id\":42,\"name\":\"Alice\"}' and base64-encode it so I can safely embed it in a URL or header."},{"title":"Prepare binary data for email attachment","prompt":"I have a raw text blob I need to base64-encode before embedding it in a MIME email body — can you encode this string for me: 'PennyRail test payload'?"}],"resultDescription":"Returns a JSON object containing the Base64-encoded representation of the provided input string. The response schema is open (additionalProperties: true), so the exact field name for the encoded value may vary, but the encoded string is the primary output.","failureModes":["Missing 'input' field causes a validation error or 400 response","Non-string or null input may cause encoding failure","Payment failure (x402) if USDC balance is insufficient or wallet not configured","Vercel cold-start latency on first invocation","Unexpected response structure due to open additionalProperties schema"],"whenToPreferThis":"Choose this endpoint when you need a simple, stateless Base64 encoding operation accessible via a paid HTTP micro-API (x402/USDC), especially in agent workflows where calling a local encoding library is not an option or you want a network-accessible, auditable encoding step. Prefer alternatives (local libraries, free public APIs) if cost per call matters at scale, since this charges $0.001 USDC per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:52:48.626Z","isFirstParty":false}