- Home
- Models
- Comparisons
- Gemini 3.1 Pro Preview vs Gemini 3.8 Flash
Gemini 3.1 Pro Preview vs Gemini 3.8 Flash: API pricing and context window
Gemini 3.8 Flash is 63% cheaper than Gemini 3.1 Pro Preview for input ($0.75 vs $2.00 per 1M tokens) and 69% cheaper for output ($3.75 vs $12.00). Both accept up to 1,048,576 input tokens per request. A 10K-input, 1K-output request costs $0.032 on Gemini 3.1 Pro Preview and $0.011 on Gemini 3.8 Flash.
- Gemini 3.1 Pro Preview
- $2.00 / $12.00 Input / Output, per 1M tokens · 1M context window
- Gemini 3.8 Flash
- $0.75 / $3.75 Input / Output, per 1M tokens · 1M context window
Side by side
| Field | Gemini 3.1 Pro Preview | Gemini 3.8 Flash | Gemini 3.1 Pro Preview vs Gemini 3.8 Flash |
|---|---|---|---|
| Input | $2.00 | $0.75 | +167% |
| Output | $12.00 | $3.75 | +220% |
| Cached input | $0.20 | $0.075 | +167% |
| Context window | 1,048,576 | 1,048,576 | |
| Max output | 65,536 | 65,536 | |
| Long-context threshold | 200,000 | none | |
| Batch API input | $1.00 | $0.375 | +167% |
| Batch API output | $6.00 | $1.875 | +220% |
| Flex input | $1.00 | $0.375 | +167% |
| Flex output | $6.00 | $1.875 | +220% |
| Priority input | $3.60 | $1.35 | +167% |
| Priority output | $21.60 | $6.75 | +220% |
| Image input | Yes | Yes | |
| Function calling | Yes | Yes | |
| Reasoning | Yes | Yes | |
| Prompt caching | Yes | Yes | |
| PDF input | Yes | Yes | |
| Web search | Yes | Yes | |
| Structured output | Yes | Yes | |
| Audio input | Yes | Yes | |
| Minimum cacheable prompt | 4,096 | 4,096 | |
| Input types | text, image, audio, video | text, image, audio, video | |
| Output types | text | text |
Cost per task
| Task | Gemini 3.1 Pro Preview | Gemini 3.8 Flash | Cheaper |
|---|---|---|---|
| Chat request (10K in + 1K out) | $0.032 | $0.011 | Gemini 3.8 Flash (65% less) |
| Codebase question (100K in + 2K out) | $0.224 | $0.083 | Gemini 3.8 Flash (63% less) |
| Same question, context cached (100K cached + 2K out) | $0.044 | $0.015 | Gemini 3.8 Flash (66% less) |
| Long document (300K in + 4K out) | $1.27 | $0.24 | Gemini 3.8 Flash (81% less) |
| 1M tokens a month (750K in + 250K out) | $4.50 | $1.50 | Gemini 3.8 Flash (67% less) |
Estimate your own workload in the calculator
Which one to pick
- Pick Gemini 3.8 Flash to spend less: it is cheaper on every task above. A chat request costs $0.011 vs $0.032, and 1M tokens a month $1.50 vs $4.50.
- Gemini 3.1 Pro Preview bills the whole request at $4.00 input and $18.00 output per 1M once a prompt passes 200K tokens; Gemini 3.8 Flash lists no long-context surcharge.
- Through the Batch API, Gemini 3.8 Flash is cheaper for input and output: $0.375 vs $1.00 and $1.875 vs $6.00 per 1M tokens.
- Gemini 3.8 Flash charges less for cached input reads: $0.075 vs $0.20 per 1M tokens.
Full pages: Gemini 3.1 Pro Preview · Gemini 3.8 Flash
More comparisons
- Gemini 3.8 Flash vs Gemini 3.5 Flash
- Claude Opus 5.5 vs Gemini 3.1 Pro Preview
- Claude Opus 5 vs Gemini 3.1 Pro Preview
- GPT-6.2 Astra vs Gemini 3.1 Pro Preview
- GPT-5.5 vs Gemini 3.1 Pro Preview
- Gemini 3.1 Pro Preview vs Grok 4.7
- Gemini 3.1 Pro Preview vs DeepSeek V4 Pro
- Claude Sonnet 5.5 vs Gemini 3.8 Flash
Questions
Which is cheaper, Gemini 3.1 Pro Preview or Gemini 3.8 Flash?
Gemini 3.8 Flash is 63% cheaper than Gemini 3.1 Pro Preview for input ($0.75 vs $2.00 per 1M tokens) and 69% cheaper for output ($3.75 vs $12.00). A 10K-input, 1K-output request costs $0.032 on Gemini 3.1 Pro Preview and $0.011 on Gemini 3.8 Flash.
Which has the larger context window, Gemini 3.1 Pro Preview or Gemini 3.8 Flash?
Both accept up to 1,048,576 input tokens. Both return up to 65,536 output tokens.
How much does a typical request cost on Gemini 3.1 Pro Preview and Gemini 3.8 Flash?
A chat request with 10K input and 1K output tokens costs $0.032 on Gemini 3.1 Pro Preview and $0.011 on Gemini 3.8 Flash. A 100K-token codebase question with a 2K answer costs $0.224 and $0.083.
What are the differences between Gemini 3.1 Pro Preview and Gemini 3.8 Flash?
Gemini 3.1 Pro Preview / Gemini 3.8 Flash: input: $2.00 / $0.75; output: $12.00 / $3.75; cached input: $0.20 / $0.075; long-context threshold: 200,000 / none; Batch API input: $1.00 / $0.375; Batch API output: $6.00 / $1.875; Flex input: $1.00 / $0.375; Flex output: $6.00 / $1.875; Priority input: $3.60 / $1.35.