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.
- 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.
- Bash
- curl
- jq
Run the provided install.sh
script to set up the necessary files and permissions.
./install.sh
To configure your API key and output directory, run:
dallebash --config
or
dallebash --wizard
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.
To display the help message, use:
dallebash --help
To change the API key or output directory, use:
dallebash --config
or
dallebash --wizard
This project is licensed under the MIT License. See the LICENSE file for details.