- Get the API token via https://beta.openai.com/account/api-keys. Create
.envfile from.env.examplefile and assign API key to OPENAI_API_KEY.
- Clone/Download this project
- Install:
npm install
# or
yarn- Run the development server:
npm run dev
# or
yarn dev- Run production server:
make start-server-localor with docker compse with
make start-docker-compose-localOpen http://localhost:3000 with your browser to see the result.
The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.
- Input token start from
sk- - Query anything, e.g.
A sleeping cat and flower vase on the kitchen table in the artist Van Gogh style.:
- Since V2 is using OpenAI official API.
This project is inspired by the original one with benefits
- OpenAI SDK latest
- NextJS v14.x
- DALL-E 3
- React latest

