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 Custom Tools

google/gemini-3.1-pro-preview-customtools
TextInput: text · audio · image · video · fileToolsReasoning1MAdded Feb 25, 2026

Try Google: Gemini 3.1 Pro Preview Custom Tools now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

Google: Gemini 3.1 Pro Preview Custom Tools 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 Custom Tools

Google: Gemini 3.1 Pro Preview Custom Tools is a text model from Google, offered as a preview variant of Gemini 3.1 Pro. Its distinguishing trait is a change to tool selection behavior: the model is tuned to avoid overusing a general bash tool when more efficient third party options are available. The provider released it on 2026-02-25, and it sits in the text category on api14.

The model accepts text, audio, image, video and file inputs, and it returns text only. Its context window is 1,048,576 tokens, with a maximum output of 65,536 tokens. Reasoning behavior is exposed through the reasoning, reasoning_effort and include_reasoning parameters, so you can control how much internal deliberation the model applies and whether that reasoning is surfaced in the response.

Those capabilities point to a few practical patterns. The very large context window suits work over long documents, transcripts or multi file inputs, and the mix of input modalities means you can pass audio, images, video or files alongside text instructions without a separate preprocessing step. Because tool selection is the focus of this variant, it fits agentic workflows where the model must choose among several tools, particularly when a general bash tool tends to dominate in other configurations. Structured outputs and reasoning support also make it reasonable for extraction and analysis tasks where you want a predictable response shape.

You call it through api14's OpenAI-compatible API using the model id google/gemini-3.1-pro-preview-customtools. Requests support include_reasoning, max_tokens, reasoning, reasoning_effort, response_format, seed, structured_outputs, temperature, tool_choice, tools and top_p. If you want a tool bearing agent, pass tools and tool_choice; if you want deterministic-ish sampling, use seed and temperature. For structured data, use response_format or structured_outputs. Long inputs are worth checking against the 1,048,576 token context and the 65,536 token output cap.

Keep in mind that this is a preview build and a specialized variant, so it is worth testing against your own toolset rather than assuming the tool selection tuning matches your setup. Output is text only, so anything needing generated images, audio or video would require a different model. If your work does not involve tool selection, a general purpose Gemini release may be a simpler fit, since the custom tools behavior is the main reason to pick this one.

How to call the Google: Gemini 3.1 Pro Preview Custom Tools API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "google/gemini-3.1-pro-preview-customtools".
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-customtools",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

include_reasoningmax_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstemperaturetool_choicetoolstop_p

Specifications

Context length
1,048,576
Max output
65,536
Input
text, audio, image, video, file
Output
text

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

Google: Gemini 3.1 Pro Preview Custom Tools: frequently asked questions

How much does the Google: Gemini 3.1 Pro Preview Custom Tools API cost?
Google: Gemini 3.1 Pro Preview Custom Tools 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 Custom Tools?
Google: Gemini 3.1 Pro Preview Custom Tools 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 Custom Tools do?
Google: Gemini 3.1 Pro Preview Custom Tools accepts text, audio, image, video, file and returns text. It supports tool calling, structured JSON output, reasoning effort control.
How do I call Google: Gemini 3.1 Pro Preview Custom Tools from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "google/gemini-3.1-pro-preview-customtools". 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 Custom Tools?
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 Custom Tools community

New topic

This community has no topics yet. Open the first one about Google: Gemini 3.1 Pro Preview Custom Tools.