Skip to content
AI News HubLIVE
Original source4 min read

Code-driven AI illustrations are more useful than images from dedicated image models

Summary

Simon Willison argues that frontier LLMs released in late 2026 have become much better at visual reasoning and design, and that generating images through code (SVG, HTML Canvas, Blender scripts, etc.) produces editable, precise results that avoid the glitches and flatness of bitmap-output image models. He demonstrates with a Gemini 4 Neon-generated Kakapo conservation poster, and notes that Anthropic's code-driven Claude Design now fills a gap he once thought required a dedicated image model—another instance of the bitter lesson.

Code-driven AI illustrations are more useful than images from dedicated image models
Report an error

The correction channel is not available yet. You can copy the article reference below for later.

Correction instructions
Read article

Code-driven AI illustrations are more useful than images from dedicated image models

Simon Willison’s Weblog

Newsletter

Code-driven AI illustrations are more useful than images from dedicated image models

28th November 2026

An interesting trend in frontier LLMs released in the second half of 2026 is that they tend to be much better at visual reasoning and creative “design” than their predecessors. If you ask these text-output models to create a 2D image (or a 3D model, as discussed here previously), you’re very likely to get a useful result, and you may even get one that’s aesthetically impressive. Most importantly, because these images are defined using code you (or the model) can make further edits to them without any of the weirdness that comes from iterating with a text-input, image-output model.

Poster design with Gemini 4 Neon

Gemini 4 Neon is getting some buzz for its 2D design skills, so I decided to try it out in AI Studio starting with the prompt:

Create an SVG poster promoting the Kakapo recovery project, research details first, make the poster look really cool and give it a 1970s graphic design

It took some iteration, partly because AI Studio doesn’t render SVGs, so the models there can’t spot visual mistakes without assistance.

Make the kakapo a bit more realistic, especially the face (image search for references)

Then:

[IMAGE] The text here doesn't fit the pill, fix it

And:

[IMAGE 2], [IMAGE 3] Also these

Here’s the full transcript, exported from AI Studio as Markdown because I couldn’t find a way to share a session that didn’t require a Google login to view.

The end result is pretty solid:

AI Studio ran Google searches to find those numbers—I’ve checked and they are all correct. I like that it included red rimu tree fruit on the branch, since those are essential for the breeding season.

Whether or not you like the poster, the key thing about it is that everything is editable. You can directly edit the text in the SVG, or you can open it in Inkscape or Adobe Illustrator or Boxy SVG and edit it visually.

It’s not just SVG

I have a well documented fondness for SVG generation, but it’s not the only game in town.

A model hooked up to a coding agent environment can execute code to generate images. This opens up a whole realm of possibilities—generated image files, HTML and CSS, 2D HTML Canvas elements, Blender scripts, WebGPU shaders, PDF... any image mechanism that can be represented by a file on disk or the output of a script can be targeted by a model with a coding agent.

One of the reasons vibe game development has exploded recently is that models like Claude Opus 5.5 and GPT-6 Astra and Gemini 4 Neon are capable of creating good-enough quality game assets—3D models, textures, sprites, etc—entirely through writing code.

Building them with code means that tweaking, reusing, and remixing them is a case of the model writing even more code.

In comparison to image models

Most AI image generation tools use models that directly output bitmap graphics. Stable Diffusion, DALL-E, and Midjourney were early leaders in that space. The past ~15 months have seen the emergence of LLM-driven variants of this like Google’s Nano Banana and OpenAI’s ChatGPT Images. These have become competent at editing existing images and preserving details, which means you can iterate on a design over multiple conversation turns without it devolving into a mess.

They still have their limitations. They can produce weird glitches which become apparent when you zoom in on the details. They output text shapes directly from the model, which means you don’t get the same guaranteed consistency that you would have with a real font-based typography system.

They are also inherently flat. You can describe changes you want in text, or draw annotations on an image to describe what you want, but you can’t take control of an individual element or layer and directly manipulate it to get exactly what you want.

Images created through generated code solve all of those problems.

If you are generating photorealistic images then dedicated image models still have their place. For most of what I care about—explanatory diagrams, editable poster designs, UI components, visualizations, assets for games—code-driven images feel to me like a better bet.

I thought Anthropic was at a disadvantage

After Nano Banana and ChatGPT Images I thought Anthropic had a serious product gap on their hands.

OpenAI and Google both had excellent image generation models as part of their product suites. They even had generative video models—Google still does with Veo and now Omni, OpenAI sunset Sora.

The business world still runs on PowerPoint, so if you’re selling an enterprise contract having a great image generation model seemed to me like it would be an expected feature for many customers.

These days Claude can quite happily churn out visually compelling presentations and website designs, and Claude Design provides a full design system platform. All built around code-driven images!

This feels like another variant of the bitter lesson: I was convinced a specialist image model was necessary to serve customers with design problems. It turns out the text-output LLMs just kept getting more capable until they could handle visual design by writing code.

More recent articles

Three LLM inflection points in twelve months - 24th November 2026

Ladybird's first alpha release - 23rd November 2026

Running the full server-side Datasette Python app in the browser with service workers and Pyodide - 17th November 2026

Locating the source of a mysterious beep with Claude - 9th November 2026

This is Code-driven AI illustrations are more useful than images from dedicated image models by Simon Willison, posted on 28th November 2026.

design 84

svg 57

ai 2,342

openai 482

generative-ai 2,080

llms 2,044

anthropic 359

claude 331

gemini 206

text-to-image 48

coding-agents 272

Previous: Three LLM inflection points in twelve months

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe

Disclosures

Colophon

©

2002

2003

2004

2005

2006

2007

2008

2009

2010

2011

2012

2013

2014

2015

2016

2017

2018

2019

2020

2021

2022

2023

2024

2025

2026

Key points and analysis

Article intelligence

EngineersAdvanced

Key points

  • Code-driven image generation (SVG, HTML/CSS, Canvas, Blender, WebGPU) yields fully editable outputs, unlike bitmap models that lock elements and text shapes.
  • Gemini 4 Neon in AI Studio iteratively produced an accurate Kakapo poster with verified research data; the SVG can be edited directly in Inkscape or Illustrator.
  • Dedicated image models still matter for photorealistic images, but for diagrams, posters, UI, visualizations, and game assets, code-driven images are often better.
  • Anthropic's Claude Design shows that general text LLMs writing code can handle visual design, reinforcing the bitter lesson over specialized image models.

Highlights and analysis are generated automatically and may contain errors. Check the original source.