New API
  • Home
  • Docs
  • Console
  • AgentAgentHotHot
  • Partners
Sign in
Home / Pricing / Models / gemini-3.1-pro-preview vs gemini-3.8-flash

gemini-3.1-pro-preview vs gemini-3.8-flash: API Pricing & Capabilities

Unit prices, a monthly cost example and capabilities of gemini-3.1-pro-preview and gemini-3.8-flash, side by side, from the build-time price snapshot. Both models work with the same OpenLux API key and base URL — switch by changing the model parameter.

gemini-3.1-pro-preview: Gemini 3.1 is Google's most intelligent model family to date, grounded in advanced reasoning. It is designed to turn any idea into reality by mastering agentic workflows, autonomous coding, and complex multimodal tasks. gemini-3.1-pro-preview is best suited for complex tasks requiring broad world knowledge and advanced cross-modal reasoning.

gemini-3.8-flash: Gemini-3.8-Flash is the general availability (GA) flagship multimodal model, designed for code development and AI agent scenarios. It supports configurable reasoning depth, offers a million-token context window, and is compatible with image, text, audio, and video inputs. With standout capabilities in tool invocation and multi-step task execution, it is well-suited for large-scale production workloads.

Price overview

For each model, the lowest-priced group available to visitors; input, output and monthly cost all use that group.

Itemgemini-3.1-pro-previewgemini-3.8-flash
ProviderGoogleGoogle
GroupVertex-Gemini-1Anti-Gemini-2
Input (USD / 1M tokens)$0.40$0.1125
Output (USD / 1M tokens)$2.40$0.5625
Cache read (USD / 1M tokens)$0.04$0.0112
Monthly cost example$88.00$22.50

Monthly cost example: 100M input tokens + 20M output tokens per month, using the input and output prices of the same group, excluding cache.

gemini-3.1-pro-preview has long-context tiers; the example uses first-tier prices.

Prices by group

USD per 1M tokens. Price = base price × group ratio.

gemini-3.1-pro-preview by group

GroupInputOutputCache readMonthly example
Vertex-Gemini-1$0.40$2.40$0.04$88.00
Aistudio-Gemini-2$0.5294$3.177$0.0529$116.47
Vertex-Gemini-2$0.60$3.60$0.06$132.00
Aistudio-Gemini-3$0.8824$5.294$0.0882$194.12
Vertex-Gemini-3$1.80$10.80$0.18$396.00
Aistudio-Gemini-4$1.912$11.471$0.1912$420.59

gemini-3.8-flash by group

GroupInputOutputCache readMonthly example
Anti-Gemini-2$0.1125$0.5625$0.0112$22.50
Aistudio-Gemini-3$0.3309$1.654$0.0331$66.18
Vertex-Gemini-3$0.675$3.375$0.0675$135.00
Aistudio-Gemini-4$0.7169$3.585$0.0717$143.38

Same-group comparison

Groups available to both models, with the monthly cost example in the same group:

Groupgemini-3.1-pro-previewgemini-3.8-flash
Aistudio-Gemini-3$194.12$66.18
Vertex-Gemini-3$396.00$135.00
Aistudio-Gemini-4$420.59$143.38

Snapshot taken at build time on 2026-11-26. Actual charges follow the live price table on each model page and your console.

Capabilities

Itemgemini-3.1-pro-previewgemini-3.8-flash
ProviderGoogleGoogle
Context——
FeaturesConversation · Thinking · Multimodal · Image RecognitionConversation · Image Recognition · Tools
API formatsGemini generateContent · OpenAI Chat CompletionsGemini generateContent · OpenAI Chat Completions
Long-context tiersYesNo

Which one to choose

  • Lower cost: gemini-3.8-flash is cheaper — about $22.50 vs $88.00 for gemini-3.1-pro-preview in the monthly example above.
  • Need Thinking, Multimodal: gemini-3.1-pro-preview supports it.
  • Need Tools: gemini-3.8-flash supports it.
  • Not sure? Send a small share of real traffic to each and compare quality and cost — switching only changes the model parameter.

Quick start

Base URL: https://api.openlux.ai/v1. The example uses gemini-3.1-pro-preview; change model to gemini-3.8-flash to call the other model.

curl · /v1/chat/completions
curl https://api.openlux.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-pro-preview",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Full parameters in the API docs

FAQ

Which is cheaper, gemini-3.1-pro-preview or gemini-3.8-flash?

At build time, the lowest public prices were: gemini-3.1-pro-preview (Vertex-Gemini-1 group) input $0.40, output $2.40 per 1M tokens; gemini-3.8-flash (Anti-Gemini-2 group) input $0.1125, output $0.5625 per 1M tokens. For 100M input + 20M output tokens a month, gemini-3.1-pro-preview costs about $88.00 and gemini-3.8-flash about $22.50.

Can I use one API key for both gemini-3.1-pro-preview and gemini-3.8-flash?

Yes. Sign up for OpenLux, create an API key in the console, set the base URL to https://api.openlux.ai/v1 and set model to gemini-3.1-pro-preview or gemini-3.8-flash. Usage of both models is billed from the same balance.

Which API formats do gemini-3.1-pro-preview and gemini-3.8-flash support?

gemini-3.1-pro-preview: Gemini generateContent, OpenAI Chat Completions. gemini-3.8-flash: Gemini generateContent, OpenAI Chat Completions.

Is there a Batch API?

Not at the moment. OpenLux has no Batch API; all requests are real-time calls billed as such. For bulk jobs, send concurrent requests to the regular endpoints.

More

  • gemini-3.1-pro-preview pricing & access
  • gemini-3.8-flash pricing & access

More gemini-3.1-pro-preview comparisons

  • gemini-3.1-pro-preview vs gemini-4-carbon
  • gemini-3.1-pro-preview vs gpt-5.5-pro
  • gemini-3.1-pro-preview vs grok-4.3
  • gemini-3.1-pro-preview vs gpt-6.2-astra
  • gemini-3.1-pro-preview vs kimi-k3.1-pro
  • gemini-3.1-pro-preview vs claude-opus-5-5
  • gemini-3.1-pro-preview vs mimo-v2.6-pro
  • gemini-3.1-pro-preview vs grok-4.7

More gemini-3.8-flash comparisons

  • gemini-3.8-flash vs gemini-4-carbon
  • gemini-3.8-flash vs claude-opus-5-5
  • gemini-3.8-flash vs gpt-6.1-sol
  • gemini-3.8-flash vs gpt-6-astra
  • gemini-3.8-flash vs gpt-6.2-astra
  • gemini-3.8-flash vs gemini-3-flash-preview
  • Model directory
  • All model pricing
  • Sign up and get an API key

Other languages: 中文 · 日本語 · 한국어

New API

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot

Legal

  • Terms
  • Privacy
  • Usage
  • Disclaimer
  • Refunds
  • DPA
  • Compliance
  • Imprint

Docs

  • API
  • AI News
  • From OpenRouter
  • Announcements

More

  • Agent

One API for mainstream AI models

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

New API

One API for mainstream AI models

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot

Docs

  • API
  • AI News
  • From OpenRouter
  • Announcements

More

  • Agent

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

Privacy | Terms | Usage | Disclaimer | Refunds | DPA | Compliance | Imprint |