Compare DeepSeek V3.1 Base from DeepSeek and Grok 4 from SpaceXAI on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.


DeepSeek V3.1 Base and Grok 4 are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.
DeepSeek V3.1 Base, from DeepSeek, has a 163,840-token context window and is priced by the provider serving it on OpenRouter.
Grok 4, from SpaceXAI, has a 256,000-token context window and is priced by the provider serving it on OpenRouter.
| Attribute | DeepSeek V3.1 Base | Grok 4 |
|---|---|---|
| Input price | Pricing varies by provider | Pricing varies by provider |
| Output price | Pricing varies by provider | Pricing varies by provider |
| Context window | 163,840 tokens | 256,000 tokens |
| Intelligence Index | Not available | 22.5 |
| Coding Index | Not available | Not available |
| Agentic Index | Not available | Not available |
| Latency (p50) | Not available | Not available |
| Throughput (p50) | Not available | Not available |
Benchmark data updated
Grok 4 has the longer context window at 256,000 tokens, compared with 163,840 tokens for DeepSeek V3.1 Base.