|

How do I chain multiple models in Antigravity? Use a strong model for planning and a fast model for coding

How do I chain multiple models in Antigravity? Use a strong model for planning and a fast model for coding

The cost curve for coding agents usually gets stuck at the same point: use the strongest model at every step, and the bill grows faster than your progress; use the fastest model at every step, and it starts drifting halfway through the edits. Antigravity’s Orchestrator answers this by switching models within the same task: planning goes to the strong model, file edits and test runs go to the fast model, and when things get stuck, the work goes back.

This isn’t about writing a few models into a config and calling them in rotation. In Google’s blog post dated November 30, 2026 and authored by Varun Mohan, the article states that Orchestrator switches between Carbon and Hydrogen, and the switch happens while the task is in progress—not set once before the run starts and then locked in.

Core value: After reading this, you’ll know what each of the three model tiers handles, why the two official percentages can’t be combined into one number, and—when you build this division of labor yourself with a unified interface—how planning requests and execution requests should each be written, where the cost is, and where the savings are.

antigravity-multi-model-orchestration-en-image-0


How Does Antigravity Chain Multiple Models Together?

Break it down, and its multi-model collaboration really only has two roles: one thinks, one does. The Choose a model page in Antigravity’s docs puts it plainly — the planning role defaults to Gemini 4 Neon, though you can swap in Carbon, Argon, or Claude Opus 5.5; the execution role defaults to Gemini 4 Hydrogen, or you can switch to Claude Sonnet 5.5.

So “chaining” isn’t lining models up in a pipeline and calling them one after another. It’s a loop with a feedback edge. The planning round only reads code and produces a plan — it doesn’t touch a single file. The execution round takes that plan, edits code, and runs tests. Control only flows back to the planning side when execution keeps failing.

Tier Official positioning Typical actions When to use it
Carbon Heaviest reasoning and verification Reads cross-module dependencies, sets the approach, reviews changes Architecture decisions, rework, hard debugging
Neon Daily workhorse, also the default planning tier Breaks down tasks, writes clear boundaries for the execution side Most routine requests
Hydrogen Default execution tier, four thinking levels Edits files, runs tests, pushes forward per plan Landing work once the plan is clear

The difference between the three tiers isn’t parameter count — it’s what they’re allowed to do. Carbon takes on the heaviest reasoning and verification, Neon is treated as the everyday workhorse, and Hydrogen has four thinking levels, making it well suited to carrying out details once the plan is already settled. This division of labor boils down to one sentence: use the strong model for planning, the fast model for writing code, and spend the expensive compute on irreversible decisions.

Why Antigravity’s Orchestrator Gave Up on Static Routing

In its November 12, 2026 blog post, Antigravity laid out why it dropped static routing, and it was refreshingly blunt about it: a static router locks the whole task in place based on the difficulty of the first sentence. Short tasks are fine, but long tasks fall apart — the opening line is just “tweak some copy,” and halfway through you suddenly need to touch a three-layer call chain, by which point the difficulty has long since changed.

A locked-in route only ends one of two ways. Either you bring in the heavy model from the start and burn your quota on the first half of steps that never needed strong reasoning at all, or you force the second half through with a light model and the whole thing fails when it can’t keep up. Both are cases of spending money in the wrong place.

So they switched to a two-way handoff: Carbon starts out read-only and puts together a plan, Hydrogen takes over to edit code and run tests, and when it gets stuck it hands things back to Carbon. The real point of this design is that “hand back” edge — without it, once the fast model falls into an endless loop, the only way out is for a human to clean it up.

antigravity-multi-model-orchestration-en-image-1

The November 18, 2026 Neon blog post added another layer: the Orchestrator can treat Neon as the planning role and Hydrogen as the execution role. That shows the planning slot doesn’t have to be Carbon — the weights can be dialed down according to task difficulty.

Antigravity’s Officially Reported 24% and 19%: How to Read the Two Benchmark Versions

The two numbers are consistent across both documents: 24% less quota spent, 19% faster on average, and a success rate close to using Carbon throughout. The difference is the benchmark version—the November 30 Google blog post says Terminal-Bench 4.0, while the November 12 Antigravity blog post says Terminal-Bench 4.1.

Source Date Benchmark version Official self-reported claim
Google blog (by Varun Mohan) 2026-11-30 Terminal-Bench 4.0 Success rate close to Carbon, 19% faster on average, 24% less quota spent
Antigravity blog 2026-11-12 Terminal-Bench 4.1 24% less quota spent, 19% faster on average

These two sources need to be cited side by side, not merged into a single “latest final leaderboard.” When the version numbers differ, the task sets may not be the same, and the baseline for “close” success rate may differ too. What we can say with confidence is the direction: after the division of labor, performance doesn’t drop noticeably, and both quota and time are saved. Both sets of numbers are self-reported by the vendor, with no common reproduction conditions provided; it’s safer to treat them as an order-of-magnitude reference than as a precision metric.

antigravity-multi-model-orchestration-en-image-2


Antigravity-style model division of labor: get started quickly with a unified interface

Antigravity itself is an IDE, and its Orchestrator switching happens internally—you can’t call its routing logic directly. But if you want to build your own agent following this same division of labor, the approach is actually pretty simple: translate “roles” into “model names,” and send two requests to different models within a single task.

For the planning request, use gemini-4-carbon or gemini-4-neon. Send only the repository structure and requirement description, and ask it to return steps, files involved, and acceptance criteria—plus an explicit line telling it not to output complete files. For the execution request, switch to gemini-4-hydrogen. Send the plan, the target file contents, and test commands together, and have it focus only on implementation.

Both requests’ base_url point to https://api.apiyi.com/v1, share the same API key, and differ only in the model field. APIYI (apiyi.com) offers an OpenAI-compatible API, so the planning side and the execution side can use the same calling code; switching models is just changing one string. The table below shows the field values I recommend.

Field Planning request Execution request
model gemini-4-carbon or gemini-4-neon gemini-4-hydrogen
Input content Requirement description, directory tree, key files Plan, original target files, test commands
Required output Steps, files involved, acceptance criteria Patch or complete files, test results
Explicit prohibition Don’t modify files; don’t output full blocks of code Don’t change the plan; stop if you go out of scope
Failure handling — If the same test fails twice in a row, return to the planning model

I’ll also list the unit prices so you can estimate costs: on APIYI, gemini-4-carbon is $4 for input, $20 for output, and $0.2 for cache reads; gemini-4-neon is $3 for input, $15 for output, and $0.15 for cache reads; gemini-4-hydrogen is $1.5 for input, $7.5 for output, and $0.075 for cache reads. One planning-side request corresponds to four or five execution-side requests, and that ratio basically determines the total bill.

🚀 Quick start: If you just want to get the flow working end to end, sign up for APIYI at apiyi.com to get free trial credits. First configure https://api.apiyi.com/v1 in your existing OpenAI SDK, then change the model name and send two requests. Within half an hour, you’ll see a complete round of planning plus execution.

When to hand the task back to the stronger model

The handoff conditions must be hard-coded into the prompt. You can’t let the execution model decide for itself “whether to escalate”—when it’s bad at making that judgment is exactly when escalation is needed most. There are three observable signals: the same test fails more than twice in a row, changes go beyond the files listed in the plan, or the execution model starts repeating the same edit.

Once it’s stuck, don’t throw the entire conversation back to Carbon as-is. Send back only three things: the failing test output, the diff that’s already been changed, and the execution model’s own description of the blocker. Carbon’s strength is replanning; making it read a long stream of irrelevant context only dilutes its judgment—and you’re billed for input tokens anyway.

This feedback loop is the part most likely to be skipped in the whole division of labor, and also the most valuable part. Skip it, and you’re just “running two models once each”—you save money, but you don’t save yourself the rework.


The Cost Math and Tier Choices for Antigravity’s Multi-Model Division of Labor

Let’s get one thing straight first: the 24% quota Antigravity officially mentions is a quota inside its own product, not an APIYI bill—you can’t mix the two when doing the math. The prices below are list prices for the models you can call on APIYI (apiyi.com), and they’re here to help you estimate the cost of setting up this division of labor yourself.

Model (callable on APIYI) Input Output Cache read Typical role
gemini-4-carbon $4 $20 $0.2 Planning / fallback
gemini-4-neon $3 $15 $0.15 Planning default tier
gemini-4-hydrogen $1.5 $7.5 $0.075 Execution
claude-opus-5-5 $4 $20 $0.2 Planning alternative
claude-sonnet-5-5 $2 $10 $0.1 Execution alternative

The most telling row is hydrogen vs. carbon: input 1.5 vs. 4, output 7.5 vs. 20, cache read 0.075 vs. 0.2. In real tasks, the execution side usually handles far more requests than the planning side, so pushing execution down to the hydrogen tier often saves a percentage that’s closer to your actual workload structure than the official 24%. One side note: the model page for gemini-4-carbon says its input supports text, images, video, and audio, while the type column in the summary table only lists text. With small discrepancies like this between docs, it’s safer to trust the model page.

The cache-read column is easy to overlook. The planning side reads the same batch of files over and over, and the execution side reads the same plan over and over; the portion that hits the cache is billed at the cache-read rate, which is an order of magnitude different from regular input. All three tiers on APIYI (apiyi.com) are pay-as-you-go, and new users get free testing credits—enough to run a full round before deciding whether to use this setup long-term.

Should the planning tier be carbon or neon?

In the docs, Neon is the default tier for the planning role, while Carbon is reserved for the heaviest reasoning and verification. For everyday requests, Neon is already enough to break down tasks; Carbon is better suited to changes where a single planning mistake would send the execution side back through three rounds of rework.

You can boil the decision rule down to one sentence: if you can name the files that need changing without looking at the code, Neon is enough; if you can’t, or the change will ripple through the call chain and data model, go straight to Carbon for planning. This lines up with the official positioning—it just turns it into a rule you can actually act on.

Scenario Planning Execution Why
Copy tweaks, adding fields, adding tests gemini-4-neon gemini-4-hydrogen Low difficulty; no need for a heavy planning tier
New features, cross-file refactoring gemini-4-carbon gemini-4-hydrogen The cost of rework from one planning mistake outweighs the tier price difference
Tricky bugs, performance investigation gemini-4-carbon gemini-4-hydrogen, fall back to carbon when stuck Strong model for localization, fast model for verification
Batch changes with an agreed-upon final plan gemini-4-neon claude-sonnet-5-5 The execution side cares more about long-context consistency

Frequently Asked Questions (FAQ)

Q1: What exactly is Antigravity’s Orchestrator?

It’s the component inside Antigravity that handles model routing. Within a single task, it hands the planning phase and the coding phase to different models. Google claims it gets close to the success rate of using Carbon the whole way through, while being faster and using fewer quota credits.

Q2: What’s the relationship between Antigravity and APIYI apiyi.com?

There’s no affiliation. Antigravity is Google’s developer tool, and the Orchestrator switching happens entirely inside it. APIYI apiyi.com is a Large Language Model API aggregation platform that offers OpenAI-compatible endpoints and the corresponding callable models — useful for building your own multi-model division of labor.

Q3: Why does one place say Terminal-Bench 4.0 and another says 4.1?

The two official documents were published on different dates (November 30 and November 12), so they cite different versions of the leaderboard. Version differences affect both the task set and the baseline, which is why the 24% and 19% figures should be cited side by side rather than merged into a single final number.

Q4: How many API keys do I need to build this division of labor myself?

One is enough. Set `base_url` to `https://api.apiyi.com/v1` across the board, and differentiate planning requests from execution requests solely by the model field. The key and billing run through the same account, which makes reconciliation simple. Only split into multiple keys if you need environment isolation.

Q5: When the execution model gets stuck, what information should I hand back to the stronger model?

Three things are enough: the output of the failing tests, the current diff, and a description of the blocker written by the execution model itself. Don’t attach the entire conversation. The strong model’s advantage is re-planning, not reading long context — and input length directly drives up cost.

Q6: Is `gemini-4-carbon` on APIYI the same thing as Carbon in Antigravity?

They’re corresponding tiers you can call, but not the same thing. Antigravity’s Carbon is a role within that product with its own quota; `gemini-4-carbon` on APIYI is a pay-as-you-go API model. When you build your own division of labor, what matters is the model’s price and capabilities.

Q7: What are the known limitations of this division of labor?

First, you have to pass context between the two requests yourself — if the plan is vague, the execution side will drift. Second, you need to implement the handback path yourself; the handoff logic inside the official IDE won’t magically appear in your code. Third, the execution model isn’t as good as the strong model at long-context consistency, so it’s worth chunking very long files first.

Q8: How can I quickly check whether this division of labor is worth it on my own project?

Pick a requirement you actually worked on recently, rerun it with neon plus hydrogen, and note the request count, failure count, and token consumption. Then compare against your earlier records from using the strong model the whole way through. You can export this data directly from the usage details on APIYI apiyi.com — far more reliable than eyeballing an estimate.


Antigravity Multi-Model Orchestration Key Takeaways

  • Two roles: planning is read-only, execution does the hands-on work. The whole point of the Orchestrator is separating those two.
  • Bidirectional handoff: static routing locks the entire task based on how hard the first sentence looks; bidirectional handoff lets the work change hands mid-task, phase by phase.
  • Vendor numbers: near-Carbon success rate, 19% faster, 24% cheaper — all self-reported.
  • Inconsistent versions: one place says Terminal-Bench 4.0, another says 4.1 — cite them side by side, don’t merge them.
  • Reproduce it yourself: send planning requests to gemini-4-carbon or gemini-4-neon, execution requests to gemini-4-hydrogen.
  • Cost leverage: the output price gap between hydrogen and carbon is roughly 2.7x, so the more execution-side requests you send, the more you save.
  • Getting started: APIYI apiyi.com’s OpenAI-compatible endpoint — change one model name and you switch roles.

Summary

Antigravity’s way of chaining multiple models isn’t about how sophisticated the orchestration framework is. It comes down to two judgment calls: let the strong model make only irreversible decisions, let the fast model carry the revertible execution, and keep a return edge so work gets handed back whenever things get stuck.

In your own project, it’s just three steps: send planning requests to gemini-4-carbon or gemini-4-neon to get a plan; send execution requests to gemini-4-hydrogen to edit files and run tests; and if the same test fails twice in a row, hand the diff and test output back to the strong model to re-plan. Use https://api.apiyi.com/v1 as your base_url across the board — one key covers both sides, and the bill lands in one place too.

That 24% and 19% are vendor-reported ballpark figures, and the benchmark version itself is inconsistent between 4.0 and 4.1, so don’t treat them as a promise for your project. Run one round of real requirements first and do the math with your own request counts and token counts — that’s more accurate than any leaderboard. If you want, start with the free trial quota on APIYI apiyi.com, get the pipeline working end to end, and then talk about optimization.


References

  1. Google Blog – How autonomous agents are reshaping software engineering: by Varun Mohan, 2026-11-30

    • Link: blog.google/innovation-and-ai/technology/developers-tools/google-antigravity-varun-mohan
    • Notes: official self-reported data source for the Orchestrator switching mechanism and Terminal-Bench 4.0 benchmark convention
  2. Antigravity Blog – Gemini 4 Hydrogen in Google Antigravity: 2026-11-12

    • Link: antigravity.google/blog/gemini-4-hydrogen-in-google-antigravity
    • Notes: explanation of static routing issues, bidirectional handoff design, and Terminal-Bench 4.1 benchmark convention
  3. Antigravity Docs – Choose a model: role-to-tier mapping

    • Link: antigravity.google/docs/models
    • Notes: default tiers and selectable models for planning and execution roles
  4. Antigravity Blog – Gemini 4 Neon in Google Antigravity: 2026-11-18

    • Link: antigravity.google/blog/gemini-4-neon-in-google-antigravity
    • Notes: explanation of the combination of Neon as the planning role and Hydrogen as the execution role

Author: APIYI Technical Team
Technical contact: Feel free to reach us through the APIYI homepage. For more documentation, visit the docs.apiyi.com documentation center. Model pricing and available models are subject to the current pages on apiyi.com.

Related Articles

Similar Posts