Upload file
upload_fileUpload a small file (image, logo, or short audio) to VideoGen by passing its base64-encoded contents, 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. For large files, use create_file_upload instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Media kind to associate with the upload. Inferred when omitted. | |
| fileData | Yes | Base64-encoded contents of the file to upload. | |
| displayName | No | Human-readable label used to identify the uploaded asset in the VideoGen library. Defaults to 'upload'. |
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 |