We use cookies to enhance your experience, provide personalised content, and analyse our traffic; see our Cookie Policy.
google/gemini-3.1-proGoogle's frontier reasoning over text, images and PDFs
Gemini 3.1 Pro, launched by Google on 19 February 2026, is its advanced reasoning model of the 3.1 generation, aimed at tasks where a simple answer is not enough. On Tchavi it takes the full 1M-token window.
Last updated Nov 23, 2026
It reads text, images and PDFs in one request, calls functions and returns structured JSON. According to Google, it scores 77.1% on ARC-AGI-2, more than double Gemini 3 Pro. Think of it for research synthesis, chart analysis or reviewing technical documents.
Through Tchavi you call it with the OpenAI SDK by changing only the base URL, and you pay with mobile money, no card. One API key is enough to compare Gemini, Claude and GPT.
Built for complex multi-step problems, per Google
Text, images and PDFs in a single request
The model’s full window, priced in two tiers above 200K
Function calling and structured JSON output
Tokens streamed over SSE as they are generated
Enough for a full report or detailed analysis in one reply
Analyse this dataset description and propose three hypotheses worth testing, with the variable to measure for each and what would disprove it.
Review this 30-page technical spec, flag contradictions between sections and quote the conflicting passages.
Design a multi-step agent that books travel: list the tools it needs, the order of calls and what it does when a flight is full.
According to Google, 3.5 Flash beats 3.1 Pro on coding and agent benchmarks. Both hold 1M tokens on Tchavi, so pick 3.5 Flash for agents, code and long documents; keep 3.1 Pro if your prompts are already tuned to it.
Nothing is capped — the full 1M window is yours. Google charges more above 200,000 input tokens, and Tchavi bills that tier instead of raising the rate for everyone: 4.642 credits per 1K in and 27.747 out below the line, 9.284 and 41.673 above it.
Yes, images and documents in the same request as the text. The reply is text: it does not generate images.
Google publishes it as a preview. Test your prompts before relying on exact behaviour, and keep a fallback model.
With the OpenAI SDK, change the base URL, use your sk-tch-… key and model: "gemini-3.1-pro" on /v1/chat/completions. JSON mode is available.
Yes. Top up your Tchavi account with Orange Money, MTN MoMo, M-Pesa or another mobile money operator. No bank card is needed. Credits land as soon as the payment is confirmed and are deducted as you use them.
Yes. Keep your current OpenAI SDK, just change the base URL to Tchavi's (shown in the API tab) and use your Tchavi key. The rest of your code stays the same.
import Tchavi from '@tchavi/sdk';
const client = new Tchavi({ apiKey: 'API_KEY' });
const response = await client.chat.completions.create({
model: 'gemini-3.1-pro',
messages: [
{
"role": "user",
"content": "Hello!"
}
],
});
console.log(response.choices[0].message.content);
console.log('Credits used:', response.tchavi.credits_used);Every parameter this model accepts on the API. Check the SDK for full typings.
modelRequiredID of the chat model (e.g. `gemini-3.1-pro`).
messagesRequiredConversation messages. Each item has a `role` (system/user/assistant) and a `content` that's either a plain string or an array of content blocks (`text`, `image_url`, `document_url`).
temperature1Sampling temperature between 0 and 2. Higher values = more random.
max_tokensMaximum number of tokens to generate in the response.
max_completion_tokensOpenAI alias for `max_tokens`. Either field works; if both are sent, `max_completion_tokens` wins.
streamfalseIf true, partial message deltas are streamed as Server-Sent Events.
toolsFunction-calling toolbox. Pass an array of `{ type: "function", function: { name, description, parameters } }`. Returned tool calls land in `choices[].message.tool_calls`. Only models with `supportsTools: true` accept this.
tool_choiceHow the model picks among tools: `"auto"` (default), `"none"` to force a plain text reply, or `{ type: "function", function: { name } }` to force a specific tool. Only with `supportsTools: true`.
response_formatConstrain the output. Pass `{ type: "json_object" }` to force valid JSON (the model still needs a JSON instruction in your prompt). Only models with `supportsJsonMode: true` honour this.
This model costs more upstream once a prompt passes a threshold, and we pass that through rather than cap the window or raise the price for everyone. The rate above is the first band.
| Prompt length | Input / 1K | Output / 1K |
|---|---|---|
| Under 200K tokens | ||
| 200K tokens and above |
The threshold counts every input token on the request, cached ones included: a 95K cache hit plus 10K of new prompt is a 105K prompt. Output is priced by the prompt’s length, so a long prompt with a short answer still pays the higher output rate.
Estimated over 30 days, for a typical message: ~500 input + ~150 output tokens, billed to the thousandth of a credit.