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 (batch)
google/gemini-3.1-pro-preview:batchTry Google: Gemini 3.1 Pro Preview (batch) 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 (batch) at a glance
- Input price is 122% 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.01.
About Google: Gemini 3.1 Pro Preview (batch)
Gemini 3.1 Pro Preview (batch) is a frontier reasoning model from Google, offered under the model id google/gemini-3.1-pro-preview:batch. It sits in the text category and is built on Google's multimodal foundation, with the batch designation indicating the variant served through this endpoint. Google positions it around enhanced software engineering performance, improved agentic reliability, and more efficient token usage across complex workflows, which tells you the intended audience is developers working on demanding, multi step tasks rather than simple chat.
The model accepts a wide range of inputs: audio, files, images, text, and video. Text is the only output modality, so any task you bring to it has to end in written output, whether that is prose, code, structured data, or tool call arguments. The context window is 1,048,576 tokens, and the maximum output is 65,536 tokens. That combination of a very large input budget with a substantial output budget makes it suitable for work where you need to supply long source material and still receive a detailed response in one pass.
Practical use cases follow directly from those capabilities. Large codebases, long technical documents, recorded meetings with audio, screen captures, and video files can all be submitted as context for analysis, summarisation, or question answering. The reasoning focus and agentic reliability make it a reasonable choice for multi step workflows where the model has to plan, call tools, and keep track of state across a long conversation. Structured outputs and tool use also support pipelines that need machine readable results rather than free text.
You call it through api14's OpenAI-compatible API using the model id google/gemini-3.1-pro-preview:batch. 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. If you already have an OpenAI client, you point it at the api14 base URL, set the model field to that id, and send requests in the usual chat completions shape. Reasoning controls (reasoning, reasoning_effort, include_reasoning) let you tune how much internal deliberation the model does, while tools and tool_choice cover function calling and structured_outputs and response_format cover constrained output.
Because this is a preview model, you should treat behaviour as subject to change and validate outputs on your own data before depending on them in production. The 65,536 token output ceiling is generous but finite, so tasks that need to emit an extremely long document in a single response may require splitting the work across calls. If your workload is purely text in and text out with a smaller context, a lighter model may be cheaper and faster, and if you need image or audio output, this model does not provide it.
How to call the Google: Gemini 3.1 Pro Preview (batch) 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:batch".
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:batch",
"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 (batch): frequently asked questions
- How much does the Google: Gemini 3.1 Pro Preview (batch) API cost?
- Google: Gemini 3.1 Pro Preview (batch) costs Input $3.50 / 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 (batch)?
- Google: Gemini 3.1 Pro Preview (batch) 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 (batch) do?
- Google: Gemini 3.1 Pro Preview (batch) 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 (batch) from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "google/gemini-3.1-pro-preview:batch". 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 (batch)?
- Comparable Text models at a similar price: OpenAI: GPT-5.6 Terra Pro (batch), OpenAI: GPT-5.6 Terra (batch), OpenAI: GPT-3.5 Turbo 16k. Each runs through the same API key, so switching is one string.
Google: Gemini 3.1 Pro Preview (batch) community
New topicThis community has no topics yet. Open the first one about Google: Gemini 3.1 Pro Preview (batch).