Coder Social home page Coder Social logo

joshuacarter / dalle-api-gui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jphilipp/powerdalle

0.0 0.0 0.0 997 KB

Forked from https://github.com/JPhilipp/powerdalle

License: MIT License

JavaScript 95.75% CSS 2.95% HTML 1.27% Batchfile 0.04%

dalle-api-gui's Introduction

Power Dall-E

The Power Dall-E local web UI is a simple way to use Dall-E 3 with its advanced parameters like style (vivid vs natural) or quality (standard vs hd), which aren't available via ChatGPT. You can also use it to keep generating images when your main ChatGPT Dall-E is throttling you. This app locally remembers your past creations and shows them in a newest-first list, including your prompt as well as the prompt Dall-E rewrote behind the scenes.

With Power Dall-E, you can launch multiple generations at once in any number, which makes it faster than ChatGPT and better to A/B test prompts, if you are willing to carry the extra API cost. One other difference to ChatGPT is that Power Dall-E doesn't remember any conversation session, something which can lead ChatGPT (sometimes for better, sometimes for worse) to bias successive prompt rewrites to the ongoing conversation.

This app does not connect to any server outside of your local one and OpenAI. Be aware of the costs though, as every API call is paid to OpenAI as per their usual pricing (note I'm not part of that transaction nor do I make money from it, it's just a local way for you to connect via your OpenAI API key).

Screenshot
As you scroll down, your older creations also show.

Video
Overview video

Installation

  1. Ensure you have Node.js installed.
  2. Load this git project onto your local drive.
  3. Create a name-less file ".env" in the project root and put into it your OpenAI API key by writing: OPENAI_API_KEY=yourapikey
  4. Navigate to the project via the command line, and type npm install
  5. Then in the same command line, type npm start
  6. Open http://localhost:3000 in your browser. Have fun!

This project makes no guarantees for being bug-free, use at your own risk, and keep in mind that API calls cost money (see the OpenAI costs dashboard and the pricing table).

Prompt Inspirer

Power Dall-E is integrated with Prompt Inspirer (also available at PromptInspirer.com), which includes over 10,000 items you can drag & drop together to make prompts.

Video
Prompt Inspirer overview video

Options

Info such as the prompt used are stored in a local database. If you want to additionally save a JSON file with such info with each image, add this to your ".env" file:
SAVE_JSON_WITH_IMAGES=true

To switch from default model "dall-e-3" to another, add e.g. this to the ".env" file and restart the server (though size dropdowns and such will only properly work for the default model):
MODEL=dall-e-2

To change the maximum number of images served at the start (the default is 1000), use e.g.:
MAX_IMAGES_TO_SERVE_AT_START=2000

To change the port Power Dall-E runs on (the default is 3000), use e.g. the following and also adjust the start.bat: PORT=3030

Also see

I made a new (Electron-based) app called QuickImage with support for Stable Diffusion 3 and Dall-E 3. It also comes with a Windows exe.

dalle-api-gui's People

Contributors

jphilipp avatar joshuacarter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.