Googlegemini-3.1-pro-preview
Gemini 3.1 Pro (Preview)
Google's Pro-tier reasoning, in preview.
Gemini 3.1 Pro is a preview of Google's Pro tier, with enhanced reasoning and a million-token context — the step up from Flash when a task needs more thinking per token.
- Deep reasoning
- Long context
- Multimodal
Model details
- Context window
- 1.0M tokens
- Max output
- 66K tokens
- Input
- Text, images
- Output
- Text
- Capabilities
- Reasoning, Vision, Tool calling, Streaming, JSON output
- Interfaces
- OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses
Pricing
Per 1M tokens. The Inferray price is what you are charged — no gateway fee is added on top of it.
| Metric | Price |
|---|---|
| Input | $2 |
| Cached input | $0.20 |
| Output | $12 |
Why teams pick it
- Enhanced reasoning over the Flash line
- 1M-token context with vision, audio, and document input
- Reasoning effort, tool calling, and JSON output included
Call Gemini 3.1 Pro (Preview)
Gemini 3.1 Pro (Preview) answers on any of the APIs below — pick the one your code already speaks and just swap in your Inferray key.
/v1/chat/completionsOpenAI-style Chat Completions · openai SDK or plain HTTP
curl https://api.inferray.com/v1/chat/completions \
-H "Authorization: Bearer inferray_..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-pro-preview",
"messages": [{"role": "user", "content": "ship it"}]
}'/v1/messagesAnthropic-style Messages · @anthropic-ai/sdk SDK or plain HTTP
curl https://api.inferray.com/v1/messages \
-H "Authorization: Bearer inferray_..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-pro-preview",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "ship it"}]
}'/v1/responsesOpenAI-style Responses · openai SDK or plain HTTP
curl https://api.inferray.com/v1/responses \
-H "Authorization: Bearer inferray_..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-pro-preview",
"input": "ship it"
}'