Blog

Gemini 3.1 Pro Is Now Available in Puter.js

On this page

Puter.js now supports Gemini 3.1 Pro, giving developers access to Google's latest and most advanced reasoning model.

What is Gemini 3.1 Pro?

Gemini 3.1 Pro is Google's most advanced reasoning model, building on the Gemini 3 series with more than double the reasoning performance of its predecessor. It scored 77.1% on ARC-AGI-2 (compared to 31.1% for Gemini 3 Pro), 80.6% on SWE-Bench Verified, and 94.3% on GPQA Diamond. Key capabilities include:

  • Advanced reasoning: Three-tier thinking system (low, medium, high) for adjustable reasoning depth
  • Agentic coding: Optimized for multi-step autonomous software engineering workflows
  • 1M token context window: Process massive codebases, documents, and datasets in a single prompt
  • 64K token output: Generate detailed, comprehensive responses

Examples

Text generation

puter.ai.chat("Explain neural networks simply", { model: 'gemini-3.1-pro-preview' });

Complex reasoning

puter.ai.chat("Compare the benefits and drawbacks of solar vs wind energy",
  { model: 'gemini-3.1-pro-preview' }
);

Code generation

puter.ai.chat("Write a Python function to sort a list",
  { model: 'gemini-3.1-pro-preview' }
);

Get Started Now

Just add one library to your project:

// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';

Or add one script tag to your HTML:

<script src="https://js.puter.com/v2/"></script>

No API keys and no infrastructure setup. Start building with Gemini 3.1 Pro immediately.

Learn more:

Free, Serverless AI and Cloud

Start creating powerful web applications with Puter.js in seconds!

Get Started Now

Read the Docs Try the Playground