Gemini 3.1 Pro Preview by Google, a frontier reasoning LLM with 1M context and strong agentic coding, scoring 77% on ARC-AGI-2 and 81% on SWE-Bench Verified.
Available on
Privacy
- ZDR
- Training
- No
- Region
- US, Multi
Gemini 3.1 Pro Preview uses Gemini code execution through Opper on the generateContent endpoint, passed through as Google defines it.
Paste this into your coding agent (Claude Code, Cursor, Codex, and more) and it will set up and build with Opper for you.
curl "https://api.opper.ai/v3/compat/v1beta/models/gemini/gemini-3.1-pro-preview:generateContent" \-H "Authorization: Bearer $OPPER_API_KEY" \-H "Content-Type: application/json" \-d '{"contents": [{"role": "user", "parts": [{"text": "Sum the first 50 primes and show your working."}]}],"tools": [{"codeExecution": {}}]}'
Gemini 3.1 Pro Preview runs Gemini code execution on the routes below. Some routes also sell flex and priority processing: the same model at another price, picked per request with service_tier. How service tiers work.
| Provider | Region | Zero data retention | Training | Input | Output | Cache read | ||
|---|---|---|---|---|---|---|---|---|
| US | No | $2.00 | $12.00 | $0.20$2.38 write | ||||
| Multi | No | $2.00 | $12.00 | $0.20 | Not offered on this route | Not offered on this route | ||
| Multi | No | $2.00 | $12.00 | $0.20$2.38 write |
Gemini 3.1 Pro Preview by Google, a frontier reasoning LLM with 1M context and strong agentic coding, scoring 77% on ARC-AGI-2 and 81% on SWE-Bench Verified.
Step-by-step setup for Gemini code execution on each of these models through Opper.
GPT models write and run Python in a sandbox, on the Responses endpoint.
code_interpreterClaude runs code in Anthropic's sandbox, on Anthropic's own route.
code_executionClaude drives a desktop through screenshots, clicks and typing in your agent loop.
computer_toolset