Safeguard
All models

Compare models

Pick two to four models. No markup on model usage: you pay the provider's list price.

Side-by-side comparison of Gemini 3.1 Pro (Preview), Grok 4.7
AttributeGoogle logoGemini 3.1 Pro (Preview)xAI logoGrok 4.7
ProviderGooglexAI
Model idgoogle/gemini-3.1-pro-previewxai/grok-4.7
StatusAvailable via SafeguardAvailable via Safeguard
Input / 1M tokens$2$2
Output / 1M tokens$12$6
Price notesPreview 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.
Context1.05M500K
ParametersNot publishedNot published
Max output65,536 tokensNot published
ModalityText and imageText and image
WeightsClosedClosed
Zero data retentionNot offeredAvailable
Prompts go toGoogle (Gemini Developer API)xAI (SpaceXAI)
RetentionPaid 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 productsAPI requests and responses stored encrypted for 30 days for abuse auditing, then deleted, never used for training without explicit permission
RegionNo 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 checked2026-10-082026-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.

Compare AI Models: Price, Context and Data Policy | Safeguard