Innovating AI Art with Stable Diffusion and Deforum: The Power of Custom APIs

From Idea to Implementation: My Experience Developing an AI Animation Tool

2024-03-29 Marius Jopen

Dear friends,

I spend my last nights developing a custom tool to control Stable Diffusion.

Stable Diffusion is an open source tool to generate AI images. And with plugins like Deforum it is possible to turn them into animations.

Generally Stable Diffusion gets controlled via a web-interface called Automatic1111 or ComfyUI. There you have hundreds of buttons and sliders to control the image or video which you want to create.

Stable DIffusions webUI: Automatic1111

I was aware that you actually don’t need this interface and that you can control Stable Diffusion via an API. This means that you can control Stable Diffusion via an application which you develop / code yourself.

For my project in the Bundestag, this is exactly what I am doing.

My friend Klaus Stille helped me to do the initial API connection to Stable Diffusion. And then with the help of ChatGPT4 I managed to program a complete application around it.

To use ChatGPT4 or other AI tools as a help for coding is a complete game-changer. Before I would have probably spend a couple of months figuring out how this all works. But now I managed to get it running within around 5 days.

You can just tell ChatGPT: Make me a textfield and a button, and when I click on the button, the API tells Stable Diffusion to generate an image.

Using ChatGPT4 to code things which I am too stupid for

And that works. It generates me this code. It’s like magic!

So if you are afraid of programming — don’t be. Just open ChatGPT and ask all the stupid questions. ChatGPT4 is recommended here.

So the tool which I developed can control Stable Diffusion and Deforum via an API. I programmed it in Javascript, with NodeJS and React. And like I said, ChatGPT did most of the work.

The application allows the user to enter a text prompt and hit a generate button. Then a video gets created. 

When the user changes the text and hits the button again, the new video continues where the old video has stopped. Like this it is possible to create long videos step by step.

Screenshot of the image and video generator which I developed

I am still amazed that it works. 

I feel like everything is possible now. To control AI image and video generation via coding opens so many doors. And like I said, it is not difficult.

In a couple of weeks I plan to release my tool and code, so other people can use it. Maybe I could even make a real app out of it, that people can use it online.

I hope that this quite long and nerdy article was interesting for some of you. And I actually just scratched the surface…

That’s that.

Much love!
Marius

From Digital to Physical: A Creator's Retreat in Portugal

My Time Off the Grid: A Quick Dive into a Portugal Village Life

2024-04-07 Marius Jopen

Innovating AI Art with Stable Diffusion and Deforum: The Power of Custom APIs

From Idea to Implementation: My Experience Developing an AI Animation Tool

2024-03-29 Marius Jopen

Beyond Pixels: The Journey of AI Art into the Deutsche Bundestag

Marius teams up with Paula Kühn to present an innovative AI art piece in the Deutsche Bundestag.

2024-03-22 Marius Jopen

The Art of Listening: Navigating the Sounds of NTS Radio

Join me on a personal exploration of NTS Radio's live shows and archives, where every genre offers a unique auditory adv...

2024-03-14 Marius Jopen

Reclaiming Digital Autonomy: An Artist's Guide to Data Management and Security

Insights on Balancing Convenience and Security While Managing Terabytes of Creative Content

2024-03-08 Marius Jopen

Blending Art and Astronomy at the European Southern Observatory

Follow my journey through exclusive insights and innovative AI video performances at a leading global astronomical obser...

2024-03-01 Marius Jopen

Maximizing Your Workflow with Stable Diffusion: The Ultimate DeForum Cheat Sheet Guide

Master Stable Diffusion effortlessly: Unveil secrets with our guide and DeForum Cheat Sheet.

2024-02-28 Marius Jopen

Visual AI Mastery: Revolutionizing Planetarium Shows with 360° Animations

An Innovator's Guide to Merging Artificial Intelligence with Astronomical Wonder

2024-02-23 Marius Jopen

Unlocking Creative Visions: Dive into the World of Custom Loras with Super SDXL

Exploring the Frontier of Digital Art: A Guide to the Top SDXL Loras for Enhanced Stable Diffusion Projects

2023-11-09 Marius Jopen