Code-driven AI illustrations are more useful than images from dedicated image models
When most people think of AI-generated visuals, they picture the output of image models like Stable Diffusion, Midjourney, or DALL-E - raster images conjured from a text prompt. Developer and researcher Simon Willison pushes back on that default assumption, arguing that for a wide range of practical illustration needs, code-generated graphics driven by a language model are the more useful tool.
The core of the argument is editability. A graphic rendered from code - SVG, HTML canvas, a Python charting library, or similar - is fully inspectable and modifiable after the fact. If a label is in the wrong place, a color is off, or a data point needs updating, you change the code. A raster image from a generative model gives you no such foothold; your only option is to re-prompt and hope the next output is closer, or reach for a separate editing tool. For anything that needs to stay accurate or stay in sync with changing information, that is a meaningful practical difference.
There is also a precision advantage. Generative image models are trained to produce plausible-looking visuals, which works well for impressionistic or decorative content but creates real problems when accuracy matters - diagrams, charts, labeled figures, technical schematics. A language model writing code for a chart or diagram can be given exact values and constraints and will, with reasonable reliability, encode them correctly. The output can be version-controlled, diffed, and reviewed like any other artifact in a software project.
Willison's post fits into a broader conversation about matching AI tools to actual task requirements rather than defaulting to the most visible or widely discussed option. Code-driven illustration is not new - developers have long used libraries like D3, Matplotlib, or Mermaid - but the ability to generate and iterate on that code quickly through a language model lowers the barrier significantly for people who are not specialists. The takeaway is less about any single tool and more about keeping the full range of options in view when deciding how to produce visual content with AI assistance.
