This is a starter kit for integrating OpenAI's API into a Next.js application. It is crafted with minimal styling and basic API integration so you can strip it and bring your own libraries to make it your own. Feel free to fork and create something amazing!
First, fork the repo to your dev environment and install the packages:
npm i
Then, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
Make sure that update the OPENAI_API_KEY=yourApiKey
in the .env
file.