Skip to main content
POST
Upload File

Authentication

This endpoint requires an API key.

Request Body

filename
string
required
Name of the file to upload. Example: "my-image.png"
contentType
string
required
MIME type of the file. Allowed types: image/jpeg, image/png, image/webp, image/gif, video/mp4, video/webm, audio/mpeg, audio/wav.

Response

uploadUrl
string
Presigned PUT URL. Upload your file here with a PUT request within 15 minutes.
fileUrl
string
CDN URL where the file will be accessible after upload. Use this URL in job inputs.
fileId
string
Unique identifier for the upload. Use to check status.
expiresAt
string
ISO 8601 timestamp when the file will be automatically deleted (60 minutes from creation).
maxSize
number
Maximum allowed file size in bytes. Images: 10MB, Videos: 100MB, Audio: 50MB.

How It Works

  1. Call this endpoint to get a presigned upload URL
  2. Upload your file via PUT to the uploadUrl (include Content-Type header)
  3. Use the fileUrl in your job submission input
  4. File is automatically deleted after 60 minutes

Error Codes

Examples

Example Response