{"uid":"cap_okq7cYt7wXIMldd9hBfRw","slug":"base64-encode-42dc47c8","name":"Base64 Encode","description":"Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.","url":"https://x402-gateway-production-1f21.up.railway.app/base64/encode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["text"],"properties":{"text":{"type":"string","maxLength":250000}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"status":"ready"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_6mAqwFs3wgG3HxlbkqqyL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes arbitrary text input into its Base64 representation via a machine-payable HTTP endpoint.","exampleAgentPrompt":"Can you base64 encode this text for me: 'Hello, world! This is my secret payload to embed in a JSON field.'","exampleUseCases":[{"title":"Encode API credentials for auth header","prompt":"Base64 encode the string 'myusername:mysecretpassword' so I can use it in a Basic Auth header."},{"title":"Embed binary-safe content in JSON","prompt":"I need to encode this XML snippet into base64 so I can safely embed it as a string inside a JSON payload: '<user><id>42</id><name>Alice</name></user>'"},{"title":"Prepare text payload for data URI","prompt":"Can you encode this SVG markup into base64 so I can use it as a data URI in an HTML img tag? The SVG is: '<svg xmlns=\"http://www.w3.org/2000/svg\"><circle r=\"50\"/></svg>'"}],"resultDescription":"Returns a JSON response containing the Base64-encoded representation of the submitted text string, ready for use in headers, URIs, or any context requiring Base64 encoding.","failureModes":["Input text exceeds 250,000 character limit — request rejected","Missing required 'text' field in request body — validation error","Invalid bodyType enum value — request rejected","Payment failure or insufficient USDC balance — 402 response blocking execution","Network timeout on Railway-hosted service — connection error"],"whenToPreferThis":"Choose this endpoint when you need a quick, machine-payable, on-demand Base64 encoding operation without standing up your own encoding service, especially in agentic pipelines already using the x402 payment protocol on this platform that also need checksums, crypto data, or web extraction from the same gateway.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:39:47.723Z","isFirstParty":false,"canonicalSlug":"base64-encode-42dc47c8"}