Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
HEYGEN_API_KEY="your Heygen API key"
NEXT_PUBLIC_BASE_API_URL=https://api.heygen.com
# Optional OpenAI integration keys
OPENAI_API_KEY="your OpenAI API key"
NEXT_PUBLIC_OPENAI_API_KEY="your OpenAI API key"
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ Feel free to play around with the existing code and please leave any feedback fo

6. Run `npm run dev`

### Environment variables

Copy `.env.example` to `.env` and fill in your credentials. The demo understands the following keys:

- `HEYGEN_API_KEY` – used by `app/api/get-access-token/route.ts` to request streaming tokens.
- `NEXT_PUBLIC_BASE_API_URL` – base URL for HeyGen's API (`https://api.heygen.com` by default).
- `OPENAI_API_KEY` – optional key for sample OpenAI integrations.
- `NEXT_PUBLIC_OPENAI_API_KEY` – optional client-side key for OpenAI demos.

### Starting sessions

NOTE: Make sure you have enter your token into the `.env` file and run `npm run dev`.
Expand Down