{"uid":"cap_ONYWR_lkVJIALZGTY4xmo","slug":"omniapi-base64-encode-2d02df42","name":"OmniAPI Base64 Encode","description":"444 endpoints across 9+ chains. Crypto, AI, Social, Finance, Weather, Tools. Pay per call in USDC via x402 with 4 facilitators: Dexter, Meridian, FluxA, GoPlausible.","url":"https://omni-api-cyan.vercel.app/api/tools/base64/encode","method":"POST","headers":{},"bodySchema":{"type":"object","required":["query"],"properties":{"input":{"type":"string","description":"Input data for the endpoint"},"query":{"type":"string","description":"Search query or input text"},"params":{"type":"object","description":"Additional parameters"}}},"responseSchema":{"type":"object","description":"API response data"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.071681","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.071681/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.071681","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.071681","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_esL0NWUiPwewhR1DsdrMN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.071681","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes a string or binary input into Base64 format","exampleAgentPrompt":"Can you base64 encode the string 'Hello, World!' for me so I can embed it in a JSON payload?","exampleUseCases":[{"title":"Encode credentials for Basic Auth","prompt":"I need to base64 encode the string 'myuser:mypassword' to use it in an HTTP Basic Authorization header — can you do that?"},{"title":"Embed binary data in JSON","prompt":"Please base64 encode this raw text 'image_data_placeholder_xyz' so I can safely include it as a string field inside a JSON document."},{"title":"Prepare email attachment encoding","prompt":"Can you encode the text 'Dear Team, please find the report attached.' to base64 so I can format it as a MIME email body part?"}],"resultDescription":"Returns a base64-encoded representation of the provided input string or data, delivered as a JSON object containing the encoded output string.","failureModes":["Missing required 'query' field returns validation error","Oversized input may be rejected or time out","Malformed JSON request body returns 400 error","Payment failure via x402 (insufficient USDC balance) blocks the request","Network or Vercel cold-start timeout on large payloads"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call base64 encoding operation without standing up your own infrastructure, especially within a broader x402 micropayment workflow already in use on OmniAPI. It is less appropriate than a local library for high-volume batch encoding where per-call costs accumulate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:44:36.137Z","isFirstParty":false}