gemini-3.1-pro-preview API

Google gemini-3.1-pro-preview for chat and coding; Flatkey routes this model through /v1/chat/completions. $1.6/$9.6 per 1M tokens 1,048,576-token context window.

Chat and codingLong contextTool workflows
Input /M
$1.6/ 1M tokens-20%$2/ 1M tokens
Cache /M
$0.16/ 1M tokens-20%$0.2/ 1M tokens
Output /M
$9.6/ 1M tokens-20%$12/ 1M tokens
Provider
Google

gemini-3.1-pro-preview API performance

gemini-3.1-pro-preview API reliability and uptime

Live Flatkey request telemetry for gemini-3.1-pro-preview appears here when enough production traffic is available.

Avg. provider uptime
98.9%
last 30 days
Latency
7.54s
last 30 days
Requests
2.45K
30-day window
Successful inference trend

gemini-3.1-pro-preview API activity

gemini-3.1-pro-preview API usage and request activity

Track request volume and successful inference activity for gemini-3.1-pro-preview over the latest reporting window.

Requests
2.45K
30-day window
Latency
7.54s
last 30 days
Uptime
98.9%
last 30 days
Successful inference trendActivity

gemini-3.1-pro-preview pricing

gemini-3.1-pro-preview API pricing and billing

Prices below are calculated from Flatkey pricing data for this model and the visible groups currently returned by our pricing API.

Flatkey price

Input /M

Live catalog model
$1.6/ 1M tokens$2/ 1M tokens
Input /M
$1.6/ 1M tokens$2/ 1M tokens
Cache /M
$0.16/ 1M tokens$0.2/ 1M tokens
Output /M
$9.6/ 1M tokens$12/ 1M tokens
View API
Shared balance

Add credits

Add credits

Use the same Flatkey balance and API key across image, video, audio, and text models.

Model catalog
Model Type
Text
API
/v1/chat/completions
Billing basis
1M tokens

gemini-3.1-pro-preview chat and coding: core capabilities

Google's gemini-3.1-pro-preview route supports text · image · file · audio · video. Catalog categories: Programming, Marketing, SEO.

gemini-3.1-pro-preview chat and coding API

Call gemini-3.1-pro-preview through /v1/chat/completions for chat, coding or agent workflows supported by the model's listed modalities.

gemini-3.1-pro-preview long-context work

gemini-3.1-pro-preview is listed with 1,048,576-token; use that catalog value as an integration planning reference and validate limits for your account.

gemini-3.1-pro-preview tool and agent workflows

Keep tool calls, structured output and streaming behavior aligned with the endpoint contract instead of assuming every provider feature is interchangeable.

gemini-3.1-pro-preview production routing

Use one Flatkey key for gemini-3.1-pro-preview, usage controls and model routing while retaining the exact model id in your SDK configuration.

Compare

gemini-3.1-pro-preview API comparison: capabilities and access

Compare the catalog facts for gemini-3.1-pro-preview with the previous-generation baseline before changing your integration.

CapabilityPrevious generationgemini-3.1-pro-preview
ProviderNot verified in this catalog snapshotGoogle
ModalitiesNot verified in this catalog snapshottext · image · file · audio · video
ContextNot verified in this catalog snapshot1,048,576-token
EndpointNot verified in this catalog snapshot/v1/chat/completions
BillingNot verified in this catalog snapshot$1.6/$9.6 per 1M tokens

Why Flatkey

Why use Flatkey for gemini-3.1-pro-preview?

OpenAI-compatible migration path

Chat Completions-style payloads reduce switching friction from existing model stacks.

Production routing

Keep usage, keys, quotas, and model routing in one Flatkey account.

Unified API access

Use one account and API key across image, video, audio, and language models.

Routing across upstream channels

Requests are spread across the channels serving this model, with 30-day uptime published above.

API

gemini-3.1-pro-preview API

Four ways in, all on the same key and the same model catalog. Pick one to see a runnable example.

Call any model with an OpenAI-compatible API. Copy a ready-to-run example for your model and language.
Use the OpenAI SDK you already know — with Flatkey as the gateway.
Generate images and videos from your terminal. Let your AI assistant drive the workflow.
Connect your coding agent with one command, then use Flatkey from your existing projects.
curl https://router.flatkey.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-***" \
  -d '{"model":"gemini-3.1-pro-preview","messages":[{"role":"user","content":"Say hello in one sentence."}]}'
Docs

FAQ

gemini-3.1-pro-preview API
pricing, features, and usage FAQs

Answers about gemini-3.1-pro-preview pricing, capabilities, endpoint access and catalog limits.

What is gemini-3.1-pro-preview used for?
gemini-3.1-pro-preview is listed by Google for chat and coding; the catalog lists these modalities: text · image · file · audio · video.
How is gemini-3.1-pro-preview priced?
Input /M: $1.6; Cache /M: $0.16; Output /M: $9.6. Prices below are calculated from Flatkey pricing data for this model and the visible groups currently returned by our pricing API.
Which API endpoint calls gemini-3.1-pro-preview?
Flatkey routes this model through /v1/chat/completions. Set the model field to gemini-3.1-pro-preview and follow the fields supported by that endpoint.
What context or input limits does gemini-3.1-pro-preview have?
gemini-3.1-pro-preview is listed with 1,048,576-token. Other limits depend on the route and current account availability, so verify them before production use.