DALLE-2-App
DALLE-2-App copied to clipboard
DALLE 2 on Next.js
DALL-E 2 App (Next.js)
Create realistic images and art from a description in natural language.

Requirement
- Get the API token via https://beta.openai.com/account/api-keys
Tutorial
- Medium (https://bit.ly/3ul3pyf)
Getting Started
- Clone/Download this project
- Install:
npm install
# or
yarn
- Run the development server:
npm run dev
# or
yarn dev
If you prefer docker, run this command
docker-compose up --build -d
Open 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.
Usage
- Input token start from
sk- - Query anything, e.g.
cat on space:
Structure
Deploy on Vercel
Check out Next.js deployment documentation for more details.
Looking for iOS/iPadOS/macOS version?
Swift/SwiftUI: https://github.com/1998code/DALLE2-Swift
Developer Notes
- V2 is using OpenAI official API. V1 is using OpenAI Labs Bearer Key.
License
MIT