{"uid":"cap_D_XBoV4AbzOsGPFS5Bgv1","slug":"agent-format-base64-encode-decode-ad04b34c","name":"Agent Format – Base64 Encode/Decode","description":"Encoding utilities for AI agents: base64 encode/decode, hex encode/decode, URL slugify, JWT header/payload decode (no signature verify), and case conversion. Pay-per-request USDC via x402. No API keys, no accounts.","url":"https://agent-format.annushka1190.workers.dev/v1/base64","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"type":{"const":"http"},"method":{"enum":["POST"]},"bodyType":{"const":"json"}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_76WEL_ZbahlT9zMQZoVhA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes or decodes data using Base64 via a pay-per-request HTTP endpoint with no API keys required.","exampleAgentPrompt":"Can you base64-encode the string 'Hello, World!' for me so I can embed it in a config file?","exampleUseCases":[{"title":"Encode credentials for HTTP Basic Auth","prompt":"I need to base64-encode the string 'myuser:mypassword' so I can put it in an Authorization header — can you do that?"},{"title":"Decode an unknown base64 blob","prompt":"I've got this base64 string 'SGVsbG8gV29ybGQ=' and I want to know what the original text was — can you decode it?"},{"title":"Prepare binary payload for JSON embedding","prompt":"I need to embed some raw bytes as a base64 string inside a JSON body I'm sending to an API — can you encode 'binary-data-example' to base64 for me?"}],"resultDescription":"A JSON response with an 'ok' boolean and the transformed value — either a Base64-encoded string or the decoded plaintext result of the input, depending on the method chosen.","failureModes":["Missing 'input' field returns a 400-level error","Invalid or malformed Base64 string when decoding may return an error or garbled output","Payment failure or insufficient USDC balance prevents the call from completing","Unsupported method value may cause rejection"],"whenToPreferThis":"Choose this endpoint when you need a quick, serverless Base64 encode or decode without setting up API keys or accounts, especially in agentic workflows where pay-per-use USDC micropayments are preferred over subscription APIs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:36:02.892Z","isFirstParty":false}