Warum Agenten mit 100 Runden auf Gemini 4 überproportional teuer werden
Ein Coding-Agent mit 100 Runden auf Gemini 4 Hydrogen kostet rund 16,80 US-Dollar, fast das Fünffache der simplen Faustregel Runde mal Preis. Der Grund ist die wiederholte Übermittlung des wachsenden Kontexts, die die Kosten quadratisch steigen lässt.

Ein Coding-Agent mit 100 Turns auf Gemini 4 Hydrogen kostet 16,80 Dollar. Die Schätzung, die ich im Kopf hatte — erste Turn mal 100 — ergab 3,44 Dollar. Die Lücke beträgt das 4,89-Fache, und es handelt sich weder um einen Rundungsfehler noch um eine Retry-Schleife: Es ist die Arithmetik des erneuten Sendens von Kontext, und sie ist vollständig vorhersagbar, sobald man die Summe aufschreibt.
Dasselbe Bild beim teuren Modell. Ein Deep-Research-Lauf mit 50 Turns auf Gemini 4 Carbon kostete 11,87 Dollar zum Tarif, der bis zum 30.11.2026 gilt. Ab dem 01.12.2026 wird derselbe Lauf — identische Turns, identische Tokens, identische Zeitstempel — mit 23,74 Dollar abgerechnet, weil Carbons Input- und Output-Preise sich beide verdoppeln. An der Workload hat sich nichts geändert; an der Zahl darunter schon.
Ich habe das Modell anhand des tatsächlichen Abrechnungsverhaltens der API neu aufgebaut, damit die Zahlen nachgerechnet statt geglaubt werden können. Alles im Folgenden lässt sich aus drei Zeilen Arithmetik ableiten, und ich habe jede Zahl gegen einen Live-Endpoint geprüft, der dieselbe Engine ausführt (Befehle am Ende).
Eine Agent-Schleife ist keine einzelne Anfrage. Turn 5 sendet den System-Prompt, Turn 1, Turn 2 bis 4 und die neue Tool-Ausgabe. Turn 50 sendet all das plus 45 weitere Turns angesammelter Historie.
G ist die Historie, die erst nach Abschluss von Turn 1 existiert, weshalb sie erstmals auf Turn 2 wirkt:
context_t = C0 + (t - 1) · G input_t = context_t + U cost_t = input_t/1e6 · Pin + (O + T)/1e6 · Pout Genau dieses (t - 1) ist der Punkt, an dem die meisten handgebauten Schätzungen um einen Turn danebenliegen — und wer 50 Turns tief ist, für den ist ein Turn G eine Runde von 3.000 Tokens in jedem weiteren Call.
Summiert man den Kontext über alle Turns, ergibt sich eine arithmetische Reihe:
Σ input_t = N·C0 + G·N(N-1)/2 + N·U Der mittlere Term ist die ganze Geschichte: G·N(N-1)/2 ≈ (G/2)·N². Verdoppelt man die Turns, vervierfacht sich grob die Input-Hälfte der Rechnung — Faktor 3,58 beim Übergang von 50 auf 100 Turns in meinem Research-Szenario, konvergierend gegen 4 mit wachsendem N, weil die linearen Terme nie ganz verschwinden.
Vergleiche die tatsächliche Summe mit der naiven Schätzung N × cost_1. Nach Kürzen von N:
total / naive = 1 + G·(N-1) / ( 2 · [ C0 + U + (Pout/Pin)·(O + T) ] ) Daraus ergeben sich zwei Eigenschaften:
Man beachte die letzten beiden Zeilen: gleiches N, gleiche Preisliste, unterschiedliches G — deshalb landen 100 Turns Coding (4,89×) und 100 Turns Research (4,29×) an unterschiedlichen Stellen. Wer nur eine einzige Zahl vom Typ "Agents kosten das N-Fache von dem, was du denkst" zitiert, zitiert das G von jemand anderem.
Das Research-Szenario, N variiert, mit den Pre-Change-Preisen 2,00/10,00 Dollar:
Bei 5 Turns fällt der quadratische Term kaum auf. Bei 100 Turns macht er 88 Prozent der Input-Rechnung aus.
Thinking-Tokens werden zum Output-Preis abgerechnet, zusätzlich zur sichtbaren Antwort. In dem von mir verwendeten Modell sind sie ein Vielfaches der sichtbaren Ausgabe: aus 0×, niedrig 0,5×, mittel 1,5×, hoch 3×. Diese Multiplikatoren sind Planungsheuristiken, keine pro Modell gemessenen Faktoren — ich nutze sie, um einen Lauf vor der Ausführung zu budgetieren, nicht um zu behaupten, was ein bestimmtes Modell für einen bestimmten Prompt emittiert.
Der Grund, warum sie einen eigenen Abschnitt verdienen, ist die Arithmetik der Verstärkung. Beim Research-Lauf mit 50 Turns:
Auf Stufe hoch machen Thinking-Tokens 3,6 Prozent aller abgerechneten Tokens aus (180.000 von 4.975.000) und 15,2 Prozent des Geldes, weil Output bei diesen Modellen mit dem 5-Fachen des Input-Preises bewertet wird. Sie erscheinen nie im Transkript, also auch nie im Review — man findet sie, wenn man die Rechnung öffnet.
Eben deshalb fühlt sich die Änderung zum 01.12.2026 schlimmer an als "2× auf zwei Modelle". Wenn sich Input, Output und Thinking alle verdoppeln, ist die Post-Change-Summe exakt das Doppelte der Pre-Change-Summe, aber das absolute Delta ist die Größe, gegen die man budgetiert: plus 11,87 Dollar pro Research-Lauf mit 50 Turns.
Zur Referenz die gesamte Änderung zum 01.12.202.2026 als Nachschlagetabelle — das bedeutet "die Preise haben sich verdoppelt" ganz präzise:
Die Preise wurden am 28.11.2026 gegen Googles offizielle Gemini-API-Preisseite und LiteLLM verifiziert; Pout/Pin bleibt bei Carbon und Argon 5, weshalb die Multiplikator-Figuren oben von der Preiserhöhung unberührt bleiben.
Vier Hebel, gemessen am selben Research-Lauf mit 50 Turns zu den Post-Change-Preisen 4,00/20,00 Dollar (Baseline 23,74 Dollar):
Lies die dritte und vierte Zeile zusammen. Das Tuning des Thinking-Levels ist hier der schwächste Hebel (−7,6 Prozent), Kontext-Disziplin ein mittlerer (−31 Prozent) und Model-Routing mit deutlichem Abstand der stärkste (−62,5 Prozent) — weil Carbons Output-Preis nach der Änderung das 2,67-Fache von Hydrogens beträgt und Output genau das ist, was Thinking multipliziert.
Keines davon ist neuer Rat. Neu — oder zumindest neu aufgeschrieben — ist, dass alles dieselbe Gleichung ist: G, N, Pout/Pin. Man kann sie ordnen, bevor man etwas ausgibt.
Jede Zahl in diesem Beitrag stammt aus demselben Vier-Zeilen-Modell, und ich habe jede einzelne gegen einen Live-Endpoint geprüft statt gegen ein Spreadsheet. Der Endpoint ist schlüssellos und read-only:
curl -sS -X POST https://geminicost.craftstead.app/mcp \ -H 'Content-Type: application/json' \ -H 'Accept: application/json, text/event-stream' \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "estimate_agent_run", "arguments": { "modelId": "gemini-4-carbon", "thinkingLevel": "high", "turns": 50, "initialContextTokens": 20000, "contextGrowthPerTurn": 3000, "userToolInputTokensPerTurn": 1200, "outputTokensPerTurn": 1200, "date": "2026-11-30" } } }' Zurück kommt simulatedTotalUsd: 11.87, naiveEstimateUsd: 4.52, naiveMultiplier: 2.626 sowie ein afterIncrease-Block, der denselben Lauf zum nächst erfassten Preisabschnitt neu bewertet (23.74). Ändert man date auf 2026-12-01, wird der Top-Level-Block zu den Post-Change-Zahlen.
Die Preise selbst sind veröffentlicht, nicht erfunden: geprüft am 28.11.2026 gegen Googles Gemini-API-Preisseite und LiteLLM (die Tabelle oben). Die Formeln, die geschlossene Summenformel und die ausgearbeiteten Beispiele stehen mit vollständiger Herleitung im öffentlichen Docs-Repo ohne beigefügten Anwendungsquellcode, sodass du sie gegen deine eigene Rechnung diffen kannst, statt mir zu vertrauen. Die interaktive Version ist der Gemini Cost Simulator, falls du lieber Schieberegler bewegst als curl zu schreiben.
Zwei Vorbehalte, die man klar aussprechen sollte. Erstens rechnet das Modell nur mit Listenpreisen — keine Batch-Rabatte, keine Caching-Credits, keine Committed-Use-Preise; wer Prompt Caching nutzt, zahlt real weniger als diese Zahlen, eventuell deutlich weniger, und die Ersparnis skaliert mit G exakt so wie die Kosten. Zweitens sind die Thinking-Multiplikatoren Budget-Heuristiken; ersetze sie durch deine eigenen gemessenen Verhältnisse, und die restliche Arithmetik gilt weiterhin.
Hinweis: Dieser Artikel wurde mit KI-Unterstützung geschrieben. Jede Zahl darin wurde von dem oben beschriebenen Modell berechnet, gegen den in Abschnitt 5 gezeigten Live-Endpoint quer geprüft und von mir aufgeschrieben; die Code- und Daten-Links sind meine eigenen Projekte.
Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.
Original (Englisch) anzeigen
A 100-turn coding agent running on Gemini 4 Hydrogen bills $16.80. The estimate I had in my head — first turn times 100 — said $3.44. The gap is 4.89×, and it is not a rounding error or a retry loop: it is the arithmetic of re-sending context, and it is fully predictable once you write the sum down.
Same story on the expensive model. A 50-turn deep-research run on Gemini 4 Carbon cost $11.87 at the rate in force through 2026-11-30. From 2026-12-01 that identical run — same turns, same tokens, same timestamps — bills $23.74, because Carbon's input and output rates both double. Nothing about the workload changed; the number under it did.
I rebuilt the model from the API's actual billing behaviour so the numbers could be recomputed rather than trusted. Everything below is derivable from three lines of arithmetic, and I checked each figure against a live endpoint that runs the same engine (commands at the end).
An agent loop is not one request. Turn 5 sends the system prompt, turn 1, turns 2–4, and the new tool output. Turn 50 sends all of that plus 45 more turns of accumulated history.
G is history that only exists after turn 1 finishes, which is why it first applies to turn 2:
context_t = C0 + (t - 1) · G input_t = context_t + U cost_t = input_t/1e6 · Pin + (O + T)/1e6 · Pout Enter fullscreen mode Exit fullscreen mode That (t - 1) is where most hand-built estimates go wrong by one turn — and once you are 50 turns deep, one turn of G is 3,000 tokens on every remaining call.
Sum the context over all turns. It is an arithmetic series:
Σ input_t = N·C0 + G·N(N-1)/2 + N·U Enter fullscreen mode Exit fullscreen mode The middle term is the whole story: G·N(N-1)/2 ≈ (G/2)·N². Double the turns and the input half of the bill roughly quadruples — 3.58× when going from 50 to 100 turns in my research scenario, converging on 4× as N grows, because the linear terms never quite disappear.
Compare the real total with the naive N × cost_1 estimate. After cancelling N:
total / naive = 1 + G·(N-1) / ( 2 · [ C0 + U + (Pout/Pin)·(O + T) ] ) Enter fullscreen mode Exit fullscreen mode Two properties fall out of this:
Note the last two rows: same N, same price sheet, different G, so 100-turn coding (4.89×) and 100-turn research (4.29×) land in different places. If you only ever quote one "agents cost N× more than you think" figure, you are quoting someone else's G.
The research scenario, N swept, at the pre-change $2.00/$10.00:
At 5 turns you barely notice the quadratic term. At 100 it is 88% of the input bill.
Thinking tokens are billed at the output rate, on top of the visible answer. In the model I used they are a multiple of the visible output: off 0×, low 0.5×, medium 1.5×, high 3×. Those multipliers are planning heuristics, not measured per-model factors — I use them to budget a run before executing it, not to claim what a specific model emits for a specific prompt.
The reason they deserve their own section is the arithmetic of the amplification. On the 50-turn research run:
At high, thinking is 3.6% of all billed tokens (180,000 of 4,975,000) and 15.2% of the money, because output is priced at 5× input on these models. It never appears in the transcript, so it never appears in the review either — you find it when you open the invoice.
This is also why the 2026-12-01 change feels worse than "2× on two models". When input, output and thinking all double, the post-change total is exactly 2× the pre-change total, but the absolute delta is the one you budget against: +$11.87 per 50-turn research run.
For reference, the whole 2026-12-01 change as a lookup table — this is what "the rates doubled" means precisely:
Rates verified 2026-11-28 against Google's official Gemini API pricing page and LiteLLM; Pout/Pin stays 5 for Carbon and Argon, which is why the multiplier figures above are unchanged by the price rise.
Four levers, measured on the same 50-turn research run at the post-change $4.00/$20.00 rates (baseline $23.74 ):
Read the third and fourth rows together. Temperature-tuning your thinking level is the weakest lever here (−7.6%), context discipline is a mid-strength one (−31%), and model routing is the strongest by a wide margin (−62.5%) — because Carbon's post-change output price is 2.67× Hydrogen's, and output is what thinking multiplies.
None of these are new advice. What is new — or at least, newly written down — is that they are all the same equation: G, N, Pout/Pin. You can rank them before spending anything.
Every figure in this post came out of the same four-line model, and I checked each one against a live endpoint rather than a spreadsheet. The endpoint is keyless and read-only:
curl -sS -X POST https://geminicost.craftstead.app/mcp \ -H 'Content-Type: application/json' \ -H 'Accept: application/json, text/event-stream' \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "estimate_agent_run", "arguments": { "modelId": "gemini-4-carbon", "thinkingLevel": "high", "turns": 50, "initialContextTokens": 20000, "contextGrowthPerTurn": 3000, "userToolInputTokensPerTurn": 1200, "outputTokensPerTurn": 1200, "date": "2026-11-30" } } }' Enter fullscreen mode Exit fullscreen mode It returns simulatedTotalUsd: 11.87, naiveEstimateUsd: 4.52, naiveMultiplier: 2.626, and an afterIncrease block that re-prices the same run at the next recorded segment ( 23.74 ). Change date to 2026-12-01 and the top-level block becomes the post-change numbers.
The rates themselves are published, not invented: checked 2026-11-28 against Google's Gemini API pricing page and LiteLLM (the table above). The formulas, the closed-form summation and the worked examples above are written out in the public docs repo with no application source code attached, so you can diff them against your own invoice instead of taking my word for it. The interactive version is Gemini Cost Simulator if you would rather move sliders than write curl.
Two caveats worth stating plainly. First, the model bills list prices only — no batch discounts, no caching credits, no committed-use pricing; if you use prompt caching, your real bill will be lower than these numbers, potentially by a lot, and the saving scales with G exactly the way the cost does. Second, the thinking multipliers are budget heuristics; replace them with your own measured ratios and the rest of the arithmetic still holds.
Disclosure: this article was written with AI assistance. Every number in it was computed by the model described above, cross-checked against the live endpoint shown in section 5, and written up by me; the code and data links are my own projects.