#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

#609 in Web programming

Download history 5/week @ 2024-09-21 197/week @ 2024-09-28 10/week @ 2024-10-05 3/week @ 2024-10-12

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
~300K SLoC