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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 5 min ago | Expected HTTP 402, got 308 | 308 | 101 ms | - |
| 4 h ago | Expected HTTP 402, got 308 | 308 | 97 ms | - |
| 9 h ago | Expected HTTP 402, got 308 | 308 | 108 ms | - |
| 13 h ago | Expected HTTP 402, got 308 | 308 | 102 ms | - |
| 17 h ago | Expected HTTP 402, got 308 | 308 | 46 ms | - |
| 21 h ago | Expected HTTP 402, got 308 | 308 | 12 ms | - |
| 26 h ago | Expected HTTP 402, got 308 | 308 | 18 ms | - |
| 30 h ago | Expected HTTP 402, got 308 | 308 | 44 ms | - |
| 34 h ago | Expected HTTP 402, got 308 | 308 | 56 ms | - |
| 38 h ago | Expected HTTP 402, got 308 | 308 | 14 ms | - |
| 42 h ago | Expected HTTP 402, got 308 | 308 | 64 ms | - |
| 46 h ago | Expected HTTP 402, got 308 | 308 | 219 ms | - |
| 2 days ago | Expected HTTP 402, got 308 | 308 | 18 ms | - |
| 2 days ago | Passed | 402 | 155 ms | $0.002 |
| 2 days ago | Passed | 402 | 438 ms | $0.002 |