{"uid":"cap_DLqVCIzKMf2Je6MKxvVpg","slug":"stable-upload-file-storage-api-4198d491","name":"Stable Upload File Storage API","description":"Buy an upload slot. Agent uploads file via returned URL.","url":"https://stable-upload-git-mason-1140-merit-systems.vercel.app/api/upload","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["filename","contentType","tier"],"properties":{"tier":{"enum":["10mb","100mb","1gb","short-10mb","short-100mb","short-1gb","short-5gb"],"type":"string","description":"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)."},"filename":{"type":"string","maxLength":512,"minLength":1,"description":"Name of the file to upload"},"contentType":{"type":"string","maxLength":255,"minLength":1,"description":"MIME type of the file (e.g. image/png, video/mp4)"},"policyTtlSeconds":{"type":"integer","maximum":86400,"minimum":60,"description":"Optional upload URL/form expiration in seconds, 60-86400. Use longer TTLs only when reserving an output slot for a downstream service."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["uploadId","uploadUrl","uploadMethod","uploadUrlExpiresAt","publicUrl","expiresAt","maxSize","curlExample"],"properties":{"txHash":{"type":"string"},"maxSize":{"type":"number"},"postUrl":{"type":"string"},"uploadId":{"type":"string"},"expiresAt":{"type":"string"},"publicUrl":{"type":"string"},"uploadUrl":{"type":"string"},"postFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"curlExample":{"type":"string"},"uploadMethod":{"enum":["put","post"],"type":"string"},"uploadUrlExpiresAt":{"type":"string"}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"2","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lFtVUaIOdN2p4sEoeQmyh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchases an upload slot and returns a pre-signed URL for uploading files to cloud storage with configurable size tiers and retention periods.","exampleAgentPrompt":"Upload my report.pdf (application/pdf) to cloud storage using the 100mb 6-month tier and give me the public URL I can share.","exampleUseCases":[{"title":"AI pipeline output archiving","prompt":"I need to store the generated image from my pipeline — it's called output-render.png, image/png format — use the short-term 10mb tier since I only need it for 7 days, then give me the public URL."},{"title":"Large video file hosting","prompt":"Reserve a 1gb upload slot for a video file called final-cut.mp4 with content type video/mp4 using the standard 6-month 1gb tier, and give me the URL to upload it to."},{"title":"Temporary document sharing","prompt":"I want to upload a document called contract-draft.pdf (application/pdf) and share it — use the short-100mb 7-day tier so it's available for a week, and send me back the public link."}],"resultDescription":"Returns an upload ID, a pre-signed upload URL (with method and expiration time), a public URL where the file will be accessible after upload, the maximum allowed file size in bytes, and a ready-to-use curl example for performing the upload.","failureModes":["Invalid or unsupported upload tier enum value returns a validation error","Filename exceeding 512 characters is rejected","Missing required fields (filename, contentType, tier) return a 400 error","Payment failure or insufficient USDC balance prevents slot purchase","Policy TTL outside 60-86400 second range is rejected","Expired upload URL if the slot is not used before policyTtlSeconds elapses"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to store a file and receive a publicly accessible URL, especially within automated workflows where a downstream service needs a stable link to the file. It supports multiple size tiers (10mb to 5gb) and both long-term (6-month) and short-term (7-day) retention, making it flexible for both persistent hosting and ephemeral workflow handoffs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T17:51:57.219Z","isFirstParty":false}