https://api.hedra.com/web-app/public and require an X-API-Key header.
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. Omitduration_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 passingaudio_generation instead of audio_id.
To find a voice_id, list the available voices:
Step 4: Poll for completion
Avatar videos are asynchronous. Checkprogress (0-1) while polling:
status is "complete", the response includes an asset_id for the generated video.