Create Upload Tool
create_uploadStart an upload of a LOCAL video file (use this instead of submit_video when you
have a file on disk rather than a URL). Pass the filename, its content_type
(e.g. "video/mp4"), and optionally its size in bytes and audio_language.
Returns a new video id (hashid) and a presigned upload_url. Upload the raw
file bytes to it with a single HTTP PUT (no extra headers needed), e.g.:
curl -X PUT --upload-file ./video.mp4 ""
Then call complete_upload with the returned video id to start processing.
The url expires (see expires_in_seconds). Single-PUT uploads are capped at 5
GB (max_bytes); for larger files use the web uploader.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Optional file size in bytes. Rejected if over the 5 GB single-upload limit. | |
| filename | Yes | The file name, e.g. "interview.mp4" (used for the title and extension). | |
| content_type | Yes | The file MIME type, e.g. "video/mp4". | |
| audio_language | No | Optional spoken-language code of the video, e.g. "en". |