util_base64 · Util base64
read-onlyUse when you need base64 in or out: encode UTF-8 text to base64 (standard or url_safe) or decode base64 back to text (hex when the bytes are not UTF-8), up to 64 KB, no external call. Returns the paid x402 request for your input (GET /util/base64, $0.001 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. First call each day returns the data itself, free; later calls return the paid request.
Input schema
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"encode",
"decode"
],
"default": "encode",
"description": "encode or decode"
},
"input": {
"type": "string",
"maxLength": 65536,
"description": "Text to encode, or base64 to decode"
},
"url_safe": {
"type": "boolean",
"default": false,
"description": "Use the url-safe alphabet without padding"
}
},
"required": [
"input"
]
}