Text models write code to generate illustrations, and the results are easier to edit than image models' output

This article has been automatically translated.
Loading article...
Merry Christmas & Happy New Year!
Loading article...

This article has been automatically translated.
Have you ever run into this? You need a diagram for the product docs, so you run an image generation API and get a picture you're reasonably happy with. Then the product manager says, "Change that label on the left to Chinese." All you can do is rewrite the prompt and roll again, and the new composition is completely different. The problem isn't whether the model draws well. The problem is that what you got is a bitmap you can't take apart.
In a blog post on November 28, 2026, Simon Willison proposed an alternative: have frontier large language models that output text write code to generate illustrations directly. He observed that frontier models released in the second half of 2026 are considerably better at visual reasoning and "design" than their predecessors, and that asking them for SVG, HTML/CSS, Canvas, Blender scripts, or even WebGPU shaders often produces usable results. For developers who need to fine-tune repeatedly, fit assets into a design system, or localize them, this approach is worth evaluating seriously.
Willison demonstrated with an SVG poster for a "kākāpō conservation project." He had the model research the subject first, then create the poster in a 1970s graphic design style. The result contained correct data and even depicted the red rimu tree fruit that the breeding season depends on.
His assessment of the poster is the key part: whether or not you like the design, the point is thateverything is editable. You can change the text directly in the SVG, or open it in Inkscape, Adobe Illustrator, or Boxy SVG for visual adjustments.
That sentence gets to the heart of the decision. A bitmap is a single opaque surface. You can describe in words what you want changed, and you can draw annotations on the image, but you can't grab a single element or layer and manipulate it directly. An illustration generated from code is a collection of addressable parts. Changing a label, a color, or a shape doesn't require regenerating the whole image.
So the criterion isn't "which model produces prettier pictures." It's "will I need to change one specific element later?" If the answer is yes, the code approach has already won on editability, regardless of aesthetics.
Willison lists three specific shortcomings of dedicated image models, and the code approach addresses each one directly:
But note that the code approach doesn't automatically fix everything. A model writing SVG can still misplace shapes, and text can still overflow its container. Willison's demo went through several rounds of iteration, one of which included the feedback "the text here doesn't fit inside the capsule shape, fix it."
In other words, the code approach redefines "reliable" as "reviewable." You don't need to trust the model blindly; you need to be able to open the file, see the problem, and point it out. That's a more realistic promise, and an easier one to keep.
There's an engineering detail in Willison's demo that's easy to overlook: the AI Studio he used doesn't render SVG, so the model couldn't see what it had drawn and therefore couldn't spot visual errors.
That directly determines the reliability of the whole pipeline. If the model can write code but has never seen the rendered result, layout bugs can carry all the way through to the final product. So your toolchain needs to support this loop:
Step 2 is the most underrated part, and it's the part that came up again and again in Willison's demo.
Willison is careful to stress that SVG is only one option. A model connected to a coding agent environment can execute code to generate images, which suddenly multiplies the possible outputs: generated image files, HTML and CSS, 2D Canvas elements, Blender scripts, WebGPU shaders, PDFs.
What they have in common:the output is a file on disk, or the output of a script. That's exactly why it can be adjusted repeatedly and rewritten further by the model.
He mentions the recent explosion of "vibe game development," partly because models like Claude Opus 5.5, GPT-6 Astra, and Gemini 4 Neon can produce adequate game assets—3D models, textures, sprites—purely by writing code. Building with code means that adjusting, reusing, and mixing and matching are all just a matter of having the model write a bit more code.
It's worth noting that the original article doesn't offer a quality comparison between formats, so the choice of format should be driven by the target environment, not by guesses about which one the model is "better at."
Willison doesn't declare a winner. Instead he draws a clear line:for photorealistic results, dedicated image models still have a place; for structured, editable output, the code approach is the better fit.
Following that logic, you can sort the assets you have on hand:
He leaves himself some room too, saying these scenarios "seem like the better choice to me"—a judgment, not a benchmark. Readers should treat it as a starting hypothesis and verify it on their own assets.
Separately, in an update to the article he corrected himself: Ideogram 4.0 claims to offer "bounding-box layout control" through structured JSON prompts. That shows image models are also catching up on structured control, and some of the code approach's advantages will erode over time.
Willison also describes a self-correction. After Nano Banana and ChatGPT Images appeared, he believed Anthropic had a clear product gap—OpenAI and Google both had excellent image generation models, and the business world still runs on PowerPoint, so selling enterprise contracts probably requires that capability.
But now Claude can produce visually appealing presentations and website designs quite smoothly, and Claude Design offers a complete design system platform.All of it built on code-generated images.
He sees this as another variant of the "bitter lesson": he was convinced that serving clients with design needs required dedicated image models, but text models kept getting stronger until they could handle visual design just by writing code.
This article is a practitioner's account of experience, with no benchmarks, no failure-rate data, and no cost comparison. What it offers is a framework for judgment and a reproducible loop, not conclusions you can copy directly.
Also, the model names and versions mentioned in the article come from the original text; this article makes no additional inferences. If you plan to roll out this approach in your team, it is advisable to first pick a real, small asset and run through the complete loop, confirming that the two steps—rendering the output back and saving the source code—are truly feasible in your toolchain, before expanding the scope.