Nuxt 3 OpenAI Image Generation

Preview

Preview 1 Preview 2

Setup

Go https://beta.openai.com/account/api-keys to create API Key.

Copy .env.example to .env or you can enter your API key on the website.

# Go https://beta.openai.com/account/api-keys to create
NUXT_OPENAI_API_KEY=openai_api_key

Make sure to install the dependencies:

yarn install

Development Server

Start the development server on http://localhost:3000

yarn dev

GitHub

View Github