StableUpload File Upload Slot Purchase is a paid API for AI agents from StableUpload at stableupload.dev, paid per call via x402 or MPP, $0.02/call, status healthy (last checked 2026-10-10, last successful call 2026-09-18).
Purchases a file upload slot and returns a pre-signed URL for the agent to upload a file directly to StableUpload CDN storage.
Buy an upload slot. Agent uploads file via returned URL.
Returns an uploadId, a pre-signed uploadUrl (PUT or POST method) valid until uploadUrlExpiresAt, a permanent publicUrl where the file will be accessible, the maximum allowed file size in bytes, the expiry date of the hosted file, and a ready-to-use curl command for performing the upload.
POSThttps://stableupload.dev/api/upload?utm_source=zero.xyzUse this endpoint when you need to host a file publicly on a CDN with a stable URL for 6 months (or 7 days for short-term workflow use), especially when the file will be shared, linked, or served as a static asset. Prefer this over site hosting endpoints when uploading single files rather than full zip-based static sites.
{
"tier": "10mb",
"filename": "test-document.pdf",
"contentType": "application/pdf"
}| Field | Type | Description |
|---|---|---|
| tierrequired | string | Upload tier. Default 6-month tiers: 10mb ($0.02), 100mb ($0.20), 1gb ($2.00). Short-term 7-day workflow tiers: short-10mb ($0.005), short-100mb ($0.02), short-1gb ($0.10), short-5gb ($0.50, file uploads only). |
| filenamerequired | string | Name of the file to upload |
| contentTyperequired | string | MIME type of the file (e.g. image/png, video/mp4) |
| policyTtlSeconds | integer | Optional upload URL/form expiration in seconds, 60-86400. Use longer TTLs only when reserving an output slot for a downstream service. |
{
"maxSize": 10485760,
"uploadId": "m2he4b6q8h",
"expiresAt": "2026-12-06T04:00:51.136Z",
"publicUrl": "https://f.stableupload.dev/m2he4b6q8h/test-document.pdf",
"uploadUrl": "https://f.stableupload.dev/m2he4b6q8h/test-document.pdf?t=09ph_FsyGIX6Gq11FaJl",
"curlExample": "curl -X PUT \"https://f.stableupload.dev/m2he4b6q8h/test-document.pdf?t=09ph_FsyGIX6Gq11FaJl\" -H \"Content-Type: application/pdf\" --data-binary @'test-document.pdf'",
"uploadMethod": "put",
"uploadUrlExpiresAt": "2026-06-09T05:00:51.965Z"
}| Field | Type | Description |
|---|---|---|
| txHash | string | |
| maxSizerequired | number | |
| postUrl | string | |
| uploadIdrequired | string | |
| expiresAtrequired | string | |
| publicUrlrequired | string | |
| uploadUrlrequired | string | |
| postFields | object | |
| curlExamplerequired | string | |
| uploadMethodrequired | string | |
| uploadUrlExpiresAtrequired | string |
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"