gemini-3.1-pro-preview
Aggregated modalities
Channel
Each channel is compared at its lowest input-price tier; output breaks ties. A dash means /api/pricing does not provide that rate. Selecting a channel updates the endpoints and call example below.
ChannelUSD per 1M tokensInputOutputCache readCache write
jd/gemini-3.1-pro-previewInput
$1.9361 USD per 1M tokens
Output
$11.6168 USD per 1M tokens
Cache read
$0.1936 USD per 1M tokens
Cache write
- USD per 1M tokens
Endpoints
POST
/v1/chat/completionsChat CompletionsCall it
Using jd/gemini-3.1-pro-preview
1from openai import OpenAI23client = OpenAI(4 base_url="https://www.realrelay.ai/v1",5 api_key="sk-***",6)78response = client.chat.completions.create(9 model="jd/gemini-3.1-pro-preview",10 messages=[{"role": "user", "content": "Hello"}],11)1213print(response.choices[0].message.content)1import OpenAI from "openai";23const client = new OpenAI({4 baseURL: "https://www.realrelay.ai/v1",5 apiKey: process.env.REALRELAY_API_KEY,6});78const response = await client.chat.completions.create({9 model: "jd/gemini-3.1-pro-preview",10 messages: [{ role: "user", content: "Hello" }],11});1213console.log(response.choices[0].message.content);1curl https://www.realrelay.ai/v1/chat/completions \2 -H "Authorization: Bearer $REALRELAY_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "jd/gemini-3.1-pro-preview",6 "messages": [{ "role": "user", "content": "Hello" }]7 }'Prices and availability as published on Oct 19, 2026.
Capabilities
ReasoningStructured outputTool useVision
Input
TextImageFileAudioVideo
Output
Text
Frequently asked questions
- What is gemini-3.1-pro-preview?
- gemini-3.1-pro-preview is a model from Google. RealRelay.ai serves it through one OpenAI-compatible API.
- How much does gemini-3.1-pro-preview cost?
- gemini-3.1-pro-preview costs from $1.9361 per 1M input tokens and $11.6168 per 1M output tokens. Pricing is tiered, and this is the starting tier.
- What inputs and outputs does gemini-3.1-pro-preview support?
- Input: Text, Image, File, Audio, and Video. Output: Text.
- What is the context window of gemini-3.1-pro-preview?
- gemini-3.1-pro-preview has a context window of 1.05M tokens. It returns up to 66K output tokens.
- What can gemini-3.1-pro-preview do?
- Listed capabilities: Reasoning, Structured output, Tool use, and Vision.
- How do I call gemini-3.1-pro-preview through the API?
- Use the model ID jd/gemini-3.1-pro-preview with a RealRelay.ai API key on the OpenAI-compatible API.
