DEV Community

Cover image for Visually explore OpenAI's Image APIs without coding custom UI
Sebastian Tiedtke
Sebastian Tiedtke

Posted on • Originally published at

Visually explore OpenAI's Image APIs without coding custom UI

While chatGPT has been all the craze, OpenAI’s underlying APIs offer much more. Outside of GPT4, the core piece to chatGPT, OpenAI provides AI Image-Generation APIs under the DALL-E umbrella.

💡 OpenAI’s description: DALL·E 2 is an AI system that can create realistic images and art from a description in natural language. 👉

These APIs are plain amazing…! They allow you to take an existing image and describe in words what edits you’d like the AI to make for you. It's like magic!

🙌 No UI Coding Required

Edit image using words via AI

Edit a ball pit into the image? Easy!

You can learn how to use DALL-E's APIs without writing custom code. We'll showcase this using Runme, which lets you create Markdown notebooks with interactive Shell commands, similar to Jupyter for Python.

🛠 Please give Runme a spin, install here or search runme inside VS Code

My dog Luna 🐕 offered to help us make our point! Right below, you’ll see Luna at a doggy friend’s birthday party in real life. All we’re using is a simple scene prompt: “a happy german shepherd dog surrounded by cheeseburgers”:

Original image of Luna

Unedited image of Luna

Luna with faux cheeseburgers

No way Luna would sit this calmly if those cheeseburgers were real 🤭

👩‍💻 Try It Yourself

Head to to get an API key and follow our Runme notebook. Depending on how much you plan on using the API, OpenAI puts a limit on its free tier.

The repo with the notebook is available here:

Runme notebook for AI image editing

🖥 Skip The Notebook, Use The CLI

If you live in the terminal, use the Runme CLI instead. After you clone the repo, drop your OPENAI_API_KEY=<super secret> into your environment. Then, do this:

$ runme run --filename install-deps
$ runme run --filename run-scene | jq -r ".data[0]" # btw, output URL expires
  "url": ""
Enter fullscreen mode Exit fullscreen mode

Most terminal emulators will allow you to click the URL to open it in a browser. That's it!

🌠 Make Your Own

We've explained how to use your images within the Runme notebook. The originals are also included with the notebook in the repository. Interestingly, the more background you mask (let the AI know what not to preserve), the more drastically the AI morphs the scene. Let us know what you think. You can find us on Discord. Please drop by and share one of your own DALL-E impressions!

Thank you.

Top comments (1)

degrammer profile image
Ruben Restrepo

Interesting! this is an exciting way to try out something speedy without building a UI