Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-generation

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.

Features

  • 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.

Prerequisites

  • Python 3.x
  • OpenAI API key

How to Build

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.

Installation

  1. Clone this repository or download the source code:

    git clone https://github.com/your-username/your-repo.git
    cd your-repo
  2. Install the required Python packages:

    pip install -r requirements.txt

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages