# Phi 4 vs Grok 4.7

Source: https://openrouter.ai/compare/microsoft/phi-4/x-ai/grok-4.7

## Overview

| Attribute | Phi 4 | Grok 4.7 |
| --- | --- | --- |
| Author | Microsoft | SpaceXSI |
| Reasoning | No | Yes |
| Input modalities | Text | Text, Image, File |
| Output modalities | Text | Text |
| Input price | $0.07/M tokens | $2/M tokens |
| Output price | $0.14/M tokens | $6/M tokens |
| Context window | 16,384 tokens | 500,000 tokens |
| Intelligence Index | Not available | 35.4 |
| Finance & Accounting Index | Not available | 51.7 |
| Strategy & Ops Index | Not available | 54.8 |
| Legal Index | Not available | 47.2 |
| Healthcare & Medical Index | Not available | 46.6 |
| Engineering Index | Not available | 41.7 |
| Economics Index | Not available | 45.7 |
| Cyber Index | Not available | 56.4 (0.0% of tasks refused) |
| Openness Index | 50.0 | Not available |
| FrontierCode-AA 2.0 | Not available | 28.9% |
| GPQA Diamond score | 57.5% | Not available |
| Latency (p50) | 0.83 s | 56.47 s |
| Throughput (p50) | 86.0 tok/s | 17.0 tok/s |

## Phi 4 or Grok 4.7: which should you choose?

### Choose Phi 4 for:

- faster output (86.0 vs 17.0 tok/s)
- a quicker first token (0.83 s vs 56.47 s)

### Choose Grok 4.7 for:

- a longer context window (500,000 vs 16,384 tokens)

## Benchmark differences

| Benchmark | Phi 4 | Grok 4.7 | Difference |
| --- | --- | --- | --- |
| Intelligence Index | Not available | 35.4 | Not available |
| Finance & Accounting Index | Not available | 51.7 | Not available |
| Strategy & Ops Index | Not available | 54.8 | Not available |
| Legal Index | Not available | 47.2 | Not available |
| Healthcare & Medical Index | Not available | 46.6 | Not available |
| Engineering Index | Not available | 41.7 | Not available |
| Economics Index | Not available | 45.7 | Not available |
| Cyber Index | Not available | 56.4 (0.0% of tasks refused) | Not available |
| FrontierCode-AA 2.0 | Not available | 28.9% | Not available |

## Model pages

- [Phi 4](https://openrouter.ai/microsoft/phi-4) ([llms.txt](https://openrouter.ai/microsoft/phi-4/llms.txt))
- [Grok 4.7](https://openrouter.ai/x-ai/grok-4.7) ([llms.txt](https://openrouter.ai/x-ai/grok-4.7/llms.txt))
