Safeguard
All models

Gemini 3.8 Flash vs Grok 4.7

Gemini 3.8 Flash 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.

Side-by-side comparison of Gemini 3.8 Flash, Grok 4.7
AttributeGoogle logoGemini 3.8 FlashxAI logoGrok 4.7
ProviderGooglexAI
Model idgoogle/gemini-3.8-flashxai/grok-4.7
StatusAvailable via SafeguardAvailable via Safeguard
Input / 1M tokens$0.75$2
Output / 1M tokens$3.75$6
Price notesPaid tier. $0.75 in / $3.75 out (output includes thinking tokens) through 2026-12-31, rises to $1.50 / $7.50 from 2027-01-01.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-102026-10-10

Compare other models

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.