Flex tiers in agent loops
We wanted to see if we could cut our background agent bill in half by switching to Flex tiers. On paper it’s a 50% discount in exchange for slower responses. In a real multi-turn agent loop, though, prompt caching is already doing most of the work—90% to 95% off input tokens—and a single uncached read costs 10× to 20× a cached one. If Flex drops the cache even a couple of times mid-loop, the math flips fast.
We ran live multi-turn financial diligence loops across every Flex-capable OpenAI and Gemini model to see what you actually save.
OpenAI Flex gave us the full 50% discount across every model we tested, with zero retries and zero cache misses. Gemini Flex was all over the map: Gemini 4 Argon kept the whole discount, Hydrogen lost nearly half of it to a single cold cache miss, and Carbon and 3.1 Pro couldn’t finish Turn 1.
What a 10-turn loop actually costs
Total cost and wall time for one 10-turn loop, each bar scaled to its own Standard run. We also tried GPT-6.2 Astra and GPT-6.2 Sol, which don’t support Flex at all—OpenAI’s API returns a 400 and tells you to use background mode with a completion window instead.
On Gemini, it depends on the model
Neon is from our 15-turn pure-Flex run; Argon and Hydrogen are 10-turn runs. Because Flex runs on spare capacity, these numbers will move around with load—check your own cache hit rate before banking on the discount.
First pass: GPT-6.1 Sol, GPT-5.5, and Gemini 4 Hydrogen
Same 10-turn diligence loop, each bar scaled to its own Standard total.
Side by side on one clock
The same 10-turn loop at 40× speed. Each bar is one turn.
One turn wiped out half of Hydrogen’s discount
Turn 7. There was no idle gap between Turn 6 and Turn 7—we sent Turn 7 immediately—and Gemini Flex still dropped from 89.2% to 0% cache. That single turn cost $0.0226 (6.4× Turn 6). OpenAI Flex never missed.
Turn-by-turn data
| Turn | Hydrogen cache | Hydrogen cost | Hydrogen latency | Sol cache | Sol cost | Sol Std cost | Sol latency |
|---|---|---|---|---|---|---|---|
| 1 | 0.0% | $0.01792 | 16.4s (2 tries) | 0.0% | $0.02687 | $0.05355 | 11.9s |
| 2 | 86.7% | $0.00345 | 5.6s | 96.2% | $0.00227 | $0.00451 | 1.5s |
| 3 | 87.8% | $0.00340 | 4.9s | 96.3% | $0.00234 | $0.00466 | 14.3s |
| 4 | 91.9% | $0.00277 | 11.8s | 96.5% | $0.00236 | $0.00469 | 22.5s |
| 5 | 92.3% | $0.00279 | 9.2s | 96.6% | $0.00241 | $0.00477 | 12.1s |
| 6 | 89.2% | $0.00352 | 17.2s | 96.7% | $0.00245 | $0.00487 | 2.9s |
| 7 | 0.0% | $0.02261 | 51.9s | 96.8% | $0.00251 | $0.00498 | 5.6s |
| 8 | 93.4% | $0.00286 | 353.9s (2 tries) | 96.9% | $0.00255 | $0.00507 | 1.6s |
| 9 | 93.2% | $0.00298 | 8.3s | 97.0% | $0.00258 | $0.00511 | 3.8s |
| 10 | 93.5% | $0.00514 | 5.0s | 97.1% | $0.00418 | $0.00858 | 43.1s |
| Total | 74.1% | $0.06742 | 484.3s | 88.5% | $0.05052 | $0.10079 | 119.5s |
How many cold misses it takes to break even
Total loop cost vs. Standard as mid-loop cold misses add up (from stalls or getting routed to a cold replica, like Turn 7 above). Because GPT-6.1 Sol charges a 1.25× cache-write fee, it looks the most fragile on paper. In our runs OpenAI Flex never dropped a cache (0 misses across all tested models), whereas Gemini Flex did.
The breakeven math
A loop with I input tokens, O output tokens, and cache hit rate c costs:
When Flex cuts every rate in half and cache reads are discounted by d = 1 − Pread / Pmiss, Flex input costs the same as Standard input once the Flex cache hit rate drops to:
On Gemini 4 (d = 0.95), a Standard loop at 90% cache breaks even at 74.7% on Flex. At 95% cache, it breaks even at 84.7%—a 10-point cache drop erases the entire input discount.
| Model | Cache write | Flex cache read | Flex at 60% cache | Breakeven, Std at 90% | Breakeven, Std at 95% |
|---|---|---|---|---|---|
| GPT-6.1 Sol | 1.25× | 50% of std | +17% | 67.5% | 77.5% |
| GPT-6 Sol | 1.25× | 50% of std | +5% | 62.6% | 72.6% |
| GPT-6 Luna | 1.25× | 50% of std | +5% | 62.6% | 72.6% |
| GPT-5.6 Sol | 1.25× | 50% of std | +5% | 62.6% | 72.6% |
| GPT-5.5 | None | 50% of std | −6% | 55.6% | 65.6% |
| GPT-5.4 | None | 50% of std | −6% | 55.6% | 65.6% |
| Gemini 4 Hydrogen | None | 50% of std | +8% | 64.2% | 74.2% |
| Gemini 4 Neon | None | 50% of std | +8% | 64.2% | 74.2% |
| Gemini 3.8 Flash | None | 50% of std | −3% | 57.8% | 67.8% |
| Gemini 3.1 Pro | None | 100% of std | +3% | 62.5% | 73.8% |
Modeled on a 50:1 agent loop (1.0M input, 20k output tokens). “Flex at 60% cache” compares against Standard at 90% cache; positive numbers mean Flex costs more. Note that Gemini 3.1 Pro doesn’t discount cache reads on Flex at all, which caps its best-case loop savings around 31–35% even with zero misses.
Why falling back to Standard backfired on Gemini Neon
We tested whether cutting off slow Flex turns at 30s or 60s and retrying on Standard could cap tail latency without losing the discount. It made things worse. Aborting a slow Flex turn threw away work in flight, caused more retries, and when a Standard fallback landed on a cold cache it billed full $3/M uncached pricing. Turn 12 alone cost $0.1082, roughly 18× a cached Flex turn. The 60s fallback arm ended up 12% more expensive than regular Standard and took 12 minutes instead of 1m 46s.
| Arm | Retries | Cold misses | Cache hit, T2–15 | vs Standard |
|---|---|---|---|---|
| Standard | 0 | 0 | 90.2% | baseline |
| Flex | 0 | 1 | 87.7% | −44.6% |
| Flex, 30s fallback | 5 | 2 | 81.3% | −25.3% |
| Flex, 60s fallback | 8 | 3 | 72.8% | +12.0% |
OpenAI Flex vs. Gemini Flex
| OpenAI Flex | Gemini Flex | |
|---|---|---|
| Cache retention | Identical to Standard (96.7% vs 96.7% on Terra, Astra, and GPT-6.1 Sol). | Model-dependent. Identical on Argon (92.2%), down 11.4 points on Hydrogen from one cold miss. |
| Actual savings | 49.6%–50.2% across every model tested. | 50.3% on Argon, 44.6% on Neon, 26.8% on Hydrogen. Capped at 31%–35% on 3.1 Pro. |
| Retries & stalls | 0 retries, 0 cold misses across every turn we ran. | Argon ran clean. Carbon and 3.1 Pro went 0/6 on Turn 1. Hydrogen stalled 353.9s on Turn 8. |
| Speed vs. Standard | Faster off-peak on Terra and Astra; 4.4× slower on GPT-6.1 Sol. | 1.4× slower on Argon, 1.6× on Neon, 10.2× on Hydrogen. |
| Where it works | Background agents, subagents, evals, batch jobs. | Argon for monitored async loops; otherwise single-shot or output-heavy jobs where caching doesn’t drive the bill. |
What we’re doing in production
- If a user is waiting, use Standard. Even when Flex averages 5 seconds a turn, one 90-second or 5-minute stall mid-loop feels broken.
- For background multi-turn loops, start with OpenAI Flex. Every OpenAI Flex model we tested kept its cache, needed zero retries, and delivered the full ~50% discount. (For GPT-6.2, Flex doesn’t exist—you’d need OpenAI’s async background mode with a completion window instead.)
- On Gemini, treat Flex as per-model—and measure cache hits. Argon Flex gave us the full 50% discount at 1.4× latency; Carbon and 3.1 Pro never got past Turn 1. If a Gemini Flex loop’s cache hit rate trails Standard by more than 10–15 points, you’re eating 5×–10× latency for very little savings.
- Skip short-timeout Standard fallbacks on cached Gemini loops. On Neon, waiting out slow turns with pure Flex (180s–300s timeout) saved 44.6%; cutting turns off at 60s and falling back to Standard cost 12% more than just running Standard.
- For single-shot or output-heavy async work (evals, extraction, short-context reasoning), caching barely matters—Flex is an easy ~50% cut on both OpenAI and working Gemini 4 models.
Methodology
Each 10-turn loop started with a 21k–23.5k token diligence prompt (an analyst rubric, 12 quarters of segment financials, and 60 footnotes) and grew by ~840–1,300 tokens per turn across nine sequential tool calls and a final memo (~250k–295k input tokens total). Every run got a unique run ID, deal ID, and numeric seed at the top of its prompt so Standard and Flex runs could never share a cache. All runs used low reasoning effort, up to 6 retries with exponential backoff (3s base, 30s max), and a 180s request timeout. Costs are calculated from published list rates, including cache-write fees and cache-read discounts.
These are live snapshots from December 1, 2026, so Flex queue times and capacity will vary by time of day.
We also noticed prefix-caching granularity varies a lot even on Standard: GPT-6.1 Sol cached everything from the prior turn down to the last 3 tokens; GPT-5.5 aligned to 128-token blocks (~1,000–1,800 uncached tokens/turn); Gemini 4 Hydrogen left ~2,120 tokens uncached when only ~1,100 new tokens were added; and Gemini 3.1 Pro left ~3,300.
Notes
- Gemini 4 Carbon Flex: We tested Carbon twice, 30 minutes apart, and Flex went 0 for 7. In the full run, all 6 attempts on Turn 1 returned 503 (“experiencing high demand”), taking 10–74s each (4m 48s total). On a follow-up 35-token “Reply with OK.” check, Standard returned in 4.3s while Flex hit our 45s timeout. Google’s API accepts the Flex tier on Carbon, so it looks like a capacity shortage rather than an unsupported parameter.
- GPT-6.2: GPT-6.2 Astra and GPT-6.2 Sol reject
service_tier=flexwith a 400 error pointing tobackground=truewithbackground_options.completion_window.