Upload Asset

Uploads a media file (image, video, or audio) to the authenticated user's HeyGen account and returns the asset ID for future use.

Body Params
file
required

Asset file to upload. The file is sent as raw binary data in the request body. No additional form fields or parameters are required.

Headers
string
enum
required

MIME type of the file to upload. Must correspond to the file format. Supported MIME types include:

  • image/png: Use for PNG images
  • image/jpeg: Use for JPEG images
  • audio/mpeg: Use for MP3 audio files
  • video/mp4: Use for MP4 videos
  • video/webm: Use for web-native videos

Allowed:
Response

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json