Create upload URL
create_uploadFree. Get a fileId and a single-use PUT URL (valid 15 minutes, tied to this key or account) for a local video or audio file, e.g. one the user attached in chat. Checks size first: one PUT takes up to 80 MB; bigger files (up to 2048 MB) return 422 use_multipart_upload: call create_multipart_upload instead. Then PUT the raw bytes (not multipart) with the returned headers, e.g. curl -X PUT --data-binary @clip.mp4 -H "Content-Type: video/mp4" "", and pass fileId to plan, quote, transcribe, burn_captions, shorts, trim, dub, or preview. No API key is needed for the PUT itself. Up to 30 per hour.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | File name, e.g. clip.mp4. | |
| sizeBytes | Yes | Exact file size in bytes (the PUT must match). | |
| contentType | Yes | video/* or audio/*, e.g. video/mp4. |