An Interest In:
Web News this Week
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
- April 18, 2024
Simple Curl & Shell for AI Image Editing
While chatGPT has been all the craze, OpenAIs underlying APIs offer much more. Outside of GPT4, the core piece to chatGPT, OpenAI provides AI Image-Generation APIs under the DALL-E umbrella.
OpenAIs description: DALLE 2 is an AI system that can create realistic images and art from a description in natural language. https://openai.com/product/dall-e-2
These APIs are plain amazing! They allow you to take an existing image and describe in words what edits youd like the AI to make for you. It's like magic!
No Coding Required
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, youll see Luna at a doggy friends birthday party in real life. All were using is a simple scene prompt: a happy german shepherd dog surrounded by cheeseburgers:
Unedited image of Luna
No way Luna would sit this calmly if those cheeseburgers were real
Try It Yourself
Head to https://platform.openai.com/ 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: https://github.com/sourishkrout/loon
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 AI.md install-deps$ runme run --filename AI.md run-scene | jq -r ".data[0]" # btw, output URL expires{ "url": "https://oaidalleapiprodscus.blob.core.windows.net/private/org-tm5BAbynhBsE9Lzy1HTD6sk0/user-7A9nqIQ8tVXN7epnIqZs6fca/img-Hc1KHk6lkJegAkMqUWSL9D0i.png?st=2023-04-18T13%3A56%3A07Z&se=2023-04-18T15%3A56%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2023-04-18T11%3A36%3A32Z&ske=2023-04-19T11%3A36%3A32Z&sks=b&skv=2021-08-06&sig=9oEyq1os4zwf6rvb67W1rPDkTsPd%2BZ%2B1VHi/gWaz17M%3D"}
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.
Original Link: https://dev.to/sourishkrout/simple-curl-shell-for-ai-image-editing-40pa
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To