Google: Gemini 3.1 Pro Preview
Chatgoogle/gemini-3.1-pro-previewGemini 3.1 Pro is the next generation in the Gemini series of models, a suite of highly-capable, natively multimodal, reasoning models. Gemini 3 Pro is now Google’s most advanced model for complex tasks, and can comprehend vast datasets, challenging problems from different information sources, including text, audio, images, video, and entire code repositories
1M context window
66K max output tokens
Released: 2026-02-19
Supported Protocols:openaigemini
Available Providers:Vertex
Capabilities:VisionFunction CallingReasoningPrompt CachingWeb SearchAudio InputVideo InputPDF Input
Pricing
| Type | Price |
|---|---|
| Input Tokens | $2/M |
| Output Tokens | $12/M |
| Audio Input | $2/M |
| Cache Read | $0.2/M |
| Cache Write | $4.5/M |
| Cached Audio | $0.2/M |
| Web Search | $0.014/R |
Code Examples
from google import genaiclient = genai.Client(api_key="YOUR_OFOX_API_KEY",http_options={"api_version": "v1beta", "url": "https://api.ofox.ai/gemini"},)response = client.models.generate_content(model="google/gemini-3.1-pro-preview",contents="Hello!",)print(response.text)
Related Models
Frequently Asked Questions
Google: Gemini 3.1 Pro Preview on Ofox.ai costs $2/M per million input tokens and $12/M per million output tokens. Pay-as-you-go, no monthly fees.
Google: Gemini 3.1 Pro Preview supports a context window of 1M tokens with max output of 66K tokens, allowing you to process large documents and maintain long conversations.
Simply set your base URL to https://api.ofox.ai/v1 and use your Ofox API key. The API is OpenAI-compatible — just change the base URL and API key in your existing code.
Google: Gemini 3.1 Pro Preview supports the following capabilities: Vision, Function Calling, Reasoning, Prompt Caching, Web Search, Audio Input, Video Input, PDF Input. Access all features through the Ofox.ai unified API.