← Back to all APIs

File Upload

$0.003

Host a file for agents: pay per upload, get a presigned PUT URL (15 min), upload the bytes directly, share the public URL. Price by size and retention (7 or 180 days), from $0.003. Max 5 GiB. Files auto-expire; HTML and executables download instead of rendering.

POST https://x402.freeq.one/tools/file_upload
Try it (x402 payment flow)

⚡ Try with your wallet — live payment

curl -X POST https://x402.freeq.one/tools/file_upload \ -H "Content-Type: application/json" \ -d '{"size_bytes":1048576,"retention_days":7,"content_type":"image/png"}'

Without payment, the server returns 402 Payment Required with x402 challenge details. A paying agent signs a USDC transaction on Base and retries with the payment header.