general

Code-Driven AI Illustrations Outperform Traditional Image Models for Editable Design

Summarized by AI from reporting by Hacker News AI, published under our editorial policy.

New AI models like Google's Gemini 4 Neon create editable 2D and 3D images through code, offering more flexibility and precision than traditional image generators like DALL-E or Midjourney. This approach allows for direct edits in design tools and avoids common glitches.

A poster designed by Gemini 4 Neon, showcasing the capabilities of code-driven AI illustrations.

Key takeaways

  • Gemini 4 Neon can generate editable SVG posters and other designs by writing code, as demonstrated by Simon Willison's Kakapo recovery project poster.
  • Code-driven images allow for precise edits and better integration with design tools like Inkscape and Adobe Illustrator.
  • Traditional image models like Stable Diffusion and DALL-E output bitmap graphics that are harder to edit and prone to glitches when zoomed in.
  • Models like Claude Opus 5.5 and GPT-6 Astra can also create game assets entirely through writing code, driving the growth of vibe game development.
  • Code-driven AI images solve the limitations of flat, uneditable bitmap outputs by representing designs as editable code.

Google's Gemini 4 Neon and other advanced frontier LLMs released in late 2026 are showcasing a new capability: creating editable 2D and 3D images by writing code. Unlike traditional image generators that output bitmap graphics, these models produce images defined by code (such as SVG, HTML Canvas, or Blender scripts), making them easier to modify and integrate into professional design workflows. This shift is significant because it addresses many of the limitations of traditional image models, such as difficulty in editing and maintaining quality after iteration.

How Code-Driven AI Images Work

Simon Willison, a prominent tech blogger, tested this feature by asking Gemini 4 Neon in AI Studio to create a poster for the Kakapo recovery project with a 1970s graphic design style. The model not only generated the design but also included accurate research details—such as red rimu tree fruit essential for the breeding season—which Willison verified as correct. The resulting SVG file can be edited directly in tools like Inkscape or Adobe Illustrator, allowing for precise adjustments to text, colors, and layout. Willison noted that AI Studio does not render SVGs, so the model could not spot visual mistakes without human assistance, requiring some iteration.

Advantages Over Traditional Image Models

Traditional image models like Stable Diffusion, DALL-E, and Midjourney output bitmap graphics, which can be difficult to edit without losing quality. Code-driven images, on the other hand, are defined by editable code, making them more flexible. For example, you can change text, colors, and other elements without starting from scratch. This approach also avoids the weird glitches that often appear in bitmap images when zoomed in. Additionally, code-driven images can be easily integrated into various design tools, making them more versatile for different projects.

Willison also highlighted that newer LLM-driven image models like Google's Nano Banana and OpenAI's ChatGPT Images have become competent at editing existing images and preserving details across conversation turns. However, they still have limitations: they can produce glitches, output text shapes directly from the model without font-based typography consistency, and are inherently flat—you cannot take control of an individual element or layer. Images created through generated code solve all of those problems.

Practical Applications for Everyday Users

For everyday users, code-driven AI images offer several advantages. If you need to create a poster, a game asset, or a UI component, you can generate the design and then tweak it to your liking. This is particularly useful for designers, educators, and hobbyists who need to create visually compelling content quickly and easily. The ability to edit the code also means you can reuse and remix designs, saving time and effort. Willison noted that vibe game development has exploded recently because models like Claude Opus 5.5 and GPT-6 Astra are capable of creating good-enough quality game assets—3D models, textures, sprites—entirely through writing code.

The Future of AI-Generated Images

The rise of code-driven AI images represents a broader trend in AI capabilities. Willison argued that after Google's Nano Banana and OpenAI's ChatGPT Images, he thought Anthropic had a serious product gap. However, Claude can now churn out visually compelling presentations and website designs, and Claude Design provides a full design system platform—all built around code-driven images. Willison described this as "another variant of the bitter lesson": he was convinced a specialist image model was necessary, but text-output LLMs just kept getting more capable until they could handle visual design by writing code.

What You Can Do Today

If you're curious about code-driven AI illustrations, you can try it out using Gemini 4 Neon in AI Studio. Start by asking the model to create a simple design, such as a poster or a game asset. Once you have the SVG file, you can open it in a tool like Inkscape or Adobe Illustrator to make further edits. This hands-on experience will give you a sense of the flexibility and power of code-driven AI images. For those who are new to coding, many AI models can generate the code for you, making it easier to get started.

Choosing a model for programming work? See our ranking of the best LLM for coding.

Frequently asked

What is the main advantage of code-driven AI illustrations over traditional image generators?
The main advantage is that images are defined by editable code, allowing for precise adjustments to individual elements and layers without the glitches or quality loss common when iterating with text-input, image-output models.
Can I use code-driven AI illustrations for professional design work?
Yes, code-driven AI illustrations are particularly useful for creating professional designs like posters, game assets, and UI components. The resulting SVG files can be opened and edited in professional tools like Inkscape or Adobe Illustrator.
Do I need coding skills to use code-driven AI illustrations?
While having some coding knowledge can be helpful, many AI models like Gemini 4 Neon generate the code for you. You can then edit the resulting files using visual design tools without writing code yourself.
Is Gemini 4 Neon the only model that can generate code-driven images?
No, other advanced AI models like Claude Opus 5.5 and GPT-6 Astra also have similar capabilities. These models can generate a variety of image files and scripts, making them versatile for different design needs.