gemini-3.1-pro-preview

Gemini 3 · Per Token

gemini-3.1-pro-previewAvailableCache 90% off
ChatTool UseVisionPrompt CacheJSON ModeFastPremiumPreview
Context Window: 1.0MMax Output Tokens: 66K

Pricing

Official PriceLemonData Price
Input$2.00$1.40
Output$12.00$8.40
Cache Read$0.20$0.20

Parameters

Context Window
1.0M tokens
Max Output Tokens
66K tokens

Best For

Chat

Conversational AI, customer support, and Q&A

Vision

Image understanding, document analysis, and visual reasoning

Cost Calculator

1M
0.5M
Estimated Monthly Cost$5.60

API Code Example

POST/v1beta/models/gemini-3.1-pro-preview:generateContent
API Format:
curl "https://api.lemondata.cc/v1beta/models/gemini-3.1-pro-preview:generateContent" \
  -H "Content-Type: application/json" \
  -H "x-goog-api-key: sk-xxx" \
  -d '{
    "contents": [
      {"role": "user", "parts": [{"text": "Hello!"}]}
    ]
  }'

FAQ

How much does gemini-3.1-pro-preview cost?

On LemonData, gemini-3.1-pro-preview costs $1.4000 per 1M input tokens and $8.4000 per 1M output tokens, which is up to 30% off the official pricing.

What is gemini-3.1-pro-preview best for?

gemini-3.1-pro-preview excels at Chat, Tool Use, Vision. Access it through LemonData's unified API with a single API key.

How to use gemini-3.1-pro-preview API?

Get your API key from LemonData, then call https://api.lemondata.cc/v1beta/models/gemini-3.1-pro-preview:generateContent using any compatible SDK. See the code examples above for detailed integration.

Related Models