### 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 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.