Gemini 3.1 Pro Preview vs Grok 4.6: price, context window and capabilities
Gemini 3.1 Pro Preview (google/gemini-3.1-pro-preview) from Google and Grok 4.6 (x-ai/grok-4.6) from SpaceXAI are both multimodal language models on the OceanToken API. Gemini 3.1 Pro Preview costs less for input: $1.80 against $2.00 per 1M input tokens (10% less); Grok 4.6 costs less for output: $6.00 against $10.80 per 1M output tokens (44% less). Gemini 3.1 Pro Preview is 10% off its official price on OceanToken, for every account. Gemini 3.1 Pro Preview has the larger context window: 1.05M tokens (1,048,576) against 500K (500,000) for Grok 4.6. Both support tool calling, reasoning, structured outputs, image input and file input; only Gemini 3.1 Pro Preview also lists audio input and video input.
Side by side
| Spec | Gemini 3.1 Pro Preview −10% | Grok 4.6 |
|---|---|---|
| Model | Gemini 3.1 Pro Previewgoogle/ | Grok 4.6x- |
| Publisher | SpaceXAI | |
| Kind | Text, vision, audio & video | Text & vision |
| Context window | 1.05M tokens1,048,576 | 500K tokens500,000 |
| Input price | $1.80 / 1M tokens | $2.00 / 1M tokens |
| Output price | $10.80 / 1M tokens | $6.00 / 1M tokens |
| Cached input price | $0.20 / 1M tokens | $0.50 / 1M tokens |
| Cache write price | $2.375 / 1M tokens | – |
| Web search price | $0.014 / search | $0.005 / search |
| Discount (vs official, top tier) | −10% | — |
| Inputs | text, images, files, audio and video | text, images and files |
| Outputs | text | text |
| Tool calling | Yes | Yes |
| Reasoning | Yes | Yes |
| Structured outputs | Yes | Yes |
About these prices
Which should you choose?
- Price depends on the mix: Gemini 3.1 Pro Preview costs less for input and Grok 4.6 for output, so estimate both on your own volume of input tokens and output tokens.
- Choose Gemini 3.1 Pro Preview for the longest inputs: its context window holds 1.05M tokens against 500K for Grok 4.6.
- Choose Gemini 3.1 Pro Preview if you need audio input and video input: Grok 4.6 does not list them.
- Not sure? Call both with the same OceanToken API key and compare them on your own prompts; each request is billed per use from one prepaid balance.
Get API Key Gemini 3.1 Pro Preview Grok 4.6
Frequently asked questions
Which is cheaper, Gemini 3.1 Pro Preview or Grok 4.6?
It depends on the mix of tokens. Gemini 3.1 Pro Preview costs less for input: $1.80 against $2.00 per 1M input tokens (10% less); Grok 4.6 costs less for output: $6.00 against $10.80 per 1M output tokens (44% less). Gemini 3.1 Pro Preview is 10% off its official price on OceanToken, for every account. The OceanToken console always shows the current price.
Which has the larger context window, Gemini 3.1 Pro Preview or Grok 4.6?
Gemini 3.1 Pro Preview. Gemini 3.1 Pro Preview has the larger context window: 1.05M tokens (1,048,576) against 500K (500,000) for Grok 4.6.
Can I call both Gemini 3.1 Pro Preview and Grok 4.6 with one API key?
Yes. Both are on the OceanToken API at https://api.oceantoken.ai/v1: one API key and one prepaid balance call either model. Send the model id google/gemini-3.1-pro-preview or x-ai/grok-4.6.
Models and publishers
Gemini 3.1 Pro Preview · Grok 4.6 · All Google models · All SpaceXAI models
More comparisons
Gemini 3.1 Pro Preview vs GPT-6 Sol · Grok 4.6 vs GPT-6 Sol · Grok 4.6 vs Claude Sonnet 5.5 · DeepSeek V4.1 Flash vs Grok 4.6 · All comparisons