{"uid":"cap_sMYzysDSAPVcWSEv3HWyh","slug":"one-engine-base64-encode-d8f672ec","name":"ONE Engine Base64 Encode","description":"Encode UTF-8 text as standard Base64 or Base64URL","url":"https://one-search.one-engine.workers.dev/v1/base64/encode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"UTF-8 text to encode"},"url_safe":{"type":"boolean","description":"Return unpadded Base64URL when true"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0009","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.0009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Z3d-T-D3QOB8NwDB7Omnv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0009","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes UTF-8 text as standard Base64 or URL-safe Base64URL (unpadded) via a pay-per-call API","exampleAgentPrompt":"Base64-encode the text 'Hello, World!' for me — use the URL-safe format so it's safe to embed in a URL without padding.","exampleUseCases":[{"title":"Encode API credentials for HTTP Basic Auth","prompt":"I need to encode the string 'myuser:mypassword' as standard Base64 so I can put it in an Authorization header for a Basic Auth request."},{"title":"Prepare JWT payload for URL embedding","prompt":"Can you base64url-encode this JSON string '{\"sub\":\"user123\",\"role\":\"admin\"}' using the URL-safe unpadded format so I can use it as part of a JWT or URL parameter?"},{"title":"Encode binary config data as base64 for storage","prompt":"Take this text 'apiKey=abc123&secret=xyz789' and encode it as standard Base64 so I can store it safely in a config field that expects base64 values."}],"resultDescription":"Returns a Base64 or Base64URL-encoded string representation of the input UTF-8 text. When url_safe is true, the output uses the URL-safe alphabet (- and _ instead of + and /) and omits padding characters (=).","failureModes":["Non-UTF-8 or malformed text input may cause a 400 error","Missing required 'text' field returns validation error","Network or worker availability issues may cause 5xx responses","Payment failure or insufficient funds returns 402 status"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a lightweight, pay-per-call Base64 or Base64URL encoding utility without managing local encoding libraries or infrastructure. Ideal for agents operating in environments where running code is not possible and a simple HTTP call suffices. The url_safe option makes it directly useful for JWT construction, URL parameter encoding, and data URI preparation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T02:57:03.233Z","isFirstParty":false,"canonicalSlug":"one-engine-base64-encode-d8f672ec"}