Nuxt 3 OpenAI Image Generation

Nuxt 3 OpenAI Image Generation

Preview

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