URL to Base64
Fetch any public URL and return its content as base64 with the content type and a ready-to-use data URI. Embed images, PDFs and files directly in LLM and API calls without downloading them yourself. Clean JSON.
- Price per call
- $0.01
- Chain
- Base
- Method
- GET
- Paid calls · 30 days
- 12
Call it from code
This API is run by its own provider and paid directly through x402. We list it so you can find it; we don't route or hold the payment.
import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
const client = new x402Client();
registerExactEvmScheme(client, { signer: agentAccount });
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay("https://base64encode.use.x402atlas.com/base64-encode-url", { method: "GET" });
console.log(await res.json());https://base64encode.use.x402atlas.com/base64-encode-url