{"uid":"cap_qx6NFt6ov3ByLpHXynFZu","slug":"pennyrail-base64-encode-aefbbef5","name":"PennyRail Base64 Encode","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/f/encoding.base64-encode","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"string"}}},"responseSchema":{"type":"object","required":["operation","result"],"properties":{"result":{},"operation":{"type":"string"}},"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__BoofYj075WE6i4RBEesZ","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 API endpoint","exampleAgentPrompt":"Can you Base64 encode the string 'Hello, World!' for me using PennyRail's encoding service?","exampleUseCases":[{"title":"Encode API credentials for HTTP auth","prompt":"Base64 encode my username:password string 'myuser:s3cr3tpass' so I can use it in an HTTP Basic Auth header."},{"title":"Encode JSON payload for embedding","prompt":"I need to encode this JSON string '{\"key\":\"value\",\"count\":42}' into Base64 so I can safely embed it in a URL parameter."},{"title":"Prepare binary data string for transfer","prompt":"Take this raw data string '\\x00\\xFF\\xAB\\xCD\\xEF' and Base64 encode it so I can safely transmit it over a text-only channel."}],"resultDescription":"Returns a JSON object containing the operation name (e.g. 'base64-encode') and the result field holding the Base64-encoded string representation of the input.","failureModes":["Missing required 'input' field returns a validation error","Non-string input type may cause a 400 bad request","Payment failure (402) if x402 payment header is missing or insufficient","Very large input strings may hit size limits or timeout","Malformed request body returns an error response"],"whenToPreferThis":"Use this endpoint when you need a simple, on-demand Base64 encoding operation via a pay-per-call micropayment model (x402/USDC), especially in agent workflows where you want to avoid managing encoding libraries or dependencies, or where you need a verifiable, auditable external encoding step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:54:56.784Z","isFirstParty":false}