Quick Example
Upload Methods
From URL
Upload directly from any accessible URL (S3, YouTube, public links):From Local File
Upload files from your local filesystem:Media Types
| Type | ID Prefix | Use Case |
|---|---|---|
| Video | m-xxx | Primary content, full playback |
| Audio | a-xxx | Podcasts, voice recordings |
| Image | img-xxx | Thumbnails, frames |
Upload Response
After upload, you receive a media object with:| Property | Description |
|---|---|
id | Unique identifier (m-xxx, a-xxx, img-xxx) |
collection_id | Parent collection ID |
name | File name |
length | Duration in seconds (video/audio) |
stream_url | HLS stream URL (video) |
player_url | Web player URL (video) |
Async Uploads with Callbacks
For production workflows, use callbacks to handle upload completion:What You Can Build
Faceless Video Creator
Upload assets and compose complete AI-generated videos
TikTok Lyric Videos
Upload music and create viral vertical clips with synced lyrics
Intro & Outro Automation
Upload brand assets and automatically add to all videos