File upload that returns a signed download link valid for 10 days
api.koinelix.com/v1/files
File upload that returns a signed download link valid for 10 days. Use when an agent holds a file and needs to hand it to a person, another agent or a tool as a URL: file sharing for 1 byte to 10 MiB. The request is multipart/form-data with one part named file, or JSON with the file as base64 (up to 8 MiB). Price: 0.004 USDC per file, paid with x402; no account or API key is needed.
POST
https://api.koinelix.com/v1/filesUptime100% of 1 check in 30 days
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://api.koinelix.com/v1/files", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"file":"<binary file, 1 byte to 10 MiB, sent as the single multipart part named file>"}),
});
console.log(await res.json());Example input
{
"file": "<binary file, 1 byte to 10 MiB, sent as the single multipart part named file>"
}