78trust / 100

Base64 Encode Url

by api.strale.io in AI models & inference

x402 APIPassing, checked 1 h ago

Fetch a URL and return content as base64. Useful for embedding images, PDFs in API calls. Returns base64, content type, data URI.

GET https://api.strale.io/x402/base64-encode-url

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
279 ms typical, 310 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.strale.io/x402/base64-encode-url"
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%2Fapi.strale.io%2Fx402%2Fbase64-encode-url
const res = await pay("https://api.strale.io/x402/base64-encode-url");
console.log(await res.json());

Example input

{
  "url": {
    "description": "URL to fetch and encode",
    "required": true,
    "type": "string"
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402271 ms$0.022
5 h agoPassed402281 ms$0.022
9 h agoPassed402130 ms$0.022
12 h agoPassed402293 ms$0.022
16 h agoPassed402310 ms$0.022
19 h agoPassed402250 ms$0.022
23 h agoPassed402295 ms$0.022
26 h agoPassed402281 ms$0.022
30 h agoPassed402279 ms$0.022
34 h agoPassed402286 ms$0.022
37 h agoPassed402124 ms$0.022
42 h agoPassed402130 ms$0.022
45 h agoPassed402130 ms$0.022
2 days agoPassed402405 ms$0.022