Upload file
upload_fileUpload a local file to VideoGen to get a file ID and signed URLs for voiceover, slideshow, logo, or B-roll video creation.
Instructions
Upload a local file to VideoGen and wait until it is processed. Returns the file with its id (vg_file_...) and signed URLs. Use the returned fileId for voiceover_to_video, slideshow_to_video, logos, or B-roll. To upload a remote asset, download it first and pass its local path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | File type. Inferred when omitted. | |
| filePath | Yes | Absolute path to a local file to upload. | |
| displayName | No | Display name for the file. Defaults to the source file name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | File type once processing has determined it. | |
| scope | No | File scope. | |
| fileId | Yes | File id (vg_file_...). | |
| hlsSource | No | ||
| description | No | File description when analyzed. | |
| displayName | No | Display name for the file. | |
| downloadUrl | No | Signed download URL when ready. | |
| publicHlsUrl | No | ||
| thumbnailUrl | No | Signed thumbnail URL when available. | |
| previewSource | No | ||
| downloadSource | No | ||
| sourceToolType | No | ||
| transcriptText | No | Plain transcript text when available. | |
| durationSeconds | No | Duration in seconds for video/audio; null for images. | |
| thumbnailSource | No | ||
| publicPlaybackId | No | ||
| downloadUrlExpiresAt | No | Unix expiry for downloadUrl. | |
| sourceToolExecutionId | No | ||
| thumbnailUrlExpiresAt | No | Unix expiry for thumbnailUrl. | |
| isPublicPreviewEnabled | No |