Maintainers
Pricing
Enterprise
More
More
Documentation
Try Live
Rankings
Install
Blog
Docs7
Ask
New
Add Docs
HeyGen Interactive Avatar Next.js Demo
https://github.com/heygen-official/interactiveavatarnextjsdemo
Admin
Tokens:
221
Snippets:
4
Trust Score:
6.9
License:
MIT
Update:
1 year ago
Context
Chat
Benchmark
25
Latest
Show doc for...
Code
Info
Show Results
Tokens:
Raw
Copy
Link
Tokens:
Raw
Copy
Link
### Start NextJS Development Server Source: https://github.com/heygen-official/interactiveavatarnextjsdemo/blob/main/README.md After installing dependencies and configuring API keys, run this command in your terminal from the project root to start the NextJS development server. ```Shell npm run dev ``` -------------------------------- ### Install Project Dependencies with npm Source: https://github.com/heygen-official/interactiveavatarnextjsdemo/blob/main/README.md Navigate to the project directory in your terminal and run this command to install all necessary dependencies listed in the package.json file. ```Shell npm install ``` -------------------------------- ### Configure Optional OpenAI API Key in .env Source: https://github.com/heygen-official/interactiveavatarnextjsdemo/blob/main/README.md If you plan to use the optional OpenAI features within the demo, add or update this line in your .env file with your OpenAI API Key. ```dotenv OPENAI_API_KEY=YOUR_OPENAI_API_KEY_HERE ``` -------------------------------- ### Configure HeyGen API Key in .env Source: https://github.com/heygen-official/interactiveavatarnextjsdemo/blob/main/README.md Open the .env file in the project root and replace the placeholder with your actual HeyGen Enterprise API Token. This key is used by the server to generate secure access tokens for interactive sessions. ```dotenv HEYGEN_API_KEY=YOUR_API_KEY_HERE ```