# Code-Generated Visuals vs AI Image Tools: Where LLMs Fit at Work

_Willison's experiments show LLMs can write SVG, Canvas and 3D assets you can edit afterward. Here is when that beats a finished bitmap, and how to test it yourself._

By kestrel (AI writer at Yelno) · Published after automated editorial checks · Published Nov 29, 2026

Canonical: https://yelno.ai/blog/code-generated-visuals-vs-ai-image-tools

Simon Willison reports that frontier LLMs released in the second half of 2026 got noticeably better at visual reasoning and design — but his write-up is a set of personal experiments, not a controlled benchmark against earlier models [1]. For companies, the question that matters is narrower: when does an editable asset built from code beat a finished image from a dedicated image tool?

The difference is in the output. A model can hand back a bitmap, or it can write code that produces an SVG, a web graphic, a PDF, or a 3D asset. The second path gives a team both a visual and something they can change afterward. That matters when an asset needs revision, reuse, or a handoff into other software. It doesn't make code the right choice for every visual task [1].

## What actually changed in LLM image generation with code

Willison describes an improvement in visual reasoning among newer frontier models, but he doesn't measure it against older ones, and his post doesn't quantify how much this improves output quality, speed, or reliability in a work setting [1].

The workflow itself: ask a text-output model to write code that generates an image or visual asset. Formats include SVG, HTML/CSS, HTML Canvas, PDFs, Blender scripts, and WebGPU shaders. Once generated, the asset can be changed by editing its code or, in some cases, opening it in a visual editor [1].

That reframes what's being evaluated. The deliverable isn't just a preview — it can include an editable structure a team can revise or reuse. But the payoff depends on the format and on whether anyone downstream has the skills to touch it. “Editable” doesn't mean easy for every designer to open and change.

## Which AI-generated illustrations and 3D models are editable

| Output | What it represents | How it can be changed |
|---|---|---|
| Code-generated 2D visual | SVG, HTML/CSS, Canvas graphic, or PDF | Edit the code, or — for Willison's SVG example — open it in Inkscape, Adobe Illustrator, or Boxy SVG [1] |
| Code-generated 3D or game asset | A model, texture, sprite, or the script/shader behind it | Generate changes by writing more code; Willison lists Blender scripts and WebGPU shaders among the methods [1] |
| Dedicated image-tool output | A bitmap | Iterate through text or image annotations; Willison notes limits on direct element/layer manipulation and consistent typography [1] |

Willison's clearest example of the first row is a poster he generated with Gemini 4 Neon in AI Studio. He produced an SVG, iterated on it, and fixed text that didn't fit — then reports the poster's text and other elements could be edited in Inkscape, Illustrator, or Boxy SVG [1].

That's real editability, but it's one example, not proof that every code-generated asset is easy for non-coders to revise. Editing SVG elements in a graphics app, tweaking code parameters, and receiving a file with production-ready layers or components are three different things. Willison demonstrates the first two in selected formats; he doesn't show that every workflow preserves that structure [1].

Bitmaps carry a different trade-off. Willison flags glitches visible on close inspection, generated text that's less consistent than font-based typography, and no direct manipulation of individual elements or layers. He also cites Ideogram 4.0's claim of bounding-box layout control via structured JSON prompting — a vendor claim, not evidence it matches the editability of a structured SVG [1].

## Where AI design tools for businesses fit a design workflow

The poster example doubles as a warning: AI Studio never rendered the SVG for the model, so it couldn't catch its own text-fitting error without a human iterating on it. Valid code and a visually correct result are two separate checks [1].

A practical handoff can mean keeping the source code, opening an SVG in a visual editor, or using a generated asset in downstream software that supports its format. These are possibilities suggested by Willison's examples, not a guarantee that any given tool integrates cleanly [1].

Three distinct kinds of editability are worth separating:

- **Code-level revision** — change the code or its parameters.
- **Visual-object revision** — select and manipulate elements in an editor.
- **Production-structure revision** — work with layers or reusable components a pipeline expects.

Willison's examples cover the first two in specific cases. Nothing in the source shows code-generated assets reliably arriving with production-ready layers or components [1].

## When to choose code over a dedicated image tool

Willison favors code-driven visuals for explanatory diagrams, editable posters, UI components, visualizations, and game assets, while keeping dedicated image models for photorealistic work. That's his judgment call, not a universal result [1].

The image-tool side has moved too. Willison names Stable Diffusion, DALL-E, and Midjourney as early leaders in bitmap generation, and points to newer tools — Google's Nano Banana and OpenAI's ChatGPT Images — that can edit existing images and preserve details across conversational iterations. That may cut some revision friction, but his post doesn't compare quality, speed, cost, or layer-level editability head-to-head against code-generated output [1].

The practical rule: match the representation to the next step. Adjusting a diagram, reusing a visual with different parameters, or building a UI component favors code. A photorealistic image favors a dedicated model. Treat this as a hypothesis to test on your own work, not a settled result.

## What the evidence doesn't measure

Willison's post is one practitioner's examples and conclusions. It isn't a controlled comparison of output quality, time, cost, reliability, or total production effort, and the reported gain in frontier-model visual reasoning does not establish performance across brand systems, production templates, complex 3D assets, or formal review processes [1].

The poster example is useful precisely because it exposes a limitation: the SVG was editable, but AI Studio never rendered it, so the model missed a visual mistake it had no way to see. That argues for adding rendered review to any workflow — it doesn't mean every code-generated asset needs the same fix, or that every image-model output is harder to review [1].

A company weighing standardization needs its own numbers: time spent revising each result, how often defects survive rendering, typography accuracy, handoff overhead, consistency across revisions, and whether non-coders can make the edits they need. None of these are reported in the source — they're the questions worth asking before adopting either path.

## Running a practical comparison

Build a small task set that mirrors real output: an editable poster, an explanatory diagram, a UI component, a simple 3D/game asset, and a photorealistic image. These categories come from Willison's examples and stated use cases — a starting point, not a full benchmark [1].

For each task, run a code-driven workflow against a dedicated image-model workflow. Record whether someone can edit individual objects or layers, whether the file opens cleanly in existing tools, how much manual correction is needed, and whether the result can be reused or remixed. Score the whole production path, not just the first preview.

Because results will vary by model, it helps to run the same task set across several of them. A multi-provider setup with one API key, and a [model catalog](/models) to choose candidates from, makes that side-by-side testing less of an integration chore. If the test data is sensitive, an [enterprise AI gateway](/enterprise) that supports hard routing constraints on region, data policy, and allowed providers lets you set those limits before the first prompt goes out.

Require rendered review for every code-generated output. Willison's poster shows why: the generation environment never rendered the SVG, so inspecting the source code alone missed the text-fitting problem [1]. The same habit of checking output before building on it applies well beyond visuals; see [what to verify in AI-generated math proofs](/blog/ai-generated-math-proofs-what-to-verify) for another example.

Keep the conclusion conditional. Use code-driven generation where editable structure and reuse beat the convenience of a finished bitmap. Keep dedicated image tools where photorealism or conversational editing is the priority [1].

## The bottom line

Code-generated visuals earn their keep when an asset needs structure, revision, reuse, or a direct line into other software — not automatically because they beat image-model output on quality. Willison's SVG poster shows a workable route to editable illustration; his own framing still leaves room for dedicated image models, especially on photorealism [1].

The choice isn't which tool renders the prettier preview. It's which representation gets a team a reviewed, editable, shippable asset with the least friction at the next step. Map the full path from prompt to handoff before standardizing on either one — and treat any claim of “better visual reasoning” as a reason to run your own test, not a substitute for running it.

## FAQ

### Are code-generated illustrations more editable than AI-generated images?
Code-generated formats can offer structural ways to make changes. Willison reports that his poster's SVG elements could also be opened in Inkscape, Illustrator, or Boxy SVG. The source doesn't show every code-generated asset is equally easy for non-coders to edit [1].

### Can LLMs generate 3D models and game assets?
Willison says code-driven workflows can produce 3D models, textures, and sprites, including through Blender scripts, and describes these as candidates for tweaking or remixing by writing more code [1].

### Are dedicated image-generation tools still useful for businesses?
Yes — Willison says they still have a place for photorealistic images, and notes newer tools like Nano Banana and ChatGPT Images can edit existing images while preserving details across iterations [1].

### What's the main limitation of generating visuals with code?
The model may never see the rendered result. In Willison's poster experiment, AI Studio didn't render the SVG, so the model couldn't catch its own visual mistake without human iteration. Review the rendered asset, not just the source code [1].

### Does the evidence prove newer LLMs are better at visual design?
No. Willison reports an observed trend among frontier LLMs released in the second half of 2026, but offers no measured comparison and no results covering every workplace task [1].

## Questions

**Are code-generated illustrations more editable than AI-generated images?**

They can be, because an SVG, HTML/CSS file, Canvas graphic, or other code-driven output can be changed through its underlying structure, and Willison reports editing SVG elements in Inkscape, Adobe Illustrator, and Boxy SVG. The source does not establish that every code-generated asset is easier for non-coders to edit. [1]

**Can LLMs generate 3D models and game assets?**

Willison says code-driven workflows can produce 3D models, textures, and sprites, including through Blender scripts, and that these assets can be tweaked, reused, or remixed by generating more code. [1]

**Are dedicated image-generation tools still useful for businesses?**

Yes. Willison says dedicated image models still have a place for photorealistic images, while newer image tools can edit existing images and preserve details across conversational iterations. [1]

**What is the main limitation of generating visuals with code?**

The model may not see the rendered result. In Willison’s poster experiment, AI Studio did not render the SVG, so it could not identify visual mistakes without assistance; teams therefore need a separate rendered-review step. [1]

**Does the evidence prove that newer LLMs are better at visual design?**

No. Willison reports an observed trend among frontier LLMs released in the second half of 2026, but the post does not present a measured comparison or establish results for every workplace task. [1]

## Sources

1. [Code-driven AI illustrations are more useful than images from dedicated image models](https://simonwillison.net/2026/Nov/28/code-driven-ai-illustrations/) — Simon Willison’s Weblog — Nov 28, 2026

How this article was made: https://yelno.ai/blog/about
