Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliability, and more efficient token usage across complex workflows. Building on the multimodal foundation of the Gemini 3 series, it combines high-precision reasoning across text, image, video, audio, and code with a 1M-token context window. Reasoning Details must be preserved when using multi-turn tool calling, see our docs here: https://openrouter.ai/docs/use-cases/reasoning-tokens#preserving-reasoning. The 3.1 update introduces measurable gains in SWE benchmarks and real-world coding environments, along with stronger autonomous task execution in structured domains such as finance and spreadsheet-based workflows. Designed for advanced development and agentic systems, Gemini 3.1 Pro Preview improves long-horizon stability and tool orchestration while increasing token efficiency. It introduces a new medium thinking level to better balance cost, speed, and performance. The model excels in agentic coding, structured planning, multimodal analysis, and workflow automation, making it well-suited for autonomous agents, financial modeling, spreadsheet automation, and high-context enterprise tasks.
能力与模态
当前模型版本支持的输入输出能力
模型价格
价格与能力以接口实时数据为准
≥ 200K tokens
API 接口
当前模型可以使用的调用端点
原生协议 2
转换协议 3
API 接入示例
选择协议与语言,配置 API Key 后运行
先在环境变量中配置平台密钥 AI_GATEWAY_API_KEY · 适用于 Bash / zsh / WSL。
https://api.tikway.ai/v1beta/models/google/gemini-3.1-pro-preview:generateContentcurl --fail-with-body 'https://api.tikway.ai/v1beta/models/google/gemini-3.1-pro-preview:generateContent' \
-H "x-goog-api-key: $AI_GATEWAY_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "用三句话介绍 Tikway"
}
]
}
]
}'