httpx-based client built for backend and batch use. The headline
feature is non-streaming lipsync: pass an audio URL, get back a talking-head MP4
URL.
Quickstart
Methods
| Method | Purpose |
|---|---|
lipsync(audio_url, avatar_id | portrait_url) | Render audio → MP4 URL (non-streaming). |
prepare(...) | Warm/register an avatar. |
list_avatars() | List workspace avatars. |
credit_balance() | Read the wallet balance. |
turn_stream(...) | Low-level: raw x-avatar-mux bytes for realtime turns. |
Configuration
| Argument | Env var | Default |
|---|---|---|
api_key | REALTIME_AVATAR_API_KEY | — (required) |
base_url | REALTIME_AVATAR_BASE_URL | hosted platform |
timeout | — | 300s (lipsync renders can take seconds) |