Google: google/gemini-3.1-pro-preview
Gemini 3.1 Pro Preview
google/gemini-3.1-pro-previewCapabilities
8
VisionVideoAudioToolsSearchThinkJSONCache
Context length
1M
Tokens
Max output tokens
—
Tokens
Type
Chat
Google
Playground
Pricing
Pricing breakdown
Usage-based pricing, broken down by billing item at your current rates.
40% OFF
Input tokens
2 price tiers
Total prompt tokens (including cache) ≤ 200,000
1.2 credits / 1M
All other cases
2.4 credits / 1M
Output tokens
2 price tiers
Total prompt tokens (including cache) ≤ 200,000
7.2 credits / 1M
All other cases
10.8 credits / 1M
Cache read tokens
2 price tiers
Total prompt tokens (including cache) ≤ 200,000
0.12 credits / 1M
All other cases
0.24 credits / 1M
Billing items are additive. Only one matching price tier applies to each item. Charges are calculated from actual usage per request, with each item rounded up.
API
cURL example
request.sh
POST
/v1beta/models/google/gemini-3.1-pro-preview:generateContentSynchronousGemini
curl "http://127.0.0.1:11113/v1beta/models/google/gemini-3.1-pro-preview:generateContent" \ -X POST \ -H "x-goog-api-key: $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contents": [ { "role": "user", "parts": [ { "text": "Explain model gateways in one sentence." } ] } ]}'Set your API_KEY environment variable before running. Keep your key server-side.