# A practical guide to AI image generation, from diffusion to agents

- Source: Hacker News · AI (150+ points)
- Published: 2026-10-20T19:22:39.000Z
- Bad Influence: https://badinfluence.news/items/mn4zjuwt306lz7jinrgf25u5x
- Original: https://danielball.com/notes/ai_image_generation.html

## Summary

This guide explains how AI image models work, from diffusion to multimodal models, and compares ChatGPT with direct API use for generating images. It is based on the author's own experiments calling several image providers from Python, including pixel art sprites, card table backgrounds and restaurant posters. It also covers cost per image, prompting tips and how to integrate generation into code and agents.
