Gemini 3.1 Pro (Preview) vs Grok 4.7
Gemini 3.1 Pro (Preview) from Google and Grok 4.7 from xAI, side by side. Every figure comes from the model registry. No markup on model usage: you pay the provider's list price.
| Attribute | ||
|---|---|---|
| Provider | xAI | |
| Model id | google/gemini-3.1-pro-preview | xai/grok-4.7 |
| Status | Available via Safeguard | Available via Safeguard |
| Input / 1M tokens | $2 | $2 |
| Output / 1M tokens | $12 | $6 |
| Price notes | Preview model. Prompts <=200K tokens, over 200K: $4 in / $18 out. Output includes thinking tokens. No free tier. | Prompts <200K tokens. At or above 200K: $4 in / $12 out for the whole request. Cached input $0.50. No batch API. US regional endpoint 1.1x. |
| Context | 1.05M | 500K |
| Parameters | Not published | Not published |
| Max output | 65,536 tokens | Not published |
| Modality | Text and image | Text and image |
| Weights | Closed | Closed |
| Zero data retention | Not offered | Available |
| Prompts go to | Google (Gemini Developer API) | xAI (SpaceXAI) |
| Retention | Paid tier: prompts and responses not used to improve Google products, but logged for a limited period for abuse monitoring, free tier content may be used to improve products | API requests and responses stored encrypted for 30 days for abuse auditing, then deleted, never used for training without explicit permission |
| Region | No region guarantee, data may be stored transiently or cached in any country where Google operates. Google points ZDR and enterprise processing needs to Vertex AI (Gemini Enterprise Agent Platform) | No region guarantee on the default endpoint, US regional endpoint (grok-4.7 and grok-4.6 only) at 1.1x pricing |
| Price checked | 2026-10-08 | 2026-10-08 |
Self-healing security runs on Safeguard.
Your first fix PR is minutes away.
No sales call required, even your agent can complete the purchase over MCP.