How much does the Gemini 3.1 Pro API cost?
On OceanToken, Gemini 3.1 Pro costs $1.80 per 1M input tokens and $10.80 per 1M output tokens: 10% off Google’s official price of $2.00 input / $12.00 output, for every account from the first request. These are the prices for prompts up to 200K tokens; Google charges more for longer prompts. Cached input bills at the official $0.20 per 1M tokens at every tier. One request with 100K input and 20K output tokens costs $0.396 here, against $0.44 at the official price.
| per 1M tokens | Official price | OceanToken, every tier |
|---|---|---|
| Input | $2.00 | $1.80 −10% |
| Output | $12.00 | $10.80 −10% |
| Cached inputOfficial price at every tier | $0.20 | $0.20 |
Prices as of November 18, 2026.
What does a typical request cost?
Gemini 3.1 Pro costs the same at Tier 1, Tier 2 and Tier 3, so the example below is what every account pays.
| Workload | Official price | OceanToken, every tier |
|---|---|---|
| One request | $0.44 | $0.396 −10% |
| 1,000 requests | $440.00 | $396.00 −10% |
Large volume? Enterprise rates are by quote, up to 30% off. Quote by email
Frequently asked questions
How much does the Gemini 3.1 Pro API cost per million tokens, and where can I buy it cheaper?
Gemini 3.1 Pro costs $2.00 per 1M input tokens and $12.00 per 1M output tokens at Google’s official price. On OceanToken it costs $1.80 input and $10.80 output, 10% off the official price for every account from the first request. These are the prices for prompts up to 200K tokens; Google charges more for longer prompts. Cached input bills at the official $0.20 per 1M tokens. You call the same model with one OpenAI-compatible API key.
Is Gemini 3.1 Pro still a preview model?
Yes. Its model ID is google/gemini-3.1-pro-preview, and Google says preview models can change before they become stable. Pin the ID and re-test your prompts before you move to a newer version.
Is cached input discounted on Gemini 3.1 Pro?
No. Cached input bills at Google’s official price at every tier: $0.20 per 1M tokens for Gemini 3.1 Pro. The discounts apply to input and output.
Am I charged for failed requests?
No. If a request fails, you are not charged: that covers a request refused for an insufficient balance or by a safety check, one whose provider fails before returning any output, and a video job that fails or is refused by a safety check, whose held amount goes back to your balance. The one exception: if a request breaks off after the model has started producing output, for example a stream cut off part-way, you pay for the tokens that were processed and generated for it.
Is there a volume discount?
Yes. Enterprise rates are by quote, up to 30% off: ask for a quote by email on the Enterprise page and we activate your rate for you.
Is it the official Gemini 3.1 Pro model?
Yes. You call Google’s Gemini 3.1 Pro by its model ID, google/gemini-3.1-pro-preview, and get that model. The price table shows the official price next to ours.
Do I need a subscription to use Gemini 3.1 Pro?
No. You add credits by card, and each request is billed at the model’s price. Purchased credits are valid for 12 months.
How do I call the Gemini 3.1 Pro API?
Create an API key in the OceanToken console, set the base URL to https://api.oceantoken.ai/v1 and use the model id, for example google/gemini-3.1-pro-preview. The OpenAI SDKs and any OpenAI-compatible client work.from openai import OpenAI
# Your API Key from the OceanToken console
client = OpenAI(base_url="https://api.oceantoken.ai/v1",
api_key="YOUR_API_KEY")
reply = client.chat.completions.create(
model="google/gemini-3.1-pro-preview",
messages=[{"role": "user", "content": "Hello"}])
print(reply.choices[0].message.content)
Keep exploring
Gemini 3.1 Pro Preview model page · Gemini API · All model prices
Gemini 3.1 Pro Preview vs GPT-6 Sol · DeepSeek V3.2 vs Gemini 3.1 Pro Preview · GLM 5.3 Prime vs Gemini 3.1 Pro Preview · GLM 5.3 Flash vs Gemini 3.1 Pro Preview · GLM 5.3 vs Gemini 3.1 Pro Preview · Qwen3.8 Max vs Gemini 3.1 Pro Preview · All comparisons
Claude Sonnet 5.5 API price · Claude Opus 5.5 API price · GPT-5.5 API price · GPT-6 Sol API price · DeepSeek V4.1 Flash API price · Seedance 2.5 API price · MiniMax H3 API price · Kling v3.0 API price