Simon Willison Finds Code-Driven AI Illustrations More Useful
Code-driven AI illustrations are more useful than images from dedicated image models, according to Simon Willison. They offer editable results and avoid weird glitches.
Original reporting · simonwillison.net
Original: “Code-driven AI illustrations are more useful than images from dedicated image models”
Read “Code-driven AI illustrations are more useful than images from dedicated image models” at Simon Willison →
How this was written. GDS wrote this article with a language model from Simon Willison’s reporting (model: @cf/meta/llama-3.3-70b-instruct-fp8-fast); it describes that reporting rather than adding to it. The original, linked above, is the full story.
Key points from Simon Willison’s report
- Code-driven AI illustrations offer editable results and avoid weird glitches.
- They provide more flexibility and control compared to dedicated image models.
- Code-driven images are suitable for various use cases, including explanatory diagrams, editable poster designs, and game assets.
A recent trend in frontier LLMs is their improved visual reasoning and creative design capabilities, as seen in models released in the second half of 2026. These text-output models can create useful and aesthetically impressive 2D images or 3D models. Because the images are defined using code, they can be edited without the issues that come with iterating with a text-input, image-output model.
Simon Willison tested Gemini 4 Neon's 2D design skills in AI Studio, starting with a prompt to create an SVG poster promoting the Kakapo recovery project. The model took some iteration to produce a solid result, but the end product was editable and included accurate details, such as red rimu tree fruit on the branch.
The key advantage of code-driven images is that everything is editable, allowing for direct editing of text in the SVG or visual editing in programs like Inkscape or Adobe Illustrator. This is not limited to SVG, as models can execute code to generate images in various formats, including HTML and CSS, 2D HTML Canvas elements, and Blender scripts.
In comparison to dedicated image models like Stable Diffusion, DALL-E, and Midjourney, code-driven images offer more flexibility and consistency. They avoid weird glitches and allow for guaranteed consistency with font-based typography systems. Additionally, code-driven images are not inherently flat, enabling direct manipulation of individual elements or layers.
The emergence of LLM-driven variants like Google's Nano Banana and OpenAI's ChatGPT Images has improved the capabilities of dedicated image models. However, they still have limitations, such as producing weird glitches and lacking the same level of control as code-driven images. Update: Some models, like Ideogram 4.0, claim to offer features like bounding-box layout control through structured JSON prompting.
For most use cases, such as explanatory diagrams, editable poster designs, UI components, visualizations, and game assets, code-driven images seem to be a better option. Dedicated image models may still be suitable for generating photorealistic images, but code-driven images offer more flexibility and control.
The development of code-driven images has also impacted the business world, where companies like Anthropic can now offer visually compelling presentations and website designs built around code-driven images. This shift has highlighted the importance of text-output LLMs in handling visual design tasks by writing code.
Questions and answers
What is the main advantage of code-driven AI illustrations?
The main advantage is that everything is editable, allowing for direct editing of text or visual editing in various programs.
How do code-driven images compare to dedicated image models?
Code-driven images offer more flexibility and control, avoiding weird glitches and providing guaranteed consistency with font-based typography systems.
What are the potential use cases for code-driven AI illustrations?
They are suitable for various use cases, including explanatory diagrams, editable poster designs, UI components, visualizations, and game assets.



