Upload File
File Uploads
Upload File
Generate a presigned URL to upload a temporary file. Files are automatically deleted after 60 minutes.
POST
Upload File
Authentication
This endpoint requires an API key.Request Body
Name of the file to upload. Example:
"my-image.png"MIME type of the file. Allowed types:
image/jpeg, image/png, image/webp, image/gif, video/mp4, video/webm, audio/mpeg, audio/wav.Response
Presigned PUT URL. Upload your file here with a PUT request within 15 minutes.
CDN URL where the file will be accessible after upload. Use this URL in job inputs.
Unique identifier for the upload. Use to check status.
ISO 8601 timestamp when the file will be automatically deleted (60 minutes from creation).
Maximum allowed file size in bytes. Images: 10MB, Videos: 100MB, Audio: 50MB.
How It Works
- Call this endpoint to get a presigned upload URL
- Upload your file via PUT to the
uploadUrl(includeContent-Typeheader) - Use the
fileUrlin your job submission input - File is automatically deleted after 60 minutes
Error Codes
| Code | Description |
|---|---|
VALIDATION_ERROR | Missing or invalid filename/contentType. |
INVALID_CONTENT_TYPE | Content type not in the allowed list. |
