Code-driven AI illustrations outperform dedicated image models
New frontier LLMs are increasingly using code to generate visual assets, offering better editability than traditional bitmap-based image models.
Source: Hacker News — front pageFrontier large language models (LLMs) are shifting the paradigm of visual creation by using code to generate illustrations rather than relying solely on pixel-based generation. This transition offers creators significantly higher levels of control and editability compared to traditional image models.
Why is code-driven generation becoming a trend?
According to Simon Willison, a trend observed in frontier LLMs released during the second half of 2026 is their improved capacity for visual reasoning and creative design. Instead of producing static bitmap files, these models can output structured code to define 2D and 3D assets.
This approach is particularly effective because code is inherently editable. When a model generates a Scalable Vector Graphics (SVG) file, a user can modify the text, change colors, or adjust shapes directly in a vector editor like Inkscape or Adobe Illustrator. This avoids the "weirdness" often encountered when trying to iterate on a design through text prompts alone with traditional image-output models.
How does this compare to traditional image models?
Traditional AI image tools, such as Midjourney, DALL-E, or Stable Diffusion, primarily output bitmap graphics. While recent iterations like Google's Nano Banana or OpenAI's ChatGPT Images have improved at maintaining detail during edits, they still face fundamental limitations.
Willison notes that bitmap-based models can produce visual glitches that become visible upon zooming. Furthermore, they struggle with typography; because they generate text shapes directly from the model, they lack the consistency provided by a standard font-based system. Most importantly, bitmap images are "flat." While a user can describe changes or use annotations, they cannot easily grab an individual layer or element to manipulate it with precision.
In contrast, code-driven outputs—such as SVGs, HTML/CSS, 2D HTML Canvas elements, Blender scripts, or WebGPU shaders—allow for granular, programmatic control over every component of the visual.
What are the practical applications for creators?
While dedicated image models remain the superior choice for generating photorealistic imagery, code-driven methods are becoming the preferred method for specific workflows. These include:
- Explanatory diagrams and visualizations: Where precision and clarity are paramount.
- UI components: Where code-based layouts are easier to integrate into software.
- Editable poster designs: Where text and layout must be fine-tuned.
- Game assets: Models like Claude Opus 5.5, GPT-6 Astra, and Gemini 4 Neon are increasingly used to create 3D models, textures, and sprites through code. This allows developers to tweak, reuse, and remix assets by simply asking the model to modify the underlying script.
Can LLMs replace specialist design models?
There was an earlier assumption in the industry that specialist image models were a necessity for solving design problems. However, the rapid advancement of text-output LLMs suggests a different path.
Willison points to the "bitter lesson" of AI development: rather than needing a specialized model for every niche, general-purpose models become so capable at reasoning and coding that they can handle visual design tasks through code. This is evidenced by platforms like Claude Design, which provides a full design system platform built on code-driven imagery, rather than relying on a separate diffusion model.
Applying code-driven design in Grafy
For developers and creators looking to experiment with this shift, the ability to bridge the gap between logic and visual output is central to modern workflows. In Grafy, you can leverage Grafy Code to interact with models that treat visual creation as a programming task. By using a coding studio environment, you can move beyond simple prompts and start generating assets that are structurally sound and ready for production. For those working on more complex visual projects, exploring how code can drive assets in Game Studio or 3D Studio provides a glimpse into the future of programmatic design.
Frequently asked questions
Why are code-driven illustrations more useful than bitmap images?
Code-driven illustrations, such as SVGs, are more useful because they are composed of discrete, editable elements. Unlike bitmap images, which are fixed grids of pixels, code-based visuals allow users to directly manipulate text, layers, and shapes. This makes them ideal for professional design workflows where precision and iteration are required.
Which types of visuals are best suited for code-driven generation?
Code-driven generation is most effective for non-photorealistic tasks. This includes creating explanatory diagrams, user interface (UI) components, scalable vector graphics (SVG) for posters, and programmatic game assets like sprites or 3D models. For high-fidelity photorealism, dedicated diffusion-based image models are still the preferred tool.
How do frontier LLMs generate images using code?
Frontier LLMs use their reasoning and coding capabilities to write scripts or markup languages that define visual structures. Instead of predicting pixel values, the model writes instructions in languages like SVG, HTML/CSS, or Python scripts for software like Blender. These instructions are then rendered into a visual format that can be viewed or edited.


