Upload media file or URL
Media
Upload media file or URL
Upload a video file directly, ingest from a URL, or request a signed upload URL for larger local files. Returns a media_id that can be used for video generation.
POST
Upload media file or URL
Usage Examples
1. Upload from URL
Ingest a video from a public URL.2. Upload Local File
Upload a video file directly. For local files up to 32 MB, multipart upload is supported directly. For larger local files, see Large Local File Upload.3. Request a Signed Upload URL
For larger local files, request a signed upload URL first.upload_url, call notify_upload_complete, and poll get_upload_status until the upload is ready before generating with media_id. See Large Local File Upload for the full workflow.
Common Upload Errors
| Error | HTTP Status | Description |
|---|---|---|
no_video_stream | 415 | The uploaded file is not a valid video stream for processing. This usually means the file contains audio only. |
video_too_long | 403 | The uploaded video exceeds the maximum duration allowed by the current plan. |
file_too_large | 403 | The uploaded file exceeds the maximum file size allowed by the current plan. |
Authorizations
API key for authentication. Obtain from your team admin.
Example: X-API-Key: vsk_abc123def456ghi789jkl012mno345pqr678stu901vwx234yz
Body
- Upload from URL
- Request Signed Upload URL
Response
Media uploaded successfully
Unique identifier for the uploaded media
Upload status
Available options:
created, existing, pending_upload Video duration in seconds
Video frame rate (fps)
Signed PUT URL returned for signed_url uploads
Storage path associated with the uploaded media
Content-Type associated with a signed upload

