binh234 / imagine

Home Page:https://imagine-ai.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Imagine

Live demo

demo

Imagine is an AI image generation application using DALL-E 2 API allows users to generate beautiful and surprising images based on specified prompt. Users can also share their images to the community showcases.

Techologies:

Features

  • Generate image base on prompt
  • Generate image variant
  • Share generated images with others
  • Image tags
  • Image search
  • Download your favorite images

Setup development

Note: The Go server currently has some bugs in generating image variant due to the package go-openai, I will fix it ASAP

Generally, Go server will be 5-10x faster than Node server, so if you don't need such features as generating image variant, simply go with Go.

Setup environment variables

For the environment variables required, see env.sample. Each server will need its own .env file.

Run the server

For Node.js server:

cd server && npm start

For Go server:

cd go-server
go mod tidy
go run main.go

The server will then listen on http://localhost:8080

Run the client

Note: If you want to start client in development, change the BASE_URL inside utils/config.js to http://localhost:8080

cd client
npm run dev

The client will be available at http://localhost:5173

About

https://imagine-ai.vercel.app/

License:Apache License 2.0


Languages

Language:JavaScript 67.8%Language:Go 23.4%Language:CSS 7.9%Language:HTML 0.9%