by GoogleReleased Feb 25, 2026
google/gemini-3.1-pro-preview-customtoolsGemini 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...
| Billed for | You pay |
|---|---|
| Input tokens | $2.40 / 1M |
| Output tokens | $14.40 / 1M |
| Cached input, read | $0.24 / 1M |
| Cached input, written | $0.45 / 1M |
| Each input image | $0.000002 |
| Each web search | $0.02 |
| Prompts over 200,000 tokens | $4.80 in, $21.60 out |
import OpenAI from "openai";const ai = new OpenAI({ baseURL: "https://relayfor.si/api/v1", apiKey: process.env.RELAYFOR_ROUTER_KEY,});const reply = await ai.chat.completions.create({ model: "google/gemini-3.1-pro-preview-customtools", messages: [{ role: "user", content: "Welcome the 1,000th holder in one line." }],});$2.40 per million input tokens and $14.40 per million output tokens, paid from the token's AI credit. A call of 2,000 tokens in and 500 out costs about $0.01.
Make a router key for one of your tokens on the dashboard, point any OpenAI or Anthropic SDK at https://relayfor.si/api/v1 and send the model id google/gemini-3.1-pro-preview-customtools. The token's AI credit pays for each call.
Up to 1,048,576 tokens of context, and up to 65,536 tokens in one answer.
No. The RFS Router passes each call through and keeps only its token counts and cost, for the token's usage page.
| Provider | Answered, 24 h |
|---|---|
| Google AI Studio | 100% |