Moduck

Google: Gemini 3.1 Pro Preview Custom Tools

Advanced Gemini model for complex reasoning, coding, and multimodal analysis

Model lab
Google
Model family
gemini-pro
Modalitiestext, image, video, audio, pdf → text
Context window1,048,576
Maximum output65,536
Input · Base context tier (boundary 200000 tokens)USD 1.6 / 1M tokens
Output · Base context tier (boundary 200000 tokens)USD 9.6 / 1M tokens

Quickstart

Use your Moduck API Key, set the API base URL to https://api.moduck.ai/v1, and set the model parameter to google/gemini-3.1-pro-preview-customtools.

import os
import requests

base_url = "https://api.moduck.ai/v1"
api_key = os.environ["MODUCK_API_KEY"]
model_id = "google/gemini-3.1-pro-preview-customtools"

response = requests.post(
    f"{base_url}/chat/completions",
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    json={
        "model": model_id,
        "messages": [{"role": "user", "content": "Hello!"}],
        "stream": False,
    },
    timeout=60,
)
response.raise_for_status()
print(response.json())

Use the familiar OpenAI-style chat request format to make model integration easier.

Gemini 3.1 Pro Preview Custom Tools API Pricing

TypePrice information
Input · Base context tier (boundary 200000 tokens)USD 1.6 / 1M tokens
Output · Base context tier (boundary 200000 tokens)USD 9.6 / 1M tokens
Cached input · Base context tier (boundary 200000 tokens)USD 0.16 / 1M tokens

Performance

Measured on the Moduck gateway across live traffic, hour by hour over the last 24 hours. Time to first token is how long before anything appears; throughput is how fast the answer is written after that; end-to-end latency is the whole round trip. Figures are medians unless the card says otherwise.

Performance trends

Throughput91.9 tok/sCurrent
Time to first token1.4 sCurrent
End-to-end latency7.5 sCurrent
Throughput
Current91.9 tok/s
Window average89.3 tok/s
Time to first token
Current1.4 s
Window average1.4 s
End-to-end latency
Current7.5 s
Window average7.5 s
Tail latency (P99)
Current16.0 s
Window average17.0 s
Prompt cache hit rate
Current31.5%
Window average22.6%
Error rate
Current2.1%
Window average0.2%

Availability

Uptime is the share of time at least one provider serving this model responded. Availability is stricter: the share of requests actually served. A provider that answers but fails part of the traffic lowers availability without lowering uptime. Both cover the last three days.

Uptime100%At least one provider responded
Availability100%Requests actually served
Error rate0%Share of failed requests
Served requests, hour by hour
24 hours agoNow

Gemini 3.1 Pro Preview Custom Tools Compare models

ModelInput priceOutput priceContext windowCapabilities
Gemini 3.1 Pro Preview Custom ToolsThis pageUSD 1.6 / 1M tokens · Base context tier (boundary 200000 tokens)USD 9.6 / 1M tokens · Base context tier (boundary 200000 tokens)1,048,576Text output · Reasoning · Tool calling
Gemini 3.1 Pro PreviewUSD 0.8 / 1M tokensUSD 4.8 / 1M tokens1,048,576Text output · Reasoning · Tool calling
Gemini 3 Pro PreviewUSD 1.6 / 1M tokens · Base context tier (boundary 200000 tokens)USD 9.6 / 1M tokens · Base context tier (boundary 200000 tokens)1,048,576Text output · Reasoning · Tool calling
Gemini 2.5 ProUSD 1 / 1M tokens · Base context tier (boundary 200000 tokens)USD 8 / 1M tokens · Base context tier (boundary 200000 tokens)1,048,576Text output · Reasoning · Tool calling
Gemini 2.5 Computer Use PreviewUSD 1 / 1M tokens · Base context tier (boundary 200000 tokens)USD 8 / 1M tokens · Base context tier (boundary 200000 tokens)128,000Text output · Reasoning · Tool calling

Model specifications

Input
text, image, video, audio, pdf
Output
text
Context window
1,048,576
Maximum output
65,536
Release date
2026-02-19
Attachments
Yes
Reasoning
Yes
Tool calling
Yes
Structured output
Yes
Temperature setting
Yes
Open weights
No

Frequently asked questions

What is Gemini 3.1 Pro Preview Custom Tools for?

Advanced Gemini model for complex reasoning, coding, and multimodal analysis

What inputs and outputs does Gemini 3.1 Pro Preview Custom Tools support?

Recorded inputs: text, images, video, audio, PDF; outputs: text.

How is Gemini 3.1 Pro Preview Custom Tools priced?

The pricing table shows the current recorded Moduck price. For example: Input · Base context tier (boundary 200000 tokens) USD 1.6 / 1M tokens; Output · Base context tier (boundary 200000 tokens) USD 9.6 / 1M tokens. See the pricing table for all units, variants, and conditions.

What specifications are recorded for Gemini 3.1 Pro Preview Custom Tools?

Current model records list Context window 1,048,576 tokens; Maximum output 65,536 tokens.

What model parameter does the Quickstart use?

The example uses google/gemini-3.1-pro-preview-customtools. This value comes from the page identifier and is not confirmed as a callable Moduck public ID.

Can I call this model through the Moduck API now?

This page has no verified Moduck API call for this model. A Quickstart example or reserved ID does not establish access; check the models available to your account.