Threw together a little auto-generating script with transformers + Pillow.

AI art searches are blowing up in Latin America, with ChatGPT and various generation models being the hottest keywords. Popular as they are, when it comes to actually usable automation solutions, you still have to build your own stuff.

My approach is pretty basic: use transformers in Python for text generation, Pillow handles image creation and saving to disk, and it can batch produce quickly. For higher quality, I hook into DALL-E’s API and use off-the-shelf pretrained models. The most cost-effective part is scheduling—just set up GitHub Actions to run scripts on a timer. Can’t say it’s free, but for personal small-scale use, it’s enough and saves you from needing a dedicated server. The whole setup isn’t anything fancy, but it works as a pipeline—drop in a prompt, and it auto-generates images and stores them. It’s perfect for scenarios where you need to scale up output without clicking manually. The code isn’t complex; anyone who needs it can follow along and set it up.

That “Pillow” step is really just saving the file to disk after the API returns.

If you’re generating images in bulk, watch out for copyright issues and platform rules.

Good idea, but you’ll have to rely on the API to carry the quality.

Yeah, I use the scheduled task trick too.