GPT-5.6 Terra vs Grok 4.7
As of November 23, 2026, GPT-5.6 Terra and Grok 4.7 cost the same per input token ($2.00 per 1M), but GPT-5.6 Terra costs 100% more per output token ($12.00 vs $6.00) and has a 922K-token context window versus 500K.
GPT-5.6 Terra vs Grok 4.7 side by side
| GPT-5.6 Terra | Grok 4.7 | |
|---|---|---|
| Input, per 1M tokens | $2.00 | $2.00 |
| Output, per 1M tokens | $12.00 | $6.00 |
| Cache read, per 1M tokens | $0.20 | $0.50 |
| Cache write, per 1M tokens | $2.50 | – |
| Context window | 922,000 tokens | 500,000 tokens |
| Max output | 128,000 tokens | 500,000 tokens |
| Image input | Yes | Yes |
| Tool calling | Yes | Yes |
| Structured output (JSON) | Yes | Yes |
| Prompt caching | Yes | Yes |
| Reasoning | Yes | Yes |
| Providers on LiteLLM | 14 | 11 |
| Price shown is from | OpenAI | xAI |
| Added to LiteLLM | July 9, 2026 | September 21, 2026 |
Cheapest provider for each
- GPT-5.6 Terra: Databricks at $2.00 input and $12.00 output per 1M tokens (
databricks/databricks-gpt-5-6-terra) - Grok 4.7: xAI at $2.00 input and $6.00 output per 1M tokens (
xai/grok-4.7)
Benchmark scores
| Benchmark | GPT-5.6 Terra | Grok 4.7 |
|---|---|---|
| Overall | ||
| Epoch Capabilities Index | 160.8 | 156.4 |
| Coding and agents | ||
| FrontierCode | 41.3% | 47.6% |
| APEX-Agents | 58.2% (max) | 70.0% |
| Reasoning and knowledge | ||
| GPQA Diamond | 93.3% (max) | 92.7% (xhigh) |
| ARC-AGI-2 | 83.9% (max) | 61.4% (xhigh) |
| SimpleQA Verified | 43.2% (max) | 56.0% (xhigh) |
| Math | ||
| FrontierMath (tiers 1-3) | 86.0% (max) | 53.0% (xhigh) |
| FrontierMath (tier 4) | 70.7% (max) | 17.1% (xhigh) |
| OTIS Mock AIME 2024-2025 | 99.7% (max) | 98.1% (xhigh) |
When to pick which
Pick GPT-5.6 Terra for
- Larger context window: 922,000 vs 500,000 tokens.
Pick Grok 4.7 for
- Costs 50% less per output token: $6.00 vs $12.00 per 1M.
- Returns up to 500,000 tokens per response, vs 128,000.
From differences in the data above only; where the data is equal, no reason is given.
Call GPT-5.6 Terra or Grok 4.7 with LiteLLM
Both use the OpenAI format through LiteLLM, so switching is a model name change. Set each provider's API key in the environment first.
from litellm import completion
messages = [{"role": "user", "content": "Hello!"}]
# GPT-5.6 Terra
response = completion(model="gpt-5.6-terra", messages=messages)
# Grok 4.7
response = completion(model="xai/grok-4.7", messages=messages)
# GPT-5.6 Terra, falling back to Grok 4.7 if the call fails
response = completion(model="gpt-5.6-terra", messages=messages, fallbacks=["xai/grok-4.7"])FAQ
Which is cheaper, GPT-5.6 Terra or Grok 4.7?
Grok 4.7 is cheaper at 3 input tokens per output token: $3.00 per 1M tokens blended ($2.00 input, $6.00 output), versus $4.50 ($2.00 and $12.00) for GPT-5.6 Terra, as of November 23, 2026.
Which has the larger context window, GPT-5.6 Terra or Grok 4.7?
GPT-5.6 Terra has the larger context window: 922,000 tokens, versus 500,000 for Grok 4.7.
Can I switch from GPT-5.6 Terra to Grok 4.7 without changing my code?
Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "gpt-5.6-terra" to "xai/grok-4.7", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.