Google: Gemini 3.1 Pro (Preview High)

gemini-3.1-pro-preview-high

Gemini 3.1 Pro (Preview High) costs $2.60 per million input tokens and $15.60 per million output tokens, supports 1.05M context, and is available through the OpenAI-compatible API.

Gemini 3.1 Pro preview high-reasoning variant.

Modalities

Text + Image + Video + Audio → Text

Input / output price

$2.60 / $15.60 per 1M

Context

1.05M · max output 66K

Capabilities

ReasoningVisionTool callingLong context

Pricing

Billed per token actually used and deducted from your credits.

ItemUSD per 1M tokens
Input$2.60
Output$15.60
Cached input$0.260

Calculator

Drag the sliders to estimate what this model will cost.

Per request
$0.0203
Per day
$10.14
Per month (30 days)
$304.20

Gemini 3.1 Pro (Preview High): input $2.6/M · output $15.6/M · cached input $0.26/M

Request with these settings
curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gemini-3.1-pro-preview-high", "max_tokens": 800,
       "messages": [{"role": "user", "content": "…"}]}'

Code samples

OpenAI-compatible. Set the base URL to https://api.geniusrelaygpt.com/v1 and the model to gemini-3.1-pro-preview-high.

curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-pro-preview-high",
    "stream": true,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Use it in a client: Cursor · Cline · SillyTavern · Codex

Parameters

Common OpenAI parameters can be passed as-is.

temperaturetop_pmax_tokensstreamstoppresence_penaltyfrequency_penaltyseed

FAQ

How is Gemini 3.1 Pro (Preview High) billed?
Input is $2.60 and output is $15.60 per million tokens; cached input is $0.260. The charge for every request is listed in Usage Logs in the console.
How long is the context window?
1.05M tokens. In a long conversation every turn is billed for the full input, so keep the history under control.
Does it support streaming?
Yes. Add "stream": true to the request to receive server-sent events in the OpenAI format.
Gemini 3.1 Pro (Preview High) API pricing · GeniusRelay