Upload an image or video
vids_upload_assetUpload your own JPEG, PNG or WebP image (a startImage or referenceImage_N for vids_create_video, a person's photo or a logo for vids_create_avatar), from a public https url (up to 50 MB) or as contentBase64 (small files). Returns an assetId, usable on that account only, so upload with the email of the account you will use it on. POST /assets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A public https URL of the file. | |
| No | The account to upload to (an asset works only there; any plan). Default: a healthy account with a video allowance. | ||
| mimeType | No | The file's type: image/jpeg, image/png, image/webp. Default: from the url's answer. | |
| contentBase64 | No | The file content, base64-encoded (instead of url). |