---
title: Google: Gemini 3.1 Pro Preview Custom Tools | Text Generation | ModelsLab
description: Build with Google: Gemini 3.1 Pro Preview Custom Tools API by Google. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab.com/models/google/google-gemini-3.1-pro-preview-customtools/api.md
canonical: https://modelslab.com/models/google/google-gemini-3.1-pro-preview-customtools/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-15T04:02:46.661172Z
---

Google: Gemini 3.1 Pro Preview Custom Tools
---

 [LLMs.txt](https://modelslab.com/models/open_router/google-gemini-3.1-pro-preview-customtools/llms.txt) [.md](https://modelslab.com/models/google/google-gemini-3.1-pro-preview-customtools.md)

google-gemini-3.1-pro-preview-customtools google Closed Source Model $7.000000 / call

Google: Gemini 3.1 Pro Preview Custom Tools
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Google: Gemini 3.1 Pro Preview Custom Tools

google google-gemini-3.1-pro-preview-customtools

Copy model ID

PricingInput $2.00 / 1M tokens

Output $12.00 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[RR](https://modelslab.com/models/open_router/relace-relace-search)[Open Router](https://modelslab.com/models/open_router)

 [Relace: Relace Search

Closed Source Model](https://modelslab.com/models/open_router/relace-relace-search)

[MM](https://modelslab.com/models/open_router/minimax-minimax-m2-her)[Open Router](https://modelslab.com/models/open_router)

 [MiniMax: MiniMax M2-her

Closed Source Model](https://modelslab.com/models/open_router/minimax-minimax-m2-her)

[![Gemini 2.5 Pro](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/ede9a278-de62-47fb-a53d-99ee4c7b7abc.png)](https://modelslab.com/models/google/gemini-2.5-pro)[Google](https://modelslab.com/models/google)

 [Gemini 2.5 Pro

Closed Source Model](https://modelslab.com/models/google/gemini-2.5-pro)

[Q1](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-14B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen2.5 14B

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-14B)

[MV](https://modelslab.com/models/open_router/mistralai-voxtral-small-24b-2507)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Voxtral Small 24B 2507

Closed Source Model](https://modelslab.com/models/open_router/mistralai-voxtral-small-24b-2507)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-vl-32b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 VL 32B Instruct

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-vl-32b-instruct)

[AO](https://modelslab.com/models/open_router/allenai-olmo-3-32b-think)[Open Router](https://modelslab.com/models/open_router)

 [AllenAI: Olmo 3 32B Think

Closed Source Model](https://modelslab.com/models/open_router/allenai-olmo-3-32b-think)

[AO](https://modelslab.com/models/open_router/allenai-olmo-3.1-32b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [AllenAI: Olmo 3.1 32B Instruct

Closed Source Model](https://modelslab.com/models/open_router/allenai-olmo-3.1-32b-instruct)

[NN](https://modelslab.com/models/open_router/nvidia-nemotron-nano-12b-v2-vl-free)[Open Router](https://modelslab.com/models/open_router)

 [NVIDIA: Nemotron Nano 12B 2 VL (free)

Closed Source Model](https://modelslab.com/models/open_router/nvidia-nemotron-nano-12b-v2-vl-free)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-8b)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 8B

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-8b)

[OG](https://modelslab.com/models/open_router/openai-gpt-4-0314)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-4 (older v0314)

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-4-0314)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-vl-30b-a3b-thinking)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 VL 30B A3B Thinking

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-vl-30b-a3b-thinking)

[OG](https://modelslab.com/models/open_router/openai-gpt-4)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-4

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-4)

[GG](https://modelslab.com/models/open_router/google-gemma-3n-e2b-it-free)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemma 3n 2B (free)

Closed Source Model](https://modelslab.com/models/open_router/google-gemma-3n-e2b-it-free)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-coder-free)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 Coder 480B A35B (free)

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-coder-free)

[DV](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-V3-0324)[Together AI](https://modelslab.com/models/together_ai)

 [Deepseek V3 0324

Closed Source Model](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-V3-0324)

[MP](https://modelslab.com/models/open_router/mistralai-pixtral-large-2411)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Pixtral Large 2411

Closed Source Model](https://modelslab.com/models/open_router/mistralai-pixtral-large-2411)

[ZG](https://modelslab.com/models/open_router/z-ai-glm-5)[Open Router](https://modelslab.com/models/open_router)

 [Z.ai: GLM 5

Closed Source Model](https://modelslab.com/models/open_router/z-ai-glm-5)

About Google: Gemini 3.1 Pro Preview Custom Tools
---

Gemini 3.1 Pro Preview Custom Tools is a variant of Gemini 3.1 Pro that improves tool selection behavior by preventing overuse of a general bash tool when more efficient third-party...

### Technical Specifications

Model IDgoogle-gemini-3.1-pro-preview-customtoolsCategoryLLM ModelsTaskText GenerationPrice$7.000000 per million tokensAddedFebruary 26, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Google: Gemini 3.1 Pro Preview Custom Tools into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "google-gemini-3.1-pro-preview-customtools",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab.com/models/google/google-gemini-3.1-pro-preview-customtools/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Google: Gemini 3.1 Pro Preview Custom Tools API costs $7.000000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Google](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Google: Gemini 3.1 Pro Preview Custom Tools FAQ
---

### What is Google: Gemini 3.1 Pro Preview Custom Tools?

Gemini 3.1 Pro Preview Custom Tools is a variant of Gemini 3.1 Pro that improves tool selection behavior by preventing overuse of a general bash tool when more efficient third-party...

### How do I use the Google: Gemini 3.1 Pro Preview Custom Tools API?

You can integrate Google: Gemini 3.1 Pro Preview Custom Tools into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "google-gemini-3.1-pro-preview-customtools" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Google: Gemini 3.1 Pro Preview Custom Tools cost?

Google: Gemini 3.1 Pro Preview Custom Tools costs $7.000000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Google: Gemini 3.1 Pro Preview Custom Tools model ID?

The model ID for Google: Gemini 3.1 Pro Preview Custom Tools is "google-gemini-3.1-pro-preview-customtools". Use this ID in your API requests to specify this model.

### Does Google: Gemini 3.1 Pro Preview Custom Tools have a free tier?

Yes, ModelsLab offers a free tier that lets you try Google: Gemini 3.1 Pro Preview Custom Tools and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-04-15*