Generating memes using Bing AI, Stable Diffusion WebUI, and the shitpost
CLI tool.
- Install the Stable Diffusion WebUI together with any model you like, then run it with the
--api
command line option. - Install a CLI tool that can generate memes. Easiest is to use
shitpost
for Linux (available in the AUR and probably for Ubuntu as well). Alternatively, you could usememegen
for MacOS (click here for instructions), but it requires slight code changes. - Add your
_U
Bing AI token as an environment variable namedBING_AI
. Check here for more instructions. - Run the tool using
node src/bing-memes.js
(assuming you installed NodeJS, if not, please do :D). - Sell the memes on any NFT broker.
- Stonks.
For this project, I opted for a single code file: src/bing-memes.js
. I made some convenience functions for chatting with Bing, extracting its output, and generating Stable Diffusion images with the WebUI. Then I just loop semi-endlessly to make Bing generate endless memes.
Demo output for 300 memes can be found in the demo-output/
folder. Here are some I consider funny:
Elon open-sourcing the Twitter algorithm? Well, Elon, take this! Unlimited dank memes! You have nothing on me... except for a few billions in cash :D