DEV Community

Hiroyuki Kuromiya
Hiroyuki Kuromiya

Posted on • Edited 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)

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️