Prerequisites
- You have an API key. If not, you can get one by contacting us.
- You have python installed on your machine along with the
requests
library
Step 1 (Optional): Create a video resource
If you have an existing video you want to use as a reference, follow this step. This is where your face, expressions and voice are taken from. If the file is larger than 5MB, follow the Upload Large Resources guide and note theresource_id
. If not, you can
upload it directly.
Step 2: Create a script to personalize the video
Python
Step 3: Create a generation request body
This is just a regular generation, but the way you use your own face, expressions and voice is by providing your reference video’sresource_id
for the face and
voice.
Python
Step 4: Poll for the status and download the video
Python
To personalize to multiple audiences, repeat steps 2-4 with different
scripts.