This guide will help you set up the required API keys and environment variables for using Hedra Realtime Avatars.

Livekit Project Setup

  1. Create a Livekit account.
  2. Create a project through your Livekit dashboard.
  3. Navigate to Settings → API Keys and save your project credentials to a .env file:
LIVEKIT_URL="wss://<project_name>.livekit.cloud"
LIVEKIT_API_KEY="<livekit_api_key>"
LIVEKIT_API_SECRET="<livekit_api_secret>"

Hedra API Access

  1. Create a Hedra account.
  2. Subscribe to a paid plan in order to gain API access.
  3. Navigate to your API profile page to generate an API key.
  4. Add your API key to the .env file created earlier:
HEDRA_API_KEY="<hedra_api_key>"

OpenAI API Access

  1. Go to OpenAI and follow instructions for generating a paid API key.
  2. Add your API key to the .env file created earlier:
OPENAI_API_KEY="<openai_api_key>"