Gemini 4 Neon vs Carbon vs Hydrogen: SVG Image Generation Capability Comparison

Gemini 4 Neon vs Carbon vs Hydrogen: SVG Image Generation Capability Comparison

Summary: For single-task samples using the same prompt at the high detail tier, how do Gemini 4 Carbon, Gemini 4 Neon, and Gemini 4 Hydrogen differ in speed, token consumption, source structure, and cost when generating SVG?

gemini-4-neon-carbon-hydrogen-svg-comparison-en-image-0

Bottom line first: In this set of single-task samples published by Simon Willison, Carbon packs the most detail at the high tier — its SVG has 57 paths, and the author himself prefers its detail and sense of completeness. But Carbon is the slowest of the three and, by list price, the most expensive per run, and the entire image has only 1 group with an ID, which makes touching up a local region later the most laborious. Neon sits in the middle on speed, tokens, and path count; it has 4 groups with IDs and even gives the near-side wing its own name, nearWing, striking a good balance between detail and editability. Hydrogen is the fastest and most economical, with the fewest paths, yet it has 5 groups with IDs.

These conclusions hold only for this one task, with 1 sample per tier, and the three models were run on different dates rather than in repeated simultaneous tests. The xhigh tier is supported only by Neon and Hydrogen, and its conditions differ from the high tier, so it can’t be compared side by side with high.

Knowledge Map: How to Read the Gemini 4 Neon SVG Comparison

gemini-4-neon-carbon-hydrogen-svg-comparison-en-image-1

Diagram notes: Section 1 explains how the SVG is actually generated, and Section 2 nails down the sample methodology. These two sections are the prerequisite for understanding the high-tier comparison in Section 3. The xhigh data in Section 4 stands alone as its own branch and doesn’t feed into the high-tier ranking. Section 5 offers a reproducible testing method you can use to check whether the earlier conclusions still hold on your own prompts.

Index: If you only care about model selection, you can jump straight to Sections 3.2 through 3.4, then head to Section 6 for conditional recommendations. If you’re planning to integrate the calls, start with the code in Section 1.2. If you’re preparing to do internal evaluation, start from Section 5.

To Know

Term Brief explanation
SVG A vector graphic described in XML text; browsers can render it directly, and you can also edit it by hand
path The basic element in SVG for drawing arbitrary shapes; a high count usually means the shapes are more fragmented
ID-tagged groups Elements like <g> that carry an id attribute, making it easy to locate and modify a specific part by name
Candidate tokens / thinking tokens They correspond to the final output content and the reasoning process respectively; both are billed at the output unit price
low / medium / high / xhigh Thinking intensity levels; the higher the level, the more thinking and the longer it takes, typically

1 How Gemini 4 Neon Generates SVG

1.1 Gemini 4 Neon outputs SVG as text, then the browser renders it

Google released Gemini 4 Neon on 2026-11-18, and the API became officially available the same day; it was updated again on 11-23. The model ID is gemini-4-neon. It accepts text, images, video, audio, and PDF as input, and outputs text only. The model card states that it doesn’t support native image output.

So “SVG image generation” in this article means the model writes SVG code as text, and then the browser renders that code into an image. If the workflow also requires the model to look at a screenshot and then edit the SVG source, both steps are handled by the same text model—no additional image endpoint is involved.

1.2 Call Gemini 4 Neon through an OpenAI-compatible API to generate SVG

Here’s a minimal example. The generated SVG is saved as a local file; open it in a browser to see the rendered result. The SVG in the code is the model’s output and is separate from the illustrations in this article.

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.apiyi.com/v1",  # APIYI OpenAI-compatible API
)

resp = client.chat.completions.create(
    model="gemini-4-neon",
    messages=[{"role": "user", "content": "Generate an SVG of a pelican riding a bicycle"}],
)
print(resp.choices[0].message.content)
View the full code: extract the SVG, validate it, and log usage
import re, time
import xml.etree.ElementTree as ET
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.apiyi.com/v1",  # Unified calls through APIYI
)

PROMPT = "Generate an SVG of a pelican riding a bicycle"

def run_once(model: str, tag: str):
    t0 = time.time()
    resp = client.chat.completions.create(
        model=model,
        messages=[{"role": "user", "content": PROMPT}],
        max_tokens=32000,
        # For the exact name of the reasoning effort parameter, refer to the platform docs; for example:
        # extra_body={"reasoning_effort": "high"},
    )
    elapsed = time.time() - t0
    text = resp.choices[0].message.content or ""
    m = re.search(r"\x3csvg[\s\S]*?\x3c/svg>", text)
    ok = False
    if m:
        try:
            ET.fromstring(m.group(0))   # If the XML parses, treat it as a basic renderability check
            ok = True
            open(f"{tag}.svg", "w", encoding="utf-8").write(m.group(0))
        except ET.ParseError:
            pass
    return {
        "ok": ok,
        "seconds": round(elapsed, 1),
        "finish": resp.choices[0].finish_reason,  # length means the output was truncated
        "usage": resp.usage,
    }

for i in range(5):
    print(run_once("gemini-4-neon", f"neon_high_{i}"))

Quick start tip: First, check the APIYI apiyi.com console to confirm whether the model list includes gemini-4-neon and related variants. Then use the free trial quota for new users to run the script above once. With the same API key, you can switch between different models for comparison without integrating with multiple APIs separately.

2 Defining the Comparison Scope for the Gemini 4 Neon Samples

2.1 Sample Sources and Limitations

The samples come from Simon Willison’s llm-gemini notes published on 11-18 and the corresponding nine-grid page. All three models used the same prompt, “Generate an SVG of a pelican riding a bicycle”, producing 1 sample at each of the low, medium, and high tiers — 9 samples in total, each with a 40-token input. The runs were dated Carbon 11-10, Hydrogen 11-12, and Neon 11-18.

These conditions define the boundaries of the conclusions: there’s only one task, 1 run per tier, no repeated testing, and the run dates differ. So the differences below only show “how each one happened to perform this time” — they shouldn’t be taken as a stable capability ranking.

3 High-Tier SVG Comparison of Gemini 4 Neon, Carbon, and Hydrogen

3.1 Rendering Results

The nine-grid page puts the results from the three models at three tiers side by side, so readers can compare them directly. The author says they prefer Carbon’s detail and finish; that’s the author’s subjective judgment, and this article doesn’t add its own image-quality score.

3.2 Speed and Tokens

The original page shows that at every tier Hydrogen is fastest, Neon in the middle, and Carbon slowest. It doesn’t give citable high-tier timings in seconds, so we only note the ranking here.

gemini-4-neon-carbon-hydrogen-svg-comparison-en-image-2

Model (high tier) Candidate tokens Reasoning tokens SVG path count Groups with IDs
Carbon 10,813 9,492 57 1
Neon 6,631 3,060 38 4
Hydrogen 4,199 1,112 23 5

Data in the table comes from the original page. The path count and group count are statistics from the source code, not a capability score.

3.3 Edit Granularity and Maintainability

The number of paths reflects how finely the shape is broken down, while the number of groups with IDs determines whether you can later locate and modify a specific part by name. Neon has a named group nearWing, corresponding to the near-side wing. Hydrogen has front-wheel and bike-frame. Carbon draws the shape of the basket, but the basket has no independent ID.

If your workflow is to generate first and then make repeated local edits—say, “change only the near-side wing to orange”—the more groups with IDs there are, the easier it is for the change to land on the target part without dragging in other parts. That said, this is just an inference from the source structure; actual behavior needs to be verified with the retargeting test in Section 5.

gemini-4-neon-carbon-hydrogen-svg-comparison-en-image-3

Figure note: The more paths there are, the denser the detail—but the parts don’t necessarily have names you can look up. Carbon has the most detail and the fewest addressable parts. Hydrogen is the exact opposite. Neon sits in the middle on both.

3.4 Cost

Google’s list prices are below, in USD per million tokens. Today is 2026-11-29, Carbon’s promotional pricing ends on 11-30, and standard pricing resumes on 12-01.

Model Input price Output price Estimated cost per high call Available platforms
Carbon $2, promo through 11-30; $4 afterward $10, promo through 11-30; $20 afterward about 20.3 cents; about 40.6 cents at standard price Google official, APIYI apiyi.com (refer to the console)
Neon $3 $15 about 14.5 cents Google official, APIYI apiyi.com (refer to the console)
Hydrogen $1.50 $7.50 about 4.0 cents Google official, APIYI apiyi.com (refer to the console)

“Estimated cost per high call” is calculated in this article as 40 input tokens plus candidate and thinking tokens at list price — the original page doesn’t provide this line item. Running the same math on the original page’s xhigh figures produces matching results, so it’s a fair reference point.

4 Gemini 4 Neon’s xhigh tier (listed separately, not under the same conditions as high)

The 11-20 note adds xhigh-tier data. Carbon officially tops out at high and doesn’t support xhigh.

Model (xhigh) Total tokens Cost Time
Neon 26,546 39.83 cents 3 min 47 s
Hydrogen 31,477 23.61 cents 2 min 36 s
Carbon Not supported Not applicable Not applicable

gemini-4-neon-carbon-hydrogen-svg-comparison-en-image-4

At the xhigh tier, Hydrogen actually consumes more tokens than Neon, but because its unit price is lower, the total cost still comes out smaller — and it finishes faster too. xhigh’s thinking budget differs from high’s, so you can’t compare Neon at xhigh against Carbon at high.

5 How to Re-Test Gemini 4 Neon’s SVG Capabilities Yourself

A single run on a single prompt is only a clue. For model selection, we recommend running the test again with the design below.

Control / Metric Setting
Service tier Fixed Standard tier
Prompts and reasoning tier Same prompts across all three models, all set to high
Tools Disabled
Output limit Same for all three models
Runs 5 per prompt per model; failures and truncations both count
Metrics Renderable rate, target-only edit without collateral changes, latency, cost per successful run

“Cost per successful run” equals total spend divided by the number of renderable successful runs. Truncated and failed calls must also be included in the spend, so it reflects the true cost. For the target-only edit test, you can do this: hand the model the SVG generated in the previous round and ask it to “only change the color of the near-side wing, keeping all other elements unchanged,” then compare the source code before and after to see whether the changes spread to unrelated elements.

💡 Testing tip: The full code above already records finish_reason and usage. Swap model to the IDs for Carbon and Hydrogen, and you can run all three models with the same API key on APIYI apiyi.com, then drop the data straight into the same table for comparison.

6 Decision Criteria for Choosing Gemini 4 Neon for SVG

The following assessments are based only on this sample set:

  • If you value detail and overall visual polish, and can tolerate slower, more expensive output: try Carbon first. Note that its unit price will double starting 12-01.
  • If you need a balance between detail, speed, and editability: across this sample set, Neon sits in the middle on all these dimensions.
  • For batch generation or frequent local edits: Hydrogen is the fastest and cheapest, and has the most ID-labeled groups.

If you change the prompt, or your retest shows a clear difference in render success rate, the choices above may change.

FAQ

Q1: Can Gemini 4 Neon output images directly?

No. The model card states that it doesn’t support native image output. What’s called SVG image generation here means having the model output SVG code, which is then rendered into an image by the browser.

Q2: Which one draws better, Gemini 4 Neon or Carbon?

In this sample set, the author prefers Carbon’s detail, and Carbon also has the most paths. But this is the result of a single prompt and a single run, and it’s the author’s subjective judgment.

Q3: When is Gemini 4 Neon available?

It was released on 2026-11-18; the API became officially available the same day, with an update on 11-23.

Q4: Can data from the xhigh tier be compared directly with the high tier?

No. The two have different thinking budgets, and Carbon doesn’t support xhigh. xhigh can only be compared between Neon and Hydrogen.

Q5: How can I quickly call Gemini 4 Neon to generate SVG?

Register at APIYI apiyi.com and get an API key, set `base_url` to `https://api.apiyi.com/v1`, then run the code from Section 1.2. Whether the model is live is determined by the console list.

Q6: What are the limitations of this comparison?

It covers only one prompt, with one sample per tier, and the three models were run on different dates. There were no repeated tests, and no failure rate was tracked. When using this for model selection, we recommend running each model 5 times on APIYI apiyi.com following the design in Section 5 before making a decision.

References

  1. Gemini 4 Neon Model Card
    • Link: aistudio.google.com/docs/models/gemini-4-neon
  2. Google Official Announcement
    • Link: blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-neon/
  3. Gemini API Changelog
    • Link: ai.google.dev/gemini-api/docs/changelog
  4. Simon Willison’s Nov 18 Notes and Nine-Grid Page
    • Link: simonwillison.net/2026/Nov/18/llm-gemini/
    • Link: static.simonwillison.net/static/2026/gemini-4-carbon-neon-hydrogen.html
  5. Simon Willison’s Nov 20 xhigh Notes and Extended Page
    • Link: simonwillison.net/2026/Nov/20/llm-gemini/
    • Link: static.simonwillison.net/static/2026/gemini-4-carbon-neon-hydrogen-with-xhigh.html
  6. Google Pricing Page
    • Link: aistudio.google.com/docs/pricing

Author: APIYI Technical Team
Technical Discussion: Feel free to reach us through the APIYI apiyi.com homepage. For more integration resources, see the docs.apiyi.com documentation center.

Related Articles

Similar Posts