Model comparison
Gemini 3.1 Pro vs Grok 4.7
Compare published specifications, vendor API list prices and measured Borg performance. Both models are included in Borg.
Gemini 3.1 Pro
Grok 4.7
Included in Borg
At a glance
| Specification | Gemini 3.1 Pro | Grok 4.7 |
|---|---|---|
| Provider | xAI | |
| Release | 2026-02-19 Vendor source | 2026-09-21 Vendor source |
| Context | 1,048,576 tokens Vendor source | 500,000 tokens Vendor source |
| Modalities | Input: text, image, video, audio, pdf; output: text | Input: text, image; output: text |
| Reasoning / thinking modes | Yes / Not published | Yes / Not published |
| Open weights | No | No |
| Vendor API list price / 1M tokens | $2 input / $12 output Rates for prompts of at most 200,000 tokens; longer prompts cost more. | $2 input / $6 output Global rates for prompts below 200,000 input tokens. At 200,000 input tokens or more, all tokens use long-context rates: $4 input / $12 output / $1 cached input per 1M tokens. US regional inference costs 1.1× the global rate. |
| Borg | Included in Borg subscription | Included in Borg subscription |
Measured on Borg
Metrics are not directly comparable to vendor benchmark claims. Models served different requests; this is observed gateway traffic, not a controlled head-to-head test.
Time to first token (gateway proxy)
No published measurement for this model.
Output tokens per second (whole turn)
No published measurement for this model.
| Metric | Gemini 3.1 Pro | Grok 4.7 |
|---|---|---|
| Time to first token (gateway proxy) p50 | Not published | 1037 ms (1436 samples) |
| Tokens per second (end to end) p50 | Not published | 33 output tokens per second (1467 samples) |
| Request success rate | Not published | Not published |
| Coding bench pass rate | Not published | Not published |
Measurement window, samples and methodology
The fleet reference is the median of published model medians, not a request-weighted result. Prompt lengths, reasoning settings and traffic differ between models.
Gemini 3.1 Pro: Measured on Borg: SearchAtlas AI Gateway production request logs. 30-day window ending 2026-10-08; 278 requests. Minimum 100 samples per published request metric.
Grok 4.7: Measured on Borg: SearchAtlas AI Gateway production request logs. 30-day window ending 2026-10-08; 1681 requests. Minimum 100 samples per published request metric.
Completion speed covers the whole turn including queueing and reasoning time; it is not a streaming tokens-per-second figure.
- Time to first token (gateway proxy): time until the first streamed response event reaches the gateway; our closest available measure of time to first token
- Tokens per second (end to end): tokens per second, end to end: provider-reported output tokens divided by the whole turn's elapsed time, including queueing and reasoning; not a streaming per-token rate
How to choose
Gemini 3.1 Pro is listed for complex software engineering, whereas Grok 4.7 is listed for long-running agentic coding. Choosing between Gemini 3.1 Pro and Grok 4.7 requires checking published specifications against observed Borg traffic for your workflow.
Key differences
| Spec | Gemini 3.1 Pro | Grok 4.7 |
|---|---|---|
| Context window | 1,048,576 tokens Vendor source Larger context | 500,000 tokens Vendor source |
| Reasoning modes | Yes / Not published | Yes / Not published |
| Release date | 2026-02-19 Vendor source | 2026-09-21 Vendor source |
| API price input / 1M | 2 Rates for prompts of at most 200,000 tokens; longer prompts cost more. | 2 Global rates for prompts below 200,000 input tokens. At 200,000 input tokens or more, all tokens use long-context rates: $4 input / $12 output / $1 cached input per 1M tokens. US regional inference costs 1.1× the global rate. |
| API price output / 1M | 12 Rates for prompts of at most 200,000 tokens; longer prompts cost more. | 6 Global rates for prompts below 200,000 input tokens. At 200,000 input tokens or more, all tokens use long-context rates: $4 input / $12 output / $1 cached input per 1M tokens. US regional inference costs 1.1× the global rate. Lower listed rate |
| Time to first token (gateway proxy) | Not published | 1037 ms (1436 samples) |
| Output tokens per second (whole turn) | Not published | 33 output tokens/s (whole turn) (1467 samples) |
| Request success | Not published | Not published |
| Coding bench | Not published | Not published |
FAQ
How do Gemini 3.1 Pro and Grok 4.7 compare for coding?
Gemini 3.1 Pro has a Borg coding benchmark of not published; Grok 4.7 has not published. The Gemini 3.1 Pro–Grok 4.7 coding comparison cannot establish an overall winner from this small test alone.
How quickly do Gemini 3.1 Pro and Grok 4.7 start responding on Borg?
Borg median first response for Gemini 3.1 Pro is not published; for Grok 4.7 it is 1,037 ms. The Gemini 3.1 Pro–Grok 4.7 gateway medians are observations, not guaranteed latency for individual requests.
What are the API prices for Gemini 3.1 Pro and Grok 4.7?
The listed API rate for Gemini 3.1 Pro is $2 input / $12 output per 1M tokens; for Grok 4.7 it is $2 input / $6 output per 1M tokens. Neither Gemini 3.1 Pro nor Grok 4.7 has its Borg subscription charge represented by those provider API rates. Gemini 3.1 Pro vendor source · Grok 4.7 vendor source