Skip to main content
All examples use the base URL https://api.hedra.com/web-app/public and require an X-API-Key header.
Avatar videos are driven by audio—the character in the image will lip-sync and move to the provided audio. Hedra Avatar (together/hedra-avatar) requires an image and audio input. Use GET /models?types=video to read its current output and input-duration limits before submitting long-form work.

Step 1: Upload your audio

The audio normally determines the video length. Omit duration_ms to follow the source audio.

Step 2: Upload your portrait image

Step 3: Generate the avatar video

Use the Hedra Avatar model (together/hedra-avatar):
The model catalog reports output limits separately from limits on each input slot. Check both before uploading long audio.

Inline audio generation

Instead of uploading audio separately, you can generate speech inline by passing audio_generation instead of audio_id. To find a voice_id, list the available voices:
See the Generate Audio guide for the full list of voice options, including voice cloning.

Step 4: Poll for completion

Avatar videos are asynchronous. Check progress (0-1) while polling:
When status is "complete", the response includes an asset_id for the generated video.