DEV Community

Hiroyuki Kuromiya
Hiroyuki Kuromiya

Posted on • Updated on

I noticed that we can use DALL·E from CLI

Hello, this is my first post!

Yesterday, I tried 1password openai plugin.

Then, I noticed that we can use openai command from command line.

Here are the example.

% openai api completions.create -m ada -p "I have two eggs, and"
I have two eggs, and I'll get you a fourth, now have some breakfast, too!"
Enter fullscreen mode Exit fullscreen mode

What is wonderful is that we can create image from cli!

% openai api image.create -p "a man playing music in a bar" -n 1
Enter fullscreen mode Exit fullscreen mode

The result is here.

Image description

Looks nice!

Top comments (0)