We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
Google: Gemini 3.1 Pro Preview
google/gemini-3.1-pro-previewTry Google: Gemini 3.1 Pro Preview now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
Google: Gemini 3.1 Pro Preview at a glance
- Input price is 344% higher than the median of 434 Text models.
- Context window of 1,048,576 tokens, enough for long documents and multi-turn conversations.
- Supports tool (function) calling for agents and integrations.
- Supports structured JSON output with a schema.
- Supports reasoning effort control.
- Accepts images as input (vision).
- A typical request (1,000 input / 500 output tokens) costs about $0.03.
About Google: Gemini 3.1 Pro Preview
Google: Gemini 3.1 Pro Preview is a frontier reasoning model from Google, offered as a preview release. It sits in the text category and is built on Google's multimodal foundation, with the provider describing it as delivering enhanced software engineering performance, improved agentic reliability, and more efficient token usage across complex workflows. The provider release date is 2026-02-19.
The model accepts audio, file, image, text, and video as inputs, and it produces text as output. Its context window is 1,048,576 tokens, and the maximum output is 65,536 tokens. Reasoning is part of the model's behaviour rather than a separate mode, and the supported parameters include reasoning, reasoning_effort, and include_reasoning, which let you control or surface that reasoning in your requests.
Those capabilities point to a few practical patterns. Long documents, recordings, images, and video can be sent together in a single request, so tasks like summarising a recorded meeting alongside its slide deck, extracting structured data from scanned files, or answering questions over a large codebase fit the input modalities and the context window. Because the model is positioned around software engineering and agentic reliability, it also suits coding assistants, multi-step tool-driven workflows, and pipelines where a model has to call tools repeatedly and stay on task. Structured outputs and response_format make it a reasonable choice when downstream systems need predictable, parseable text rather than free-form prose.
You call it through api14's OpenAI-compatible API using the model id "google/gemini-3.1-pro-preview". The supported request parameters are include_reasoning, max_tokens, reasoning, reasoning_effort, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, and top_p. Tools and tool_choice cover function calling, response_format and structured_outputs cover constrained output shapes, and seed, temperature, top_p, and stop give you control over sampling and where generation ends.
Keep the output ceiling in mind: 65,536 tokens is the maximum output, so very large single responses need to be split or streamed across calls. The model is a preview release, which is worth noting if you depend on long term stability. If your task is plain text generation without audio, image, video, or file inputs, a simpler text-only model may be sufficient, and if you do not need reasoning controls or tool use, those parameters add nothing to your integration.
How to call the Google: Gemini 3.1 Pro Preview API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "google/gemini-3.1-pro-preview".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "google/gemini-3.1-pro-preview",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
include_reasoningmax_tokensreasoningreasoning_effortresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_pSpecifications
- Context length
- 1,048,576
- Max output
- 65,536
- Input
- audio, file, image, text, video
- Output
- text
Requests on api14 · last 7 days
Google: Gemini 3.1 Pro Preview: frequently asked questions
- How much does the Google: Gemini 3.1 Pro Preview API cost?
- Google: Gemini 3.1 Pro Preview costs Input $7.00 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of Google: Gemini 3.1 Pro Preview?
- Google: Gemini 3.1 Pro Preview reads up to 1,048,576 tokens per request: prompt, history and documents together. It writes up to 65,536 output tokens per response.
- What can Google: Gemini 3.1 Pro Preview do?
- Google: Gemini 3.1 Pro Preview accepts audio, file, image, text, video and returns text. It supports tool calling, structured JSON output, reasoning effort control.
- How do I call Google: Gemini 3.1 Pro Preview from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "google/gemini-3.1-pro-preview". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Google: Gemini 3.1 Pro Preview?
- Comparable Text models at a similar price: OpenAI: GPT Terra Latest, OpenAI: GPT-5.6 Terra Pro, OpenAI: GPT-5.6 Terra. Each runs through the same API key, so switching is one string.
Google: Gemini 3.1 Pro Preview community
New topicThis community has no topics yet. Open the first one about Google: Gemini 3.1 Pro Preview.