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

1,048,576 tokensContext window
—Median time to first token (gateway proxy)
—Output tokens per second (whole turn)
—Request success
$2 / $12Vendor API price in / out · per 1M

Grok 4.7

500,000 tokensContext window
1037 msMedian time to first token (gateway proxy)
33Output tokens per second (whole turn)
—Request success
$2 / $6Vendor API price in / out · per 1M

Included in Borg

At a glance

SpecificationGemini 3.1 ProGrok 4.7
ProviderGooglexAI
Release2026-02-19 Vendor source2026-09-21 Vendor source
Context1,048,576 tokens Vendor source500,000 tokens Vendor source
ModalitiesInput: text, image, video, audio, pdf; output: textInput: text, image; output: text
Reasoning / thinking modesYes / Not publishedYes / Not published
Open weightsNoNo
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.
BorgIncluded in Borg subscriptionIncluded 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)

Output tokens per second (whole turn)

MetricGemini 3.1 ProGrok 4.7
Time to first token (gateway proxy) p50Not published1037 ms (1436 samples)
Tokens per second (end to end) p50Not published33 output tokens per second (1467 samples)
Request success rateNot publishedNot published
Coding bench pass rateNot publishedNot 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

SpecGemini 3.1 ProGrok 4.7
Context window1,048,576 tokens Vendor source Larger context500,000 tokens Vendor source
Reasoning modesYes / Not publishedYes / Not published
Release date2026-02-19 Vendor source2026-09-21 Vendor source
API price input / 1M2 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 / 1M12 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 published1037 ms (1436 samples)
Output tokens per second (whole turn)Not published33 output tokens/s (whole turn) (1467 samples)
Request successNot publishedNot published
Coding benchNot publishedNot 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

Explore both models

Gemini 3.1 Pro · Grok 4.7 · Borg pricing

More comparisons

All comparisons