Create file upload
create_file_uploadStart an upload for large files or when bytes can't be inlined, returning a fileId and pre-signed URL for raw PUT uploads. Use the fileId in VideoGen workflows after processing.
Instructions
Start an upload for a large file, or when file bytes cannot be inlined. Returns { fileId, uploadUrl }. PUT the raw file bytes to uploadUrl with NO Authorization header (it is a short-lived pre-signed URL). Then call get_file with { fileId, wait: true } to wait until processing finishes, and pass the returned fileId to workflows, tools, logos, or B-roll. For small files, prefer upload_file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | File type. Inferred after processing when omitted. | |
| displayName | Yes | Display name for the file. | |
| isTemporary | No | When true, the file is temporary (guaranteed available for 24 hours, not analyzed for search). Defaults to false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | File id to use after uploading bytes (vg_file_...). | |
| uploadUrl | Yes | Pre-signed URL: PUT raw file bytes here with no Authorization header. |