A Livebook integration for OpenAI's DALL-E v2
.
Create a Livebook and add the following dependency:
Mix.install([
{:kino_dalle, github: "PJUllrich/kino_dalle"}
])
- Create an account with OpenAI here. You'll get plenty of free credits to get started.
- Create an API Key here
- Open your Livebook, create a
DALL-E Cell
Smart cell. - Click on the
API Key
field and enter your OpenAI API Key
- Select the desired image size and the number of images you'd like to generate.
- Click
Evaluate
above the Smart Cell. - Enter your prompt and hit
Run
.
This project built upon the brilliant work from two other smart cell repositories:
Thanks a million to the authors from these repositories. I tried to honor your work as much as possible, but if you feel uncomfortable with this project, please please reach out to me through any of the channels mentioned on peterullrich.com and let's talk about it.