Text generation / Google
gemini-3.1-pro-preview
Overview
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.
- Model type: Text generation
- Input: Text / Image / Video / Audio
- Output: Text
- Endpoints: chat
Tiered billing details
| Tier | Input | Output | Cache hit |
|---|---|---|---|
| Fallback tier | $0.0020/1K | $0.0120/1K | $0.0002/1K |
Billed bylen (input context token count). Coefficient is the $ / 1M tokens price. Default group price (other groups converted by discount).
Code example
Call with gemini-3.1-pro-preview :
curl https://www.starunion.net/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-pro-preview",
"messages": [{ "role": "user", "content": "Hello" }]
}'