This CLI tool is a simple command-line interface for interacting with the OpenAI API. It was specifically created as a tool that GPTScript can leverage in order to provide the langauge with image generation capabilities. It allows users to input a text prompt and get a response generated by OpenAI's GPT models. Users can provide the API key directly as a command-line argument or set it through the credential tool.
- Accepts an OpenAI API key through the command line or environment variable.
- Accepts a text prompt for image generation and displays the resulting images.
- Supports image generation using a specified model, image size, quality, and the number of images to generate.
- Python 3.x
- OpenAI API key
This CLI tool does not require a build step, as it is a simple Python script. The only requirement is to install the necessary Python dependencies.
-
Clone this repository or download the source code:
git clone https://github.com/your-username/your-repo.git cd your-repo -
Install the required Python packages:
pip install -r requirements.txt