# MAI-Code-1-Flash vs Grok 4.7 - AI Model Comparison

- Page: https://opencode.ai/data/compare/microsoft/mai-code-1-flash/xai/grok-4-7
- Updated: 2026-10-23T08:22:21.000Z

|  | MAI-Code-1-Flash | Grok 4.7 |
| --- | --- | --- |
| Lab | Microsoft | xAI |
| Context window | 256K | 500K |
| Max output | 128K | 500K |
| Input modalities | text | text, image, pdf |
| Reasoning | Yes | Yes |
| Tool calling | Yes | Yes |
| Open weights | No | No |
| Release date | 2026-06-02 | 2026-09-21 |
| Input price per 1M tokens | - | $2.00 |
| Output price per 1M tokens | - | $6.00 |
| Cached input price per 1M tokens | - | $0.50 |
| OpenCode tokens: past 2 months | - | 61B |
| Share of all tokens | - | 0.0% |
| Rank by tokens last week | - | #37 |
| Unique users | - | 48K |
| Weekly retention | - | 44.7% |

Model pages: [MAI-Code-1-Flash](https://opencode.ai/data/microsoft/mai-code-1-flash.md), [Grok 4.7](https://opencode.ai/data/xai/grok-4-7.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.
