<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/code-driven-ai-illustrations-are-more-useful-than-images-from-dedicated-image-models-huaosljf5" -->

---
title: Code-driven AI illustrations are more useful than images...
description: Frontier text-output LLMs can now produce useful 2D and 3D visuals by writing code, and for most of what the author cares about, such as explanatory diagrams...
canonical: https://daily.dev/posts/code-driven-ai-illustrations-are-more-useful-than-images-from-dedicated-image-models-huaosljf5
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Code-driven AI illustrations are more useful than images from dedicated image models | daily.dev
og:description: Frontier text-output LLMs can now produce useful 2D and 3D visuals by writing code, and for most of what the author cares about, such as explanatory diagrams...
og:url: https://daily.dev/posts/code-driven-ai-illustrations-are-more-useful-than-images-from-dedicated-image-models-huaosljf5
og:image: https://api.daily.dev/og/posts/HUAosLJF5.png
og:image:alt: Code-driven AI illustrations are more useful than images from dedicated image models
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

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

**[Simon Willison](https://daily.dev/sources/simonwillison)** · 5 min read · 0 upvotes · 0 comments

## Summary

Frontier text-output LLMs can now produce useful 2D and 3D visuals by writing code, and for most of what the author cares about, such as explanatory diagrams and editable posters, that is a better bet than dedicated image models. Simon Willison prompted Gemini 4 Neon for a 1970s-style SVG poster of the Kakapo recovery project. Everything is editable, in the SVG text or in Inkscape, Illustrator and Boxy SVG. Code-driven output also works through coding agents for HTML/CSS, Canvas, Blender scripts, shaders and PDF. Bitmap image models still glitch on details, render text without real fonts and stay flat, though they remain better for photorealism.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://simonwillison.net/2026/Nov/28/code-driven-ai-illustrations>

## Questions this post answers

### Why generate images with an LLM writing SVG or other code instead of using a dedicated image model?

Code-defined images stay fully editable: you or the model can change text, individual elements or layers without the glitches of iterating on bitmap output. Text uses real fonts, so it stays consistent, and results open in tools like Inkscape or Illustrator. Dedicated image models still win for photorealistic images, but code-driven output is better for diagrams, posters, UI components and game assets.

_Developers weighing AI design workflows follow these tooling shifts on daily.dev._

### What kinds of output can an LLM with a coding agent generate besides SVG?

Any image mechanism representable as a file on disk or the output of a script can be targeted. That includes generated image files, HTML and CSS, 2D HTML Canvas elements, Blender scripts, WebGPU shaders and PDF. Because assets like 3D models, textures and sprites are built with code, tweaking and remixing them means the model writing more code.

_If you build games or visuals with coding agents, daily.dev keeps you current on the tooling._

## Similar posts on daily.dev

- [Using “underdrawings” for accurate text and numbers](https://daily.dev/posts/using-underdrawings-for-accurate-text-and-numbers-voxpcjnjp) · Hacker News · 0 upvotes · 0 comments
- [The complete guide to AI image generation](https://daily.dev/posts/the-complete-guide-to-ai-image-generation-ggx64ffvz) · Flavio Copes · 0 upvotes · 0 comments
- [Promoting AI agents](https://daily.dev/posts/promoting-ai-agents-zppmug4cg) · David Heinemeier Hansson · 112 upvotes · 10 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#llm](https://daily.dev/tags/llm), [#genai](https://daily.dev/tags/genai), [#google-gemini](https://daily.dev/tags/google-gemini), [#svg](https://daily.dev/tags/svg)

[View this post on daily.dev](https://daily.dev/posts/code-driven-ai-illustrations-are-more-useful-than-images-from-dedicated-image-models-huaosljf5)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Code-driven AI illustrations are more useful than images from dedicated image models","url":"https://daily.dev/posts/code-driven-ai-illustrations-are-more-useful-than-images-from-dedicated-image-models-huaosljf5","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/code-driven-ai-illustrations-are-more-useful-than-images-from-dedicated-image-models-huaosljf5"},"datePublished":"2026-11-28T17:56:13.092Z","dateModified":"2026-11-28T22:02:20.347Z","description":"Frontier text-output LLMs can now produce useful 2D and 3D visuals by writing code, and for most of what the author cares about, such as explanatory diagrams...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/018ad00d3a259d281885ab0857b41f67?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/018ad00d3a259d281885ab0857b41f67?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Simon Willison","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Simon Willison","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/cf12b897300740218b35f49a6309ec5b","url":"https://daily.dev/sources/simonwillison"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/code-driven-ai-illustrations-are-more-useful-than-images-from-dedicated-image-models-huaosljf5","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,llm,genai,google-gemini,svg","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Simon Willison","item":"https://daily.dev/sources/simonwillison"},{"@type":"ListItem","position":3,"name":"Code-driven AI illustrations are more useful than images from dedicated image models"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/code-driven-ai-illustrations-are-more-useful-than-images-from-dedicated-image-models-huaosljf5#faq","mainEntity":[{"@type":"Question","name":"Why generate images with an LLM writing SVG or other code instead of using a dedicated image model?","acceptedAnswer":{"@type":"Answer","text":"Code-defined images stay fully editable: you or the model can change text, individual elements or layers without the glitches of iterating on bitmap output. Text uses real fonts, so it stays consistent, and results open in tools like Inkscape or Illustrator. Dedicated image models still win for photorealistic images, but code-driven output is better for diagrams, posters, UI components and game assets. Developers weighing AI design workflows follow these tooling shifts on daily.dev."}},{"@type":"Question","name":"What kinds of output can an LLM with a coding agent generate besides SVG?","acceptedAnswer":{"@type":"Answer","text":"Any image mechanism representable as a file on disk or the output of a script can be targeted. That includes generated image files, HTML and CSS, 2D HTML Canvas elements, Blender scripts, WebGPU shaders and PDF. Because assets like 3D models, textures and sprites are built with code, tweaking and remixing them means the model writing more code. If you build games or visuals with coding agents, daily.dev keeps you current on the tooling."}}]}
```

