Grok 4.7
- Input / 1M tokens
- $2.00
- Output / 1M tokens
- $6.00
- Providers
- 2
- Uptime, 24 h
- 100%
API models · Side by side
Grok 4.7 and Gemini 3.8 Flash can both power a text or image-based assistant, but Gemini also accepts audio and video. Gemini has lower base token rates and more context room. Grok becomes a different proposition when your application specifically needs its developer tools, including X search.
Gemini is the lower-cost starting point for the same text-token budget and the relevant choice here for direct audio or video input. Consider Grok when its tools or response behaviour fit the application. The token-price gap alone does not establish which produces a better finished answer.
Enter your own usage. We apply each model's current rates, including long-prompt pricing, for a 30-day month.
A token is roughly three-quarters of an English word. Cached input, reasoning tokens, tools and media are not included.
Compare context, supported inputs and usage costs. Highlighted rows show a difference.
| Feature | Grok 4.7 | Gemini 3.8 Flash |
|---|---|---|
| Input formats | file, image, text | audio, file, image, text, video |
| Output formats | text | text |
| Context / position limit | 500,000 | 1,048,576 |
| Endpoint output limit (tokens) | 450,000 | 65,536 |
| Developer features | Reasoning output, logprobs, Output limit, Reasoning controls, Thinking effort, Response format, Seed, Stop sequences, Structured output, Temperature, Tool selection, Tool calling, top k, top logprobs, Sampling controls | Reasoning output, Output limit, Reasoning controls, Thinking effort, Response format, Seed, Stop sequences, Structured output, Temperature, Tool selection, Tool calling, Sampling controls |
| Cached input / 1M tokens | $0.50 | $0.08 |
| Cache write / 1M tokens | Unknown | $0.04 |
| USD input / 1M tokens | $2.00 | $0.83 |
| USD output / 1M tokens | $6.00 | $4.13 |
| Available API providers | 2 | 2 |
| Best provider uptime, last 24 h | 100% | 100% |
| Model identifier | x-ai/grok-4.7 | google/gemini-3.8-flash |
Prices are in USD per million tokens. Input is what you send; output is what the model generates. Chat subscriptions and API usage are billed separately.
Tools, images and additional reasoning can add charges. The examples below cover input and output tokens only.
Compare local modelsEach example uses the same token budget for both models. These are calculations, not measured workloads. Cache discounts, media, tools and extra reasoning are excluded.
| Workload | Grok 4.7 | Gemini 3.8 Flash |
|---|---|---|
| 1,000 short requestsPer request: 2,000 input + 500 output tokens | $7.00 | $3.71 |
| 100 document summariesPer request: 20,000 input + 1,000 output tokens | $4.60 | $2.06 |
| 10 long-document requestsPer request: 300,000 input + 2,000 output tokens | $12.24 | $2.56 |
Estimate = requests × (input tokens × input price + output tokens × output price) ÷ 1,000,000. Long-prompt rates are applied where the pricing data provides them. Real requests can use different amounts of output.
At 1,000 requests with 2,000 input tokens and a 500-token reply each, Grok costs $7 and Gemini costs about $3.71 at the rates used here. If that is daily usage, a 30-day estimate is $210 against about $111.38. The calculator lets you replace those assumptions. Keep media, tools and extra reasoning separate from this text-token example.
Gemini accepts text, images, files, audio and video. Grok’s developer model takes text and images; the compared endpoint also accepts files. For a meeting, demonstration or support recording, Gemini can receive evidence that would otherwise need a separate conversion step. Decide whether the job needs speech, visual events or both before replacing a recording with a transcript.
Grok moves to higher input and output rates at the 200,000-token prompt threshold in the calculator. Gemini has no comparable long-prompt tier in this comparison’s rates. For a 300,000-token input and a 2,000-token reply, the token estimates are $1.224 for Grok and $0.25575 for Gemini. Those figures describe the request budget, not measured model behaviour or a guarantee about answer quality.
Gemini offers 1,048,576 input tokens and a 65,536-token output limit. Grok has a 500,000-token context window. Its developer API describes no separate text-output cap, while the hosting endpoint used for this comparison imposes its own limit. Gemini therefore has more room for a large input, but do not assume it can return an equally long answer. Leave room for the response and check the limits of the exact service.
Grok’s developer API supports X search, web search and code execution. Gemini supports search grounding and code execution through its own API. These capabilities need an application that connects them correctly, and tool calls can add charges. If current social posts are central to the task, investigate Grok’s X-search integration. For other research, compare the returned evidence and the full bill rather than selecting on the model name alone.
This endpoint returns text. Audio and video input support means it can receive those formats; it does not make the endpoint a speech or video generator.
No. The prices here are for standard Grok 4.7 access. Fast variants and editor subscriptions have different access and billing arrangements.
This page does not report an independently measured speed comparison. Hosting service, request size, reasoning settings and tool calls all affect how long a task takes.