On November 28, 2026 (UTC), developer Simon Willison published a case study. He used Gemini 4 Neon, which Google released on November 18, to generate a 1970s-style print poster of a kākāpō (a parrot native to New Zealand) in AI Studio. The model’s output wasn’t an image—it was a complete SVG source file, and the browser rendered that code into the artwork.
What makes this notable is that, for the first time, a generated graphic can be maintained like code. The text in one pill-shaped label on the poster overflowed, so he showed the model a screenshot. The model changed only that label’s rectangle width and font size, leaving the rest untouched. To be clear, Gemini 4 Neon doesn’t support native image output. What you can edit at the tag level is the text elements, shapes, and named groups in the SVG; text that’s already been converted to paths and embedded bitmaps can’t be changed this way.
What you’ll learn from this article
- When Gemini 4 Neon launched, what its input and output capabilities are, and why it can draw without outputting an image.
- The four versions of the kākāpō poster, from first draft to final, and what changed at each step.
- How screenshot feedback maps to specific tags: width 612→656, font size 15.5→13.5.
- How to reproduce the “generate SVG → flag errors with a screenshot → edit the source” loop using an OpenAI-compatible API.
- Which parts of an SVG can be edited and which can’t.
Index: The article opens with a table explaining terms such as SVG, viewBox, and textPath, then looks at how this development affects different groups. The “Objective Facts” section lays out the model release details, the poster’s production process, the exact numbers behind the label fix, and where the population figures in the article come from. The “Analysis and Assessment” section discusses why screenshot feedback and code generation are two actions of the same text model, then provides runnable code, and closes with a table that maps the boundary between what can and can’t be edited. The FAQ answers common questions about access, cost, and limitations.

Gemini 4 Neon SVG: Concepts to Know
| Concept | Brief explanation |
|---|---|
| SVG | A vector graphics format based on XML. The graphics are described by text tags, so you can open and edit them directly in an editor. |
| viewBox | The coordinate canvas of an SVG. All four versions in this case are 800×1120, and every coordinate is based on it. |
<text> element |
A real text object inside an SVG. You can change its content, font size, font, and alignment. |
| text-anchor | The alignment anchor for text. When set to middle, the text centers around the x coordinate, so it’s less likely to drift when the width changes. |
| textPath | Arranges text along a path — commonly used for curved headings. |
<g> grouping |
Bundles multiple shapes into one group. Once you add an id, you can move, scale, or replace the whole group at once. |
| Outlining | Converting text into path outlines. The appearance stays the same, but it’s no longer editable text. |
| Embedded bitmap | PNG/JPEG data embedded inside an SVG. It’s a single block of pixels that can’t be broken into separate objects. |
| Rendering | The process of a browser drawing SVG code into a pixel image. |
| Multimodal input | The model accepts text, images, video, audio, PDF, and other inputs at the same time. |
| kākāpō | A flightless, nocturnal parrot native to New Zealand — also the theme of the poster in this case. |
Gemini 4 Neon SVG Workflow Impact at a Glance
| Audience | Real-world impact |
|---|---|
| Developers | You can produce maintainable vector graphics with a single text model. Generated output can go into Git, be diffed, and batch-edited with scripts—no extra image endpoint required |
| Designers and content creators | For posters, infographics, and icons, you can have the model produce a first draft, then fine-tune text and layout by tag—saving you from redrawing the whole thing |
| Everyday users | In AI Studio, you can take a screenshot and describe the issue in one sentence to iterate, but you need to know that what you’re ultimately seeing is the browser-rendered result |
The Facts: Gemini 4 Neon and the SVG Poster Case
Gemini 4 Neon: Release Info and Capability Boundaries
Google released Gemini 4 Neon on November 18, 2026, with the API opening that same day, followed by another update on November 23. According to the official model card, this model outputs text only and is explicitly marked as “does not support native image output.”
| Item | Details |
|---|---|
| Model ID | gemini-4-neon |
| Release date | Released and API opened 2026-11-18, updated 2026-11-23 |
| Input modalities | Text, images, video, audio, PDF |
| Output modalities | Text only; native image output not supported |
| How it draws | Outputs SVG code, which the browser renders into an image |
| Access method | Official Gemini API / AI Studio; can also be called uniformly through APIYI apiyi.com’s OpenAI-compatible interface (subject to the platform’s model list) |
So the “drawing” in this case isn’t calling a new image generation endpoint. The model looking at screenshots counts as image input, and writing out SVG counts as text output—both are handled by the same text model.
Simon Willison’s kākāpō Poster Workflow
Simon Willison published this article on November 28 (UTC), which corresponds to the early hours of November 29 Beijing time. His workflow went roughly like this:
- In AI Studio, ask the model to search for kākāpō conservation-related material.
- Ask the model to generate an SVG in the style of a 1970s printed poster.
- Upload a real reference photo of the bird and have the model correct the bird’s facial shape.
- Send back the rendered screenshot, pointing out that the text in the capsule-shaped label overflowed its border.
- Then provide two more screenshots to keep fine-tuning the details.
He published the complete record in a Gist, where you can verify there are four complete SVGs, all with a viewBox of 800×1120. The blog post body shows a WebP preview image, while the original vector files are stored separately. The original article explicitly treats the “bitmap for display” and the “editable source” as two separate things.
Screenshot Feedback: Fixing a Label Overflow
This fix best illustrates what “editing the source code” really means. The screenshot shows text in a pill label spilling outside the rounded rectangle. In the next version, the model made just two numeric adjustments:
- The width of the label rectangle increased from 612 to 656.
- The font size of the label text dropped from 15.5 to 13.5.
- The text anchor stayed centered, so after widening the rectangle, the text still sat in the middle of the label.
All three points map to concrete attribute values; the model didn’t regenerate the whole image. With a raster image, the same problem usually means redrawing it from scratch—or hoping a local inpainting pass gets lucky.

Structure of the Final SVG
The final version contains 21 text elements. The main title is made up of three stacked text objects, used to mimic the misregistration effect of spot-color printing. The poster also includes a curved line of text made with textPath, and the bird graphic is placed inside a named group. In other words, the three main pieces of content—the title, the curved text, and the bird—can each be found separately in the source code.
Simon Willison also demonstrated local editing with another SVG of a pelican riding a bicycle: the wheels, basket, and fish are each named groups that can be modified independently without affecting the rest. He also notes that once text has been converted to outlines, it can no longer be edited as text, and embedded raster images can’t be broken into editable objects.
Where the population figures come from
The poster includes population information about kākāpō. If you cite numbers in the work, you should note the source. The New Zealand Department of Conservation (DOC) announced on September 1, 2026 that the kākāpō population had reached a new milestone of 325 birds, with 90 new chicks that season, up from a historic low of 51 in 1995. This is milestone data for a specific date, not a real-time total, so the date should be stated when you cite it.
Analysis: What the Gemini 4 Neon SVG workflow means
Why screenshot feedback and generated source are two actions of the same model
The whole process can be seen as a loop: the model writes SVG text, the browser renders the image, a person screenshots the image and sends it back, and the model compares the screenshot with the code it wrote to locate the problem, then outputs a new version. The model can “understand” the screenshot through multimodal input; it can “fix” the tags correctly because it already has the structural information from writing the code in the first place.
The value of this approach is that feedback has a clear anchor point. A visual problem like “label text overflow” gets translated into “the width of a certain rect and the font-size of a certain text.” We think this is far more reliable than simply describing “the labels are too cramped” in words, because the screenshot removes the model’s guesswork about the rendered result. That said, this judgment is currently based mainly on a single public case, and stability under complex layouts still needs more real-world testing to verify.

The loop shown above can be run with a single API key. On APIYI (apiyi.com), you can use the same OpenAI-compatible code to switch between different models and compare how each one generates SVG.
What this means in practice for developers and creators
For developers, SVG is plain text, so it can go into version control, you can use diff to see which attributes changed in each round, and you can batch-replace copy or colors with scripts. For creators, the model handles the first draft and the tedious coordinate math, while the person judges aesthetics and points out problems—a clearer division of labor.
Keep in mind that the style of model-generated SVG depends on the prompt and reference images, and complex illustrations can still come out with messy structure or nonstandard group naming. It’s a good idea to ask directly in the prompt for “key elements to use named groups and for text to remain as text elements,” so the file is easier to modify later.
How to Generate Editable SVGs with Gemini 4 Neon: A Quick Start
Minimal Example: Generating the First SVG Version
The code below calls gemini-4-neon through an OpenAI-compatible interface, asks the model to return only an SVG document, and saves it to a file:
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.apiyi.com/v1" # APIYI unified interface
)
resp = client.chat.completions.create(
model="gemini-4-neon",
messages=[
{"role": "system", "content": "只输出一个完整 SVG 文档,viewBox 为 0 0 800 1120。文字必须使用 <text>,关键图形用带 id 的 <g> 分组,不要解释。"},
{"role": "user", "content": "画一张七十年代印刷风的鸟类保育海报,含主标题、一个胶囊标签和一段弧形文字。"}
]
)
open("poster_v1.svg", "w", encoding="utf-8").write(resp.choices[0].message.content)
Open poster_v1.svg in a browser to see the rendered result. This step consumes only text output and doesn’t touch any image generation endpoint.
View the full implementation: screenshot feedback loop + local edits by element ID
import base64
import re
import xml.etree.ElementTree as ET
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.apiyi.com/v1"
)
SVG_NS = "http://www.w3.org/2000/svg"
ET.register_namespace("", SVG_NS)
def extract_svg(text: str) -> str:
"""Extract the complete SVG root element from the model response, compatible with output wrapped in code fences"""
m = re.search(r"\x3csvg[\s\S]*?\x3c/svg>", text)
if not m:
raise ValueError("回复中没有找到 SVG")
return m.group(0)
def revise_with_screenshot(svg_src: str, png_path: str, note: str) -> str:
"""Send the current source and rendered screenshot to the model together, and modify only the problematic elements"""
img_b64 = base64.b64encode(open(png_path, "rb").read()).decode()
resp = client.chat.completions.create(
model="gemini-4-neon",
messages=[
{"role": "system", "content": "你在维护一份 SVG。只修改与问题相关的属性,其余元素保持原样,输出完整 SVG。"},
{"role": "user", "content": [
{"type": "text", "text": f"问题:{note}\n当前源码:\n{svg_src}"},
{"type": "image_url", "image_url": {"url": f"data:image/png;base64,{img_b64}"}}
]}
]
)
return extract_svg(resp.choices[0].message.content)
def list_text_elements(svg_src: str):
"""List all <text> elements to confirm the text is still an editable object rather than outlined paths"""
root = ET.fromstring(svg_src)
return [(t.get("id"), "".join(t.itertext())) for t in root.iter(f"{{{SVG_NS}}}text")]
def fix_label(svg_src: str, rect_id: str, text_id: str, width: float, size: float) -> str:
"""Modify the label width and font size directly by id without calling the model"""
root = ET.fromstring(svg_src)
for el in root.iter():
if el.get("id") == rect_id:
el.set("width", str(width))
if el.get("id") == text_id:
el.set("font-size", str(size))
el.set("text-anchor", "middle")
return ET.tostring(root, encoding="unicode")
if __name__ == "__main__":
v1 = open("poster_v1.svg", encoding="utf-8").read()
v2 = revise_with_screenshot(v1, "poster_v1.png", "胶囊标签文字溢出边框")
open("poster_v2.svg", "w", encoding="utf-8").write(v2)
print(list_text_elements(v2))
Below is original capsule label source code, used only to illustrate the structure, not as a body illustration. The rectangle and the text share the same center point x=400, and text-anchor="middle" keeps the text centered even when only the width and x coordinate are adjusted:

🚀 Quick start: We recommend registering at APIYI apiyi.com first and claiming your free trial credits. Once you’ve run the complete “generate → screenshot → revise” loop with the code above, you can integrate it into your production project.
What You Can Actually Edit in the Gemini 4 Neon SVG
This is the part that needs the clearest explanation in the whole case study. The idea that “AI-generated images can have editable source code too” only holds if the artwork is actually built from editable SVG elements. The table below breaks down editability by element type:
| SVG content | Editable by tag? | Notes |
|---|---|---|
<text> text elements |
✅ Yes | Content, font size, font family, and anchor can all be changed—for example, the 21 text elements in the final version. |
textPath curved text |
✅ Yes | You can change the text content and the path it follows; if the text is too long, you may need to adjust the path too. |
Basic shapes like <rect> |
✅ Yes | Width, height, corner radius, and color can all be edited directly—for example, changing the label width from 612 to 656. |
Named <g> groups |
✅ Yes | You can move, scale, or replace them as a whole—for example, the bird group, or the wheel and basket in the pelican illustration. |
| Stacked multi-layer titles | ⚠️ Need to be edited together | All three stacked objects need to be changed together; otherwise, the color overlay effect will be misaligned. |
| Outlined text paths | ❌ Can’t be edited as text | They’re already path outlines, so you can only change the fill or geometry—not the words. |
| Embedded bitmap | ❌ Can’t be split apart | It’s a single block of pixels, so you can’t separate it into individual objects. |
| WebP preview for publishing | ❌ Not source code | It’s only for display; changes have to go back to the original SVG. |

This classification applies to any SVG generation model. If you want to compare how much real text different models keep in the SVGs they generate, you can use APIYI apiyi.com to call multiple models with the same prompt, then use list_text_elements from earlier to count the results.
Gemini 4 Neon SVG FAQ
Q1: Can Gemini 4 Neon generate images directly?
No. The official model card states that it only outputs text and doesn’t support native image output. The poster in the example is SVG code written by the model, which the browser renders into a picture.
Q2: Does the screenshot feedback call a separate image API?
No. Reading a screenshot is multimodal image input, and generating a new SVG is text output — both are handled by the single model gemini-4-neon, with no new image endpoint added.
Q3: When can Gemini 4 Neon be used through the API?
The API was available on release day, November 18, 2026, with an update on November 23. For specific parameter changes, check the official changelog.
Q4: What is this SVG workflow good for?
– Layouts that need repeated copy revisions, like event posters and explainer infographics;
– Simple vector elements with straightforward structure, such as icons, badges, and tags;
– Multilingual materials — just swap out the text content.
Q5: How do I call gemini-4-neon with OpenAI-compatible code?
Sign up at APIYI apiyi.com to get an API key, set base_url to `https://api.apiyi.com/v1`, and set model to `gemini-4-neon` (refer to the platform’s model list) — then you can use the code in this article directly. New users get free trial credits.
Q6: What are the limitations of this approach?
Complex illustrations may end up with messy structure and inconsistently named groups; once text is converted to outlines or embedded as a bitmap, you can no longer edit it by tag; and rendering is affected by the browser and font environment. Constrain the output structure in your prompt, and use pay-as-you-go billing through APIYI apiyi.com to run several rounds and compare stability.
The point of this Gemini 4 Neon case isn’t “AI can finally draw” — it’s that images can be delivered as source code. The screenshot points out the problem; the source code makes precise edits. As long as text stays as text elements and key graphics use named groups, the image can be maintained just like code. Want to try this workflow yourself? You can get it running with a single key at APIYI apiyi.com.
📚 References
- Gemini 4 Neon Model Card: input/output modalities and capability boundaries
- Link:
aistudio.google.com/docs/models/gemini-4-neon
- Link:
- Google’s official launch post: Introducing Gemini 4 Neon
- Link:
blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-neon/
- Link:
- Gemini API changelog: 2026-11-18 entry
- Link:
ai.google.dev/gemini-api/docs/changelog
- Link:
- Simon Willison’s original post: code-driven AI illustration case study
- Link:
simonwillison.net/2026/nov/28/code-driven-ai-illustrations/
- Link:
- Record of the four SVG versions: the complete iteration of the kākāpō poster
- Link:
gist.github.com/simonw/0ee45eec7763782019cd20f571e4a7be
- Link:
- Pelican SVG partial code-change example: a walkthrough of editing named groups
- Link:
gist.github.com/simonw/abc5dfe18e8d37a46fd09a3dcc18ed5c
- Link:
- W3C SVG 2 structure spec: grouping and document structure
- Link:
w3.org/TR/2018/CR-SVG2-20180807/struct.html
- Link:
- New Zealand Department of Conservation announcement: a new milestone for the kākāpō population (2026-09-01)
- Link:
doc.govt.nz/news/media-releases/2026-media-releases/kakapo-population-reaches-new-milestone/
- Link:
Author: APIYI Technical Team
Technical discussion: Feel free to reach us through the APIYI homepage at apiyi.com. For more integration docs, head over to the docs.apiyi.com documentation center.
