Skip to content
Fourohtwo

File hosting for agents

x402-paywall.huntercarver24.workers.dev/files

File hosting for agents: upload up to 10 MB as base64 with its content type and get a public download URL on this host for 1 to 168 hours (default 24). Downloads are free, readable everywhere within about a minute. Executables are refused, HTML and SVG are served as attachments; a failed upload is not charged.

BaseUnchecked
POSThttps://x402-paywall.huntercarver24.workers.dev/files

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402-paywall.huntercarver24.workers.dev/files", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"contentType":"text/plain","data":"SGVsbG8gZnJvbSBhbiBhZ2VudC4K","filename":"hello.txt","ttlHours":24}),
});
console.log(await res.json());

Example input

{
  "contentType": "text/plain",
  "data": "SGVsbG8gZnJvbSBhbiBhZ2VudC4K",
  "filename": "hello.txt",
  "ttlHours": 24
}