Prerequisites
An image of a person (PNG or JPEG) — accessible via a public URL or uploaded as an asset
A
voice_id for the voice you want. Use GET /v3/voices to browse options.Step 1 — Generate the video
UsePOST /v3/videos with type: "image" and an image object instead of avatar_id:
- From image URL
- From uploaded asset
type: "image" and type: "avatar" are mutually exclusive — use exactly one.Step 2 — Poll for completion
Video generation is asynchronous. PollGET /v3/videos/{video_id} until the status reaches completed:
Full example
Using audio instead of a script
You can lip-sync to a custom audio file instead of generating speech from text. Passaudio_url or audio_asset_id instead of script + voice_id:

