downloadVideo
Download a video file
mindstudio.downloadVideo({ videoUrl, format }) → Result
Downloads a video from a URL and re-hosts it, returning a stable URL — use it to pull a remote or expiring video into your own storage before processing.
Parameters
videoUrl
string
RequiredURL of the video to download (supports YouTube, TikTok, etc. via yt-dlp)
format
string
RequiredOutput format for the downloaded file
mp4mp3
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.downloadVideo({ videoUrl: /* ... */, format: /* ... */ });