About this tool
Gemini 3.1 Pro Preview
The Pro preview is the Google card that publishes a long-context tier. Cache reads are on the card. Cache writes are not. The scenario still models a prefix that has to be written when the hit rate is below one, and those tokens are priced as input, with a mark that the card has no write line. Flash is the peer: no long-context tier, and the same missing write lines. The word preview is in the id because that is what the vendor published. This page does not rename it to a stable alias that the card does not list. If you are deciding whether a prompt might cross the threshold, this is the card that has a threshold. Flash is the card that does not.
Worked example
The Gemini 3.1 Pro Preview rates were checked against ai.google.dev on 2026-09-22.
0% cache hit: $4.63 50% cache hit: $2.83 90% cache hit: $1.39
At a 50% hit the Gemini 3.1 Pro Preview total of $2.83 is $0.1500 of new input, $0.4800 of output, $0.2000 of cache reads and $2.00 for context written again at the input rate. Context written again at the input rate is the largest share of the Gemini 3.1 Pro Preview bill at that hit rate, 71%.
Versus Gemini 3.8 Flash: $1.80 more than Gemini 3.8 Flash. Gemini 3.1 Pro Preview costs more than Gemini 3.8 Flash at every hit rate from 0% to 90%: $2.92 more at 0% and $0.8987 more at 90%.
Gemini 3.1 Pro Preview publishes no price for a cache line this loop uses, so those tokens are billed at its input rate of 2 USD per million tokens.
Long context
Above 200,000 prompt tokens, Gemini 3.1 Pro Preview bills at its long-context rates. One request with 200,001 input tokens and 1,000 output tokens, and no cache tokens, costs $0.8180.
Against the other models
On this loop at a 50% hit, Gemini 3.1 Pro Preview is number 4 of 10 models with a page here, counting from the cheapest. Gemini 3.1 Pro Preview costs more than Grok 4.20 (0309) Reasoning at every hit rate from 0% to 90%: $1.94 more at 0% and $0.5862 more at 90%. Gemini 3.1 Pro Preview costs more than Grok 4.7 below about a 40% hit and less above it.
The loop, what a hit rate means, how batch and long-context tiers are treated and what a checked date promises are explained once on the LLM pricing table page.