Sebastian Tiedtke
Sebastian Tiedtke
April 18, 2023

Visually explore OpenAI's Image APIs without coding custom UI

runme, workflow, vscode, cli

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

How about editing a Ball Pit into the image?

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.

or search runmeinside VS Code

My dog Luna 🐕 offered to help us make our point! On the left, 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 LunaLuna 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": ""

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!

Before you go...

To stay updated with our latest content, please subscribe to our email updates or follow us on Twitter at @runmedev! Also, check out Runme, a VS Code Extension that lets you run commands in READMEs with a click instead of tedious copy&pasting into a terminal.

Let us know what you think. Bye for now! 👋

Also check out

10 Things You Didn't Know Markdown Could Do
May 16, 2023
10 Things You Didn't Know Markdown Could Do

Read this blog post and find 10 incredible tips that you probably didn’t know and can help you with workflows and local development.

BranchGPT: The AI-Powered Solution to Branch Names
May 10, 2023
BranchGPT: The AI-Powered Solution to Branch Names

Generate a branch name that follows your personal convention with BranchGPT. Blurt out what you're working on, and let AI do the rest. It's perhaps more fun than practical, but isn't that true for many things "AI" these days?

The Hitchhiking Contributor’s Guide to Onboarding Docs in CI/CD
May 3, 2023
The Hitchhiking Contributor’s Guide to Onboarding Docs in CI/CD

All kidding aside, why don’t we continuously integrate our repo's onboarding workflows? It's obvious and easy. Here's a GitHub Action to do the heavy-lifting.

© 2023 Stateful Inc. All rights reserved.