File Hosting APIs for AI Agents

Upload any file and get a shareable link, or deploy a static website from a zip archive — no subscriptions, no API keys, just micropayments.

1API
10endpoints
$0.02per call
2mo agoupdated
Pay per callNo API keysUSDC · Base
Get started with AgentCash →
npx agentcash try https://stableupload.dev
StableUpload
stableupload.dev

How It Works

Call the upload endpoint with a small micropayment to receive a one-time upload URL. Push your file to that URL and get back a permanent, shareable download link.

For static sites, upload a zip archive containing your HTML, CSS, and JavaScript. Activate the site to extract the archive and serve it on a subdomain with TLS included.

Static Site Deployment

Deploy a full static website by uploading a zip file and calling the activate endpoint. Your site goes live on a dedicated subdomain with automatic TLS provisioning.

Connect a custom domain to your site and monitor TLS certificate status via the domain status endpoint. Update your site by uploading a new zip and reactivating — zero downtime.

Renew site hosting in six-month increments. Pricing scales with the tier and number of renewal periods you purchase in a single call.

Authentication and Payments

Paid endpoints use the x402 and mpp protocols for micropayments. No API key signup is needed — your AgentCash wallet handles authentication and payment in one step.

Management endpoints like listing uploads, checking download details, and managing domains use wallet-based sign-in (SIWX), keeping your resources secure without traditional credentials.

File Management

List all files associated with your wallet using the uploads endpoint. Retrieve metadata and download details for any individual file by its upload ID.

Each upload is tied to your wallet address, giving you a simple inventory of hosted assets without needing a separate database or dashboard.

Use cases

AI agent artifact storage

Let autonomous AI agents store generated reports, images, or datasets by calling the upload endpoint and receiving a shareable link to pass downstream.

Programmatic static site deployment

Deploy documentation sites, landing pages, or dashboards from CI/CD pipelines by zipping build output and pushing it to the site endpoint.

Temporary file sharing for workflows

Share large files between microservices or team members by uploading once and distributing the permanent download link across systems.

Custom domain microsites

Launch branded microsites on your own domain by connecting it to a deployed static site, with automatic TLS certificate provisioning.

Periodic site updates from build pipelines

Re-deploy a static site by uploading a new zip and reactivating, enabling automated content refreshes from scheduled builds.

Endpoints

POST
/api/upload
Buy an upload slot. Agent uploads file via returned URL.
$0.02-2.00 USD
GET
/api/uploads
List uploads for the authenticated wallet
GET
/api/download/:uploadId
Get upload details by ID
POST
/api/site
Buy a site upload slot. Upload a zip file, then activate to extract and serve as a static site.
$0.02-2.00 USD
PUT
/api/site
Get a new upload URL for an existing site. Upload a new zip, then call POST /api/site/activate to re-extract.
POST
/api/site/renew
Renew a site for count × 6 months. Price = tier price × count.
$0.02-20.00 USD
POST
/api/site/activate
Activate an uploaded zip site. Extracts the zip and makes the site live at a subdomain.
POST
/api/site/domain
Connect a custom domain to a site. Creates TLS cert and routes the hostname to the site.
DELETE
/api/site/domain
Detach a custom domain from a site.
GET
/api/site/domain/status
Check TLS provisioning status for a custom domain. Poll until ssl is 'active'.

Frequently asked questions

What does it cost to upload a file?

Each upload costs between $0.02 and $2.00 USD, paid as a micropayment at request time. Static site uploads and renewals have their own pricing tiers, with renewals ranging up to $20.00 for multi-period extensions.

Do I need an API key to use these endpoints?

No. Paid endpoints are authenticated via x402/mpp micropayments from your AgentCash wallet. Management endpoints use wallet-based sign-in (SIWX). There is no separate API key registration process.

How do static site deployments work?

You purchase a site upload slot, upload a zip file containing your static assets, then call the activate endpoint. The zip is extracted and served on a subdomain with TLS. To update, upload a new zip and reactivate.

Can I use a custom domain for my static site?

Yes. The domain endpoint lets you connect a custom hostname to your site. A TLS certificate is provisioned automatically. You can poll the domain status endpoint until the certificate is active.

How do I list or retrieve my uploaded files?

Call GET /api/uploads with wallet-based authentication to list all your uploads. Use GET /api/download/:uploadId to retrieve metadata and download details for a specific file.

How long are sites hosted before renewal is needed?

Sites can be renewed in six-month increments using the renew endpoint. You specify a count to purchase multiple periods at once, and the price equals the tier price multiplied by that count.

This page is compiled from live OpenAPI specs published by each API provider. Content last reviewed Apr 7, 2026 by the AgentCash team. How we build these pages.

File Hosting APIs for AI Agents — Pay Per Call, No API Keys | AgentCash