Qaf · Infra test · Oct 27, 2026

Gemini Flex: half price, but only for work nobody is waiting on

We ran 60 real Qaf questions through gemini-3.7-flash on Standard and Flex, on both Vertex (our prod path) and the Gemini API. The answers came out the same; the difference is latency and reliability.

Vertex Flex works: 59/59 requests succeeded at 50% off. Median time to finish was about 31 s vs 21 s on Standard, but 1 in 10 took over 2.8 min, and the slowest took 5.6 min.

Keep chat on Standard; move catalog generation and evals to Vertex Flex. Skip Gemini API Flex: 22 of 60 requests were rejected with 503 and the rest took 1.3–7 min (median ≈4 min).

Results · second run, 30 questions per row

PathPriceSucceededFirst text p50Done p50Done p90Slowest
Vertex · StandardProd today list30/3012 s21 s29 s32 s
Vertex · FlexFlex PayGo 50% off30/3022 s31 s2.8 min5.6 min
Gemini API · Standard list30/3015 s28 s34 s45 s
Gemini API · Flexservice_tier 50% off19/303.5 min3.7 min6.5 min7.2 min

Every request, time to finish

10s 20s 30s 1m 2m 5m 10m Vertex · Standard Vertex · Flex Gemini API · Standard Gemini API · Flex 11× 503

Each dot is one answer (log scale); the black tick marks the median. Blue = Standard, green = Flex.

What this means for Qaf

How we tested

Oct 27, 2026, 09:55–11:00 UTC, in two runs of 30 real user questions from prod search logs (Arabic and English). Each question went to all four paths at the same time: streaming, thinking set to medium, no SDK retries, a unique system-prompt prefix so no request was served from cache, and about 2.4k output tokens per answer. The table uses the second run only. In the first run, Bun's built-in 300 s fetch timeout cut off 10 Flex requests early (9 Gemini API, 1 Vertex). The 503 count includes both runs. Every response reported the tier it was served on: ON_DEMAND_FLEX on Vertex, serviceTier: flex on the Gemini API. Two caveats: this covers about an hour on one weekday, and Flex speed depends on how busy Google is overall. The 50% price is from Google's docs; we haven't checked it against our credits invoice yet. Vertex allows 3,000 Flex requests per minute per model.