Google: Gemini 3.1 Pro Preview Custom Tools

Coming soonQuick Start

Gemini 3.1 Pro Preview Custom Tools is a Google variant of Gemini 3.1 Pro, released 2026-02, that improves tool selection in agentic coding workflows. It reduces overuse of a general bash tool in favor of more efficient third-party or user-defined functions, increasing function-calling reliability in multi-tool environments. The model retains the core multimodal reasoning and software engineering strengths of its base model.

This model is not routed on MirAPI yet — prices shown are the official list prices. Create an account to get notified when it goes live.

Modalities
inTextinAudioinImageinVideoinFileoutText
Price / 1M
$2.00 / $12.00
Context
1.049M
Knowledge cutoff

Capabilities

ReasoningVisionTool useLong contextPrompt cachingStructured output

Showcase

Three fixed prompts, identical for every chat model. Outputs are archived verbatim — copy the prompt to reproduce.

Task prompt · identical for all models
Build a single-file HTML page using three.js from a CDN: a low-poly planet with a tilted ring of ~200 orbiting particles, a soft key light plus rim light, slow auto-rotation, and drag-to-orbit controls. No build tools — one file only.
Archived output
Archive not published yet

Every model will run this exact prompt; the output lands here verbatim, with tokens and per-run cost.

Quick Start

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.mirapi.ai/v1",   # changed
    api_key=os.environ["MIRAPI_API_KEY"],   # changed
)

resp = client.chat.completions.create(
    model="google/gemini-3.1-pro-preview-customtools",
    messages=[{"role": "user", "content": "Hello"}],
)
Wire Gemini 3.1 Pro Preview Custom Tools into your product

1M free tokens to start · no card · OpenAI-compatible, one base_url change

Start free