Skip to content

Ask a user to input a prompt (who, what, where, art style) to generate an image using Dall-E

Notifications You must be signed in to change notification settings

MaastrichtU-BISS/text-to-image

Repository files navigation

Text to image

We use the OpenAI API to make calls to Dall-E and present the users with their creations.

This project is built using Nuxt v3, look at the nuxt 3 documentation to learn more.

image

Setup

  1. Copy the project to your local machine
  2. Open the text-to-image folder in your IDE
  3. Create a new .env file in the root of the project
  4. Add the following line to the .env file:
NUXT_API_KEY="your Dall-E2 api key here"
  1. Install dependencies:
yarn install

Development Server

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

yarn dev

Or start the development server on http://localhost:XXXX

yarn dev --port XXXX

Production

Build the application for production:

yarn build

Locally preview production build:

yarn preview

Checkout the deployment documentation for more information.

About

Ask a user to input a prompt (who, what, where, art style) to generate an image using Dall-E

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •