Reserve an upload slot for a local video file
create_uploadReturns an upload URL and ID for a video file, enabling it to be processed into vertical clips. Use the URL to upload raw bytes, then call process_video with the ID.
Instructions
Use when the user hands you a video FILE instead of a link. Returns an upload_url: send the file's raw bytes to it with an HTTP PUT (for example curl -T video.mp4 <upload_url>), then call process_video with the returned upload_id. Unused slots are deleted after expires_in seconds (6 h); max size is max_mb. FALLBACK if your sandbox cannot reach upload_url: upload the file to tmpfiles.org (curl -F file=@video.mp4 https://tmpfiles.org/api/v1/upload), and pass the returned url to process_video as source_url right away (their files expire after 60 minutes; the server refreshes the signed download link itself). Otherwise ask the user to run the curl command or to share a public link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Original file name (optional, for the extension). |