Code-driven AI illustrations are more useful than images from dedicated image models
Simon Willison 观察到,2026 年下半年发布的前沿 LLM 在视觉推理与设计能力上大幅跃升,通过生成 SVG、HTML Canvas、Blender 脚本等代码来产出图像,比传统文生图模型更可控、可编辑、可迭代,尤其适合海报、游戏素材等工程化场景。
核心看点
- 趋势判断:2026 年下半年发布的前沿 LLM(如 Gemini 4 Neon、Claude Opus 5.5、GPT-6 Astra)在视觉推理与创意设计上显著强于前代,直接让文本模型生成 2D 图像或 3D 模型即可获得可用甚至美观的结果。
- 关键优势在“可编辑”:代码驱动的图像(SVG、HTML/CSS、Canvas、Blender 脚本、WebGPU 着色器、PDF 等)本质是文件或脚本输出,用户或模型可继续精确修改,避免文生图模型“黑盒迭代”的怪异感。
- 实测案例:作者用 Gemini 4 Neon 在 AI Studio 生成“鸮鹦鹉保护项目”1970 年代风格 SVG 海报,经多轮对话修正文字排版与鸮鹦鹉面部细节,最终成品文字可直接在 SVG 中编辑,也可导入 Inkscape/Illustrator 可视化调整。
- 游戏开发受益:vibe game development 爆发的原因之一,正是这些模型能通过写代码生成质量足够的 3D 模型、纹理、精灵图等游戏素材,且调整、复用、混搭只需让模型继续写代码。
- 专用图像模型仍有边界:Stable Diffusion、DALL-E、Midjourney 及 Nano Banana、ChatGPT Images 等擅长照片级真实感与多轮图像编辑,但存在细节放大后出现瑕疵、文字排版一致性无保证、图层不可直接操控等局限。
技术与实战解读
代码驱动图像的核心工程价值在于把“像素”变成“可编程资产”。当模型接入具备代码执行能力的 Agent 环境后,输出目标可以是任何能表示为磁盘文件或脚本输出的图像机制,这为海报设计、UI 原型、数据可视化、游戏素材管线提供了统一的可版本化、可 diff、可复用的工作流。
作者也指出,AI Studio 不渲染 SVG,模型无法自行发现视觉错误,需要人工截图反馈——这提示实际落地时应为模型配备渲染/截图工具形成闭环。对于照片级真实感需求,专用图像模型仍是首选;但面向解释性插图、设计稿与工程素材,代码生成路线在可控性与迭代效率上已明显占优。
Code-driven AI illustrations are more useful than images from dedicated image models
NewsletterSponsored by: Greptile — Review code faster with Greptile’s new PR inbox. It puts everything you need to understand a change and merge it on one screen.
Try it for freeCode-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.
Update: There has been innovation here that I was unaware of when I wrote this article. Ideogram 4.0 for example claims “bounding-box layout control” through structured JSON prompting.
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.
Posted
28th November 2026 at 5:45 pm · Follow me on
Mastodon,
Bluesky,
Twitter or
subscribe to my newsletterMore recent articles
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 272Previous: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