# Grok 4.7 vs Sonar Deep Research - AI Model Comparison

- Page: https://opencode.ai/data/compare/grok/sonar
- Updated: 2026-10-12T16:01:19.000Z

|  | Grok 4.7 | Sonar Deep Research |
| --- | --- | --- |
| Lab | xAI | Perplexity |
| Context window | 500K | 128K |
| Max output | 500K | 33K |
| Input modalities | text, image, pdf | text |
| Reasoning | Yes | Yes |
| Tool calling | Yes | No |
| Open weights | No | No |
| Release date | 2026-09-21 | 2025-02-01 |
| Input price per 1M tokens | $2.00 | $2.00 |
| Output price per 1M tokens | $6.00 | $8.00 |
| Cached input price per 1M tokens | $0.50 | - |
| OpenCode tokens: past 2 months | 34B | - |
| Share of all tokens | 0% | - |
| Rank by tokens last week | #38 | - |
| Unique users | 28K | - |
| Weekly retention | 42.5% | - |

Model pages: [Grok 4.7](https://opencode.ai/data/xai/grok-4-7.md), [Sonar Deep Research](https://opencode.ai/data/perplexity/sonar-deep-research.md)

## Methodology

- Updates: Aggregated every hour. Days and weeks use UTC.
- Tokens: Input, output, reasoning, and cached tokens for each request.
- Users and sessions: Approximate counts of distinct users and OpenCode sessions.
- Cost: Session cost is the average cost per OpenCode session. Token prices are list prices from the OpenCode model catalog.
- Retention: The share of a model's users in one week who use it again the next week.
- Citation: Cite OpenCode Data (opencode.ai/data) with the update time shown at the top of the page.
