#image-generation #openai #prompt #multiple #concurrently #request

app imgen

A cli wrapper around OpenAI imgage generation that works for me

4 releases

0.1.3 Sep 28, 2024
0.1.2 Mar 11, 2024
0.1.1 Mar 11, 2024
0.1.0 Mar 10, 2024

#611 in Web programming

Download history 2/week @ 2024-09-18 186/week @ 2024-09-25 20/week @ 2024-10-02 7/week @ 2024-10-09

165 downloads per month

MIT/Apache

12KB
126 lines

imgen

A cli wrapper around OpenAI image generation that works for me. Give multiple prompts and request them concurrently.

Install

cargo install imgen

Config

OpenAI api key should be set using envar OPENAI_API_KEY.

Run

imgen "First prompt" "Second prompt"

If a prompt is . imgen will reuse the previous prompt. This way you can easily request variations like this.

imgen "prompt" . .

Dependencies

~9–22MB
~308K SLoC