post https://upload.heygen.com/v1/asset
Response Body
Parameter | Description |
---|---|
id | id of uploaded asset |
name | name of uploaded asset |
file_type | file type of uploaded asset (image, video) |
folder_id | folder of this asset |
meta | metadata of this asset |
The response will provide you with an id
, representing the asset ID of the uploaded image.
Image
Specify the content type of the image, which should be image/jpeg
for JPEG files or image/png
for PNG files. The API will respond with an id that represens your asset.
File type | Content type |
---|---|
JPEG | image/jpeg |
PNG | image/png |
Video
Specify the content type of the video, which should be video/mp4
for MP4 files or video/webm
for WEBM files. The API will respond with an id that represents your asset.
File type | Content type |
---|---|
MP4 | video/mp4 |
WEBM | video/webm |
Audio
Specify the content type of the audio, which should be audio/mpeg
for MPEG files. The API will respond with an id that represents your asset.
File type | Content type |
---|---|
MPEG | audio/mpeg |