Skip to content

Dalal-E is a CLI application to generate realistic image using DALL-E 2 AI image generator API

Notifications You must be signed in to change notification settings

anwarulislam/dalale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DALL-E 2 API

Dalal-E (dalale)

Dalal-E is a CLI application to generate realistic image using DALL-E 2 AI image generator API

NPM version

Installation

By using npm (the recommended way):

npm install -g dalale # or using yarn: yarn global add dalale

And dalale will be installed globally to your system path.

If you are having any issues with installing by running above command try to give sudo permission to the command:

sudo npm install -g dalale # or using yarn: sudo yarn global add dalale

You can use dalale directly without running installation script by running: npx dalale generate "elephant is dancing with chicken".

Setup Dalal-E

To setup Dalal-E just run the command dalale setup. It will prompt you to enter your DALL-E 2 API. It will remember the API key for further use. eg: The key is being stored locally in your machine. You can reset the key as well.

The specificity is as follows:

  • dalale setup --key <your-key> to set API key directly.
  • dalale setup --reset to reset/replace the current API key.
  • dalale setup --info to get the current API key.

Usage

dalale accepts arguments to set options for the image you want to generate:

dalale generate "here is your imagination"

For CLI options, use the -h (or --help) argument:

dalale -h

You can pass height, width and the number of images you want to generate as arguments.

dalale generate "here is your imagination" -h 512 -w 512 -n 2

Issues

See the Issues and please add your own issue or feature request if you think they would help others.

About

Dalal-E is a CLI application to generate realistic image using DALL-E 2 AI image generator API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published