Prerequisites
Before starting, ensure you have:- A replica to be used for the video.
- Script:
- Text format.
- Audio:
.mp3
or.wav
format.
Generate a video
1
Step 1: Generate Your Video
Use the following request to generate a video:
You can also customize the video background to suit your needs. See the Background Customizations article for more details.
- Replace
<api_key>
with your actual API key. You can generate one in the Developer Portal. - Replace
<replica_id>
with the Replica ID you want to use. - Replace
<text_script>
with your video script. - Replace
<audio_url>
with the downloadable URL of your audio script.
2
Step 2: Check Video Generation Status
You can monitor the training status using the Get Video endpoint:If the video is still being generated, the response will include a Once the video is fully generated, the response will return a
Replace
<api_key>
with your actual API key.status
field set to generating
.status
field set to ready
.3
Step 3: Accessing Your Video
Once generated, videos can be:
- Streamed or Downloaded: Generated video is hosted on a shareable URL. If a callback is set, a download link is returned when the video generated.
- Embedded or Shared: Use the provided links to distribute your videos across social media, internal tools, or customer platforms.