Skip to content

A command-line interface (CLI) tool for interacting with OpenAI's DALL-E, allowing users to generate images based on prompts. Includes configuration options via wizard or command-line arguments, and supports interactive mode for continuous prompt input.

License

Notifications You must be signed in to change notification settings

africanmx/dallebash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DALL-E Terminal Chat

A comprehensive Bash script to interact with OpenAI's DALL-E API, allowing users to generate images from text prompts directly from their terminal. The script supports configuration management and stores generated images in a user-defined directory.

Features

  • Generate images from text prompts using the OpenAI API.
  • Store generated images in a specified output directory.
  • Configuration management for API key and output directory.
  • Easy to set up and use.
  • Configuration wizard for initial setup and changes.
  • Continuous prompt input, allowing multiple images to be generated in one session.
  • Multiline input support.

Requirements

  • Bash
  • curl
  • jq

Installation

Run the provided install.sh script to set up the necessary files and permissions.

./install.sh

Usage

Initial Setup

To configure your API key and output directory, run:

dallebash --config

or

dallebash --wizard

Generating Images

To generate an image from a text prompt, run:

dallebash "Your prompt here"

You can also run the script without arguments to enter the prompt interactively:

dallebash

While in interactive mode, enter your prompt and press Ctrl+Enter to submit. The program will stay active and ask for the next prompt or you can exit by pressing Ctrl+C.

Help

To display the help message, use:

dallebash --help

Configuration

To change the API key or output directory, use:

dallebash --config

or

dallebash --wizard

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A command-line interface (CLI) tool for interacting with OpenAI's DALL-E, allowing users to generate images based on prompts. Includes configuration options via wizard or command-line arguments, and supports interactive mode for continuous prompt input.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published