代码驱动的 AI 插图比专用图像模型的图更实用

用 Gemini 4 Neon 设计海报
Gemini 4 Neon 的 2D 设计能力最近引起了一些关注,所以我决定在 AI Studio 里试一试,先从这条提示词开始:
创建一张宣传鸮鹦鹉(Kakapo)恢复项目的 SVG 海报,先研究相关细节,让海报看起来非常酷,并赋予它 1970 年代的平面设计风格
这经历了几轮迭代,部分原因是 AI Studio 不渲染 SVG,所以里面的模型在没有协助的情况下无法发现视觉上的错误。
让鸮鹦鹉再逼真一点,尤其是脸部(用图像搜索找参考)
[IMAGE] 这里的文字没有适配这个胶囊形框,修一下
[IMAGE 2]、[IMAGE 3] 还有这几个
以下是完整的对话记录,以 Markdown 格式从 AI Studio 导出,因为我找不到一种无需 Google 登录就能查看的会话分享方式。
最终结果相当不错:
AI Studio 通过 Google 搜索来找出这些数字——我核对过,它们全都是正确的。我喜欢它把枝头的红色 rimu 树果实也画了进去,因为那些对繁殖季来说至关重要。
无论你是否喜欢这张海报,关键在于它的所有内容都可编辑。你可以直接在 SVG 中编辑文本,也可以用 Inkscape、Adobe Illustrator 或 Boxy SVG 打开它进行可视化编辑。
我对 SVG 生成的偏爱有据可查,但它并不是唯一的选择。
一个接入编程智能体环境的模型可以执行代码来生成图像。这开启了一整片可能性——生成的图像文件、HTML 和 CSS、2D HTML Canvas 元素、Blender 脚本、WebGPU 着色器、PDF……任何能由磁盘上的文件或脚本输出所表示的图像机制,都可以成为配备编程智能体的模型的目标。
vibe 游戏开发近来之所以爆发式增长,原因之一就是 Claude Opus 5.5、GPT-6 Astra 和 Gemini 4 Neon 这类模型能够完全通过编写代码,制作出质量足够好的游戏素材——3D 模型、纹理、精灵图等等。
用代码构建它们意味着,调整、复用和混剪它们不过是让模型写出更多代码而已。
与图像模型相比
大多数 AI 图像生成工具使用的模型会直接输出位图图形。Stable Diffusion、DALL-E 和 Midjourney 是这一领域早期的领先者。过去约 15 个月里,出现了由 LLM 驱动的变体,例如 Google 的 Nano Banana 和 OpenAI 的 ChatGPT Images。这些工具已经能够胜任编辑现有图像并保留细节,这意味着你可以在多轮对话中反复迭代一个设计,而不会让它变得一团糟。
它们仍有自身的局限。它们可能产生奇怪的瑕疵,放大细节时就会显现出来。它们直接从模型输出文字形状,这意味着你无法获得像真正基于字体的排版系统那样有保证的一致性。
它们本质上也是扁平的。你可以用文字描述想要的改动,或在图像上画标注来说明你的需求,但你无法控制单个元素或图层,并直接操纵它来得到你想要的确切效果。
通过生成代码创建的图像解决了所有这些问题。
如果你要生成照片级真实感的图像,那么专用图像模型仍有其用武之地。但对于我关心的大多数内容——说明性图表、可编辑的海报设计、UI 组件、可视化、游戏素材——代码驱动的图像在我看来是更好的选择。
我曾以为 Anthropic 处于劣势
在 Nano Banana 和 ChatGPT Images 之后,我认为 Anthropic 手上有一个严重的产品缺口。
OpenAI 和 Google 的产品套件中都有出色的图像生成模型。它们甚至有生成式视频模型——Google 仍有 Veo,如今还有 Omni;OpenAI 则已停用 Sora。
商业世界仍然依赖 PowerPoint,所以在我看来,如果你在推销企业合同,拥有一个出色的图像生成模型对许多客户来说会是一项他们期待具备的功能。
如今 Claude 可以相当轻松地批量产出视觉上引人注目的演示文稿和网站设计,而 Claude Design 提供了完整的设计系统平台。这一切都围绕代码驱动的图像构建!
这感觉像是「苦涩的教训」的另一个变体:我曾确信,必须有一个专门的图像模型才能服务于有设计问题的客户。结果证明,以文本输出为主的 LLM 只是能力不断增强,直到它们能通过编写代码来处理视觉设计。
Ladybird 首个 alpha 版本发布——2026年11月23日
这是 Simon Willison 于 2026年11月28日发布的《代码驱动的 AI 插图比专用图像模型生成的图像更有用》。
每月赞助我 10 美元,即可获得一份精选邮件摘要,涵盖当月最重要的 LLM 进展。
付钱给我,让我少发点东西给你!
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Code-driven AI illustrations are more useful than images from dedicated image models)
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)
[IMAGE] The text here doesn't fit the pill, fix it
[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.
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.
Ladybird's first alpha release - 23rd 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.
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!
原文为英文,正文由自动抓取并保留原文。
原文发布于 Simon Willison(Code-driven AI illustrations are more useful than images from dedicated image models),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。