← 返回选刊

Simon Willison / 文章

专门生图模型改的是整张位图,他用代码把鸮鹦鹉海报做成了可直接改字的SVG

Simon Willison用Gemini 4 Neon在Google AI Studio里做了一张1970年代风格的鸮鹦鹉保护海报。海报上的数字他都核对过,而且因为图是用代码定义的,文字和图层都可以再改。

乔木改写

2026年下半年出来的一批前沿文本模型,在视觉推理和设计上比前代强了不少。你让它们做一张二维图,甚至做三维模型,常常能得到能用的结果,有时观感也不错。对Simon Willison来说,更关键的是这些图是用代码定义的,作者或模型可以继续改,不会像“文本进、图片出”的生图模型那样,一改就变形。

这是开发者Simon Willison 2026年11月28日发表在个人博客上的文章。他当天也在X账号@simonw上发了同一条链接。文中的判断是他的个人观察和一次实际试验,不是Google或Anthropic的产品公告。

用Gemini 4 Neon做一张鸮鹦鹉海报

Gemini 4 Neon最近因为二维设计能力受到关注。Willison在Google AI Studio里试了一次,起始提示是:先调研鸮鹦鹉(Kakapo)恢复项目的细节,再做一张看起来很酷、带1970年代平面设计风格的SVG海报。

他改了好几轮。其中一个原因是AI Studio本身不渲染SVG,模型看不见自己的画面错误,必须有人帮忙指出来。

他后来让模型把鸮鹦鹉画得更写实一些,尤其是脸,并让它用图片搜索找参考。文字塞不进胶囊形色块时,他把出问题的局部截图贴回去,要求修改。完整对话记录被他从AI Studio导出成Markdown,并用自己的工具渲染,因为官方分享链接需要Google登录才能打开。

最终这张海报看起来相当完整。

Retro-style illustrated conservation poster in cream, dark teal, orange and yellow. Header text: "★ AOTEAROA NEW ZEALAND • TAONGA CONSERVATION ★", large title "KĀKĀPŌ", banner "RECOVERY PROGRAMME • PROTECT THE NIGHT PARROT". Centre: a plump green kākāpō with a grey beak and whiskered face perched on a branch with red rimu berries, in front of concentric orange and yellow rings on a starry night-sky arch, with curved text "★ STRIGOPS HABROPTILUS • WORLD'S ONLY FLIGHTLESS NOCTURNAL PARROT ★". Orange starburst badge: "2026 RECORD 325 BIRDS ALIVE UP FROM 51". Three stats below: "1995 → 2026 51 TO 325 75-YEAR POPULATION HIGH", "2026 RIMU MAST 90 CHICKS SINGLE-SEASON RECORD", "PREDATOR-FREE 3 ISLANDS WHENUA HOU • PUKENUI • TE KĀKAHU". Footer banner: "ADOPT A KĀKĀPŌ • KEEP SANCTUARIES WILD", "DOC TE PAPA ATAWHAI & NGĀI TAHU • DOC.GOVT.NZ/KAKAPO".
原帖图片无法显示?去原文查看 ↗

海报上写着:2026年仍有325只鸮鹦鹉存活,从51只增加上来;1995年到2026年,从51只到325只,是75年来的种群高点;2026年rimu丰年有90只雏鸟,是单季纪录;无捕食者的3座岛屿是Whenua Hou、Pukenui和Te Kākahu。AI Studio用Google搜索找到这些数字。Willison写道,他都核对过,数字是对的。他还喜欢模型在栖枝上画了红色的rimu果实,因为他查到这些果实对繁殖季很重要,文中链向《卫报》2026年1月的相关报道。

不管你喜不喜欢这张海报的风格,Willison认为关键在于一切都可编辑。你可以直接改SVG里的文字,也可以用Inkscape、Adobe Illustrator或Boxy SVG做可视化编辑。

不只是SVG

Willison自己一直偏爱SVG生成,但他强调这不是唯一路径。

如果模型接上能执行代码的编程智能体环境,就可以用代码生图。范围包括生成的图像文件、HTML和CSS、二维HTML Canvas、Blender脚本、WebGPU着色器、PDF。只要一种出图方式能落成磁盘上的文件,或一段脚本的输出,带编程智能体的模型就可以朝这个方向做。

他提到,最近“氛围做游戏”兴盛的原因之一,是Claude Opus 5.5、GPT-6 Astra和Gemini 4 Neon已经能完全靠写代码,做出质量够用的游戏素材,比如三维模型、贴图和精灵图。他另有一篇2026年10月28日的文章专门谈这件事。

用代码来做,意味着调整、复用和混搭,也还是让模型继续写代码。

和专门生图模型比,差在哪里

多数AI生图工具直接输出位图。早期领先的是Stable Diffusion、DALL-E和Midjourney。过去大约15个月里,又出现了由大语言模型驱动的变体,比如Google的Nano Banana和OpenAI的ChatGPT Images。它们已经能在多轮对话里改已有图片并保住细节,迭代时不太容易整张图崩掉。

局限仍然在。放大细节时,会出现奇怪的毛刺。文字是模型直接画出来的字形,做不到真正字体排印那样的稳定性。

它们本质上也是平的。你可以用文字描述想改的地方,或在图上做标注,但没法抓住单个元素或图层,精确地把它挪到你要的位置。

文章里有一条后来补上的更新:写稿时他不知道还有新进展。比如Ideogram 4.0宣称,可以通过结构化JSON提示,做边界框式的版面控制。这是产品方的说法,文中没有展示他的实测。

他认为,用生成的代码来做图,能解决上面这些问题。

如果你要的是照片级真实感,专门的生图模型仍有位置。就Willison自己更关心的用途来看,比如解释性图示、可编辑海报、界面组件、可视化,以及游戏素材,代码驱动的图是更好的选择。

他曾以为Anthropic少了一块

Nano Banana和ChatGPT Images出来后,Willison觉得Anthropic在产品上缺了一块。

OpenAI和Google都把优秀的生图模型做进了产品组合,甚至还有生成视频的模型。他写道,Google现在还有Veo,以及现在的Omni;OpenAI已经停掉了Sora。企业里还在大量使用PowerPoint,谈企业合同时,在他看来,很多客户会把出色的生图模型当成一项预期功能。

而现在,Claude已经能做出视觉上有说服力的演示文稿和网站设计,Claude Design也提供了一套完整的设计系统平台。这些都建立在代码生图上。

他觉得这像是“苦涩的教训”的又一个变体:他曾经确信,要服务有设计需求的客户,必须有专门的生图模型。后来的情况是,只输出文本的大语言模型一直在变强,直到它们能靠写代码处理视觉设计。

如果你要的是可修改的示意图、海报、界面或游戏素材,可以先让文本模型写出SVG或生成代码,再自己改文字和图层。需要照片级真实感时,再去用专门的生图模型。Ideogram这类产品提出的版面控制,仍要以实际做出来的结果为准。

原文

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

Retro-style illustrated conservation poster in cream, dark teal, orange and yellow. Header text: "★ AOTEAROA NEW ZEALAND • TAONGA CONSERVATION ★", large title "KĀKĀPŌ", banner "RECOVERY PROGRAMME • PROTECT THE NIGHT PARROT". Centre: a plump green kākāpō with a grey beak and whiskered face perched on a branch with red rimu berries, in front of concentric orange and yellow rings on a starry night-sky arch, with curved text "★ STRIGOPS HABROPTILUS • WORLD'S ONLY FLIGHTLESS NOCTURNAL PARROT ★". Orange starburst badge: "2026 RECORD 325 BIRDS ALIVE UP FROM 51". Three stats below: "1995 → 2026 51 TO 325 75-YEAR POPULATION HIGH", "2026 RIMU MAST 90 CHICKS SINGLE-SEASON RECORD", "PREDATOR-FREE 3 ISLANDS WHENUA HOU • PUKENUI • TE KĀKAHU". Footer banner: "ADOPT A KĀKĀPŌ • KEEP SANCTUARIES WILD", "DOC TE PAPA ATAWHAI & NGĀI TAHU • DOC.GOVT.NZ/KAKAPO".
原帖图片无法显示?去原文查看 ↗

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:

Retro-style illustrated conservation poster in cream, dark teal, orange and yellow. Header text: "★ AOTEAROA NEW ZEALAND • TAONGA CONSERVATION ★", large title "KĀKĀPŌ", banner "RECOVERY PROGRAMME • PROTECT THE NIGHT PARROT". Centre: a plump green kākāpō with a grey beak and whiskered face perched on a branch with red rimu berries, in front of concentric orange and yellow rings on a starry night-sky arch, with curved text "★ STRIGOPS HABROPTILUS • WORLD'S ONLY FLIGHTLESS NOCTURNAL PARROT ★". Orange starburst badge: "2026 RECORD 325 BIRDS ALIVE UP FROM 51". Three stats below: "1995 → 2026 51 TO 325 75-YEAR POPULATION HIGH", "2026 RIMU MAST 90 CHICKS SINGLE-SEASON RECORD", "PREDATOR-FREE 3 ISLANDS WHENUA HOU • PUKENUI • TE KĀKAHU". Footer banner: "ADOPT A KĀKĀPŌ • KEEP SANCTUARIES WILD", "DOC TE PAPA ATAWHAI & NGĀI TAHU • DOC.GOVT.NZ/KAKAPO".

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.