---
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-frontend-v2-927501783998.us-east4.run.app/models/google/google-gemini-3.1-pro-preview-customtools/api.md
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/google/google-gemini-3.1-pro-preview-customtools/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-05-13T10:34:21.351153Z
---

Google: Gemini 3.1 Pro Preview Custom Tools
---

 [LLMs.txt](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemini-3.1-pro-preview-customtools/llms.txt) [.md](https://modelslab-frontend-v2-927501783998.us-east4.run.app/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-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster)

[AC](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthropic-claude-opus-4.6-fast)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Anthropic: Claude Opus 4.6 (Fast)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthropic-claude-opus-4.6-fast)

[GG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemma-4-26b-a4b-it-free)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Google: Gemma 4 26B A4B (free)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemma-4-26b-a4b-it-free)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-3.5-turbo-0613)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-3.5 Turbo (older v0613)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-3.5-turbo-0613)

[GL](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-lyria-3-clip-preview)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Google: Lyria 3 Clip Preview

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-lyria-3-clip-preview)

[![GPT 5.2](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/2bdd00f4-1692-49d8-a562-72cb1753d0ff.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/gpt-5.2)[Open Ai](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai)

 [GPT 5.2

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/gpt-5.2)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-next-80b-a3b-instruct-free)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3 Next 80B A3B Instruct (free)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-next-80b-a3b-instruct-free)

[L4](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-4-Maverick-17B-128E-Instruct-FP8)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Llama 4 Maverick Instruct (17Bx128E) FP8

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-4-Maverick-17B-128E-Instruct-FP8)

[SM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/sarvamai-sarvam-m)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Sarvam M

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/sarvamai-sarvam-m)

[NN](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/nvidia-nemotron-nano-9b-v2-free)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [NVIDIA: Nemotron Nano 9B V2 (free)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/nvidia-nemotron-nano-9b-v2-free)

[MM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/morph-morph-v3-large)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Morph: Morph V3 Large

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/morph-morph-v3-large)

[AA](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/arcee-ai-trinity-mini)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Arcee AI: Trinity Mini

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/arcee-ai-trinity-mini)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Meta-Llama-3-8B-Instruct-Lite)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Meta Llama 3 8B Instruct Lite

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Meta-Llama-3-8B-Instruct-Lite)

[Q1](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3.5-122B-A10B-FP8)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen3.5 122B A10b Fp8

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3.5-122B-A10B-FP8)

[PS](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/perplexity-sonar)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Perplexity: Sonar

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/perplexity-sonar)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5.4-mini)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-5.4 Mini

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5.4-mini)

[![GPT-5-mini](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/0bda788d-705d-4cbd-9c9d-dcdaa12b9493.webp)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/gpt-5-mini)[Open Ai](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai)

 [GPT-5-mini

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/gpt-5-mini)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3.5-plus-02-15)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3.5 Plus 2026-02-15

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3.5-plus-02-15)

[XM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/xiaomi-mimo-v2-omni)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Xiaomi: MiMo-V2-Omni

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/xiaomi-mimo-v2-omni)

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-frontend-v2-927501783998.us-east4.run.app/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-frontend-v2-927501783998.us-east4.run.app/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-frontend-v2-927501783998.us-east4.run.app/pricing)

### Use Cases

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

[Learn more about Google: Gemini 3.1 Pro Preview Custom Tools](https://modelslab-frontend-v2-927501783998.us-east4.run.app/google-gemini-31-pro-preview-custom-tools) [Browse LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster) [More from Google](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router) [View Pricing](https://modelslab-frontend-v2-927501783998.us-east4.run.app/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-05-13*