47 model prices
  1. Home
  2. Models
  3. Comparisons
  4. 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.

Last updated: Pricing data: LiteLLM (MIT)

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

FieldGemini 3.1 Pro PreviewGemini 3.8 FlashGemini 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 window1,048,5761,048,576
Max output65,53665,536
Long-context threshold200,000none
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 inputYesYes
Function callingYesYes
ReasoningYesYes
Prompt cachingYesYes
PDF inputYesYes
Web searchYesYes
Structured outputYesYes
Audio inputYesYes
Minimum cacheable prompt4,0964,096
Input typestext, image, audio, videotext, image, audio, video
Output typestexttext

Cost per task

TaskGemini 3.1 Pro PreviewGemini 3.8 FlashCheaper
Chat request (10K in + 1K out)$0.032$0.011Gemini 3.8 Flash (65% less)
Codebase question (100K in + 2K out)$0.224$0.083Gemini 3.8 Flash (63% less)
Same question, context cached (100K cached + 2K out)$0.044$0.015Gemini 3.8 Flash (66% less)
Long document (300K in + 4K out)$1.27$0.24Gemini 3.8 Flash (81% less)
1M tokens a month (750K in + 250K out)$4.50$1.50Gemini 3.8 Flash (67% less)

Estimate your own workload in the calculator

Which one to pick

Full pages: Gemini 3.1 Pro Preview · Gemini 3.8 Flash

More comparisons

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.