30trust / 100

Dev Base64 Encode

by AgentTools in Developer tools

x402 APIFailing, checked 5 min ago

Encode text to base64 or decode base64 back to text. Full UTF-8 support including emoji and non-Latin scripts. Use this when an agent needs to uTF-8 safe base64 in both directions.

GET https://agenttools-hub.vercel.app/api/v1/dev/base64-encode

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
13.3%
Response time
155 ms typical, 155 ms slowest 5%
Last check
5 min ago: Expected HTTP 402, got 308
Next check
in 57 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/dev/base64-encode?direction=encode&text=Hello%2C+world%21"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fdev%2Fbase64-encode
const res = await pay("https://agenttools-hub.vercel.app/api/v1/dev/base64-encode?direction=encode&text=Hello%2C+world%21");
console.log(await res.json());

Example input

{
  "direction": "encode",
  "text": "Hello, world!"
}

Example output

{
  "result": {
    "answer": "SGVsbG8sIHdvcmxkIQ==",
    "answerLabel": "Base64",
    "details": [
      {
        "label": "Input length",
        "value": "13 characters"
      },
      {
        "label": "Encoded length",
        "value": "20 characters"
      }
    ],
    "steps": [
      "UTF-8 encode the input",
      "Map each 3-byte group to 4 base64 characters"
    ],
    "value": null
  },
  "tool": "base64-encode"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 min agoExpected HTTP 402, got 308308101 ms-
4 h agoExpected HTTP 402, got 30830897 ms-
9 h agoExpected HTTP 402, got 308308108 ms-
13 h agoExpected HTTP 402, got 308308102 ms-
17 h agoExpected HTTP 402, got 30830846 ms-
21 h agoExpected HTTP 402, got 30830812 ms-
26 h agoExpected HTTP 402, got 30830818 ms-
30 h agoExpected HTTP 402, got 30830844 ms-
34 h agoExpected HTTP 402, got 30830856 ms-
38 h agoExpected HTTP 402, got 30830814 ms-
42 h agoExpected HTTP 402, got 30830864 ms-
46 h agoExpected HTTP 402, got 308308219 ms-
2 days agoExpected HTTP 402, got 30830818 ms-
2 days agoPassed402155 ms$0.002
2 days agoPassed402438 ms$0.002