Skip to content
llmmodels

GPT-4.1 nano vs Phi 4

GPT-4.1 nano and Phi 4 are evenly matched on the 4 benchmarks both report. Phi 4 is about 2.0× cheaper on a blended (3:1 input:output) token price. GPT-4.1 nano has the larger context window (1M vs 16K). Phi 4 has open weights, so you can self-host and fine-tune it; GPT-4.1 nano is API-only.

SpecGPT-4.1 nanoPhi 4
ProviderOpenAIMicrosoft
ReleasedApr 14, 2025 (better)Dec 12, 2024
TypeChat LLMChat LLM
Parameters—15B
Context window1M (better)16K
Max output32K (better)15K
Input price / 1M$0.1$0.07 (better)
Output price / 1M$0.4$0.14 (better)
Input modalitiestext, image, file (better)text
Open weightsNoYes
LicenseProprietarymit
Reasoning modeNoNo
Tool callingYesNo
API providers22 (better)1
Epoch Capabilities Index126.8129.2 (better)
GPQA Diamond48.9%56.1% (better)
Aider Polyglot8.9%—
OTIS Mock AIME28.9% (better)13.8%
MATH Level 570.0% (better)64.9%
ARC-AGI-20.0%—
SimpleQA Verified6.0%—
LiveBench—41.6%
MMLU—84.8%

Cost example

For a workload of 10M input + 2M output tokens per month: GPT-4.1 nano costs $1.80 and Phi 4 costs $0.98 at list price (OpenAI / openrouter pricing).

About GPT-4.1 nano

GPT-4.1 nano is a proprietary chat llm from OpenAI, released Apr 14, 2025. It has a 1M-token context window and accepts text, image, file input. API pricing starts at $0.1 per million input tokens and $0.4 per million output tokens. It is available from 22 API providers. It scores 126.8 on the Epoch Capabilities Index. Full GPT-4.1 nano specs →

About Phi 4

Phi 4 is an open-weight chat llm from Microsoft, released Dec 12, 2024. It has 15B parameters and a 16K-token context window. API pricing starts at $0.07 per million input tokens and $0.14 per million output tokens. It scores 129.2 on the Epoch Capabilities Index. Full Phi 4 specs →

Compare other models

FAQ

Which is better, GPT-4.1 nano or Phi 4?

GPT-4.1 nano and Phi 4 are evenly matched on the 4 benchmarks both report. Phi 4 is about 2.0× cheaper on a blended (3:1 input:output) token price. GPT-4.1 nano has the larger context window (1M vs 16K). Phi 4 has open weights, so you can self-host and fine-tune it; GPT-4.1 nano is API-only.

Is GPT-4.1 nano cheaper than Phi 4?

GPT-4.1 nano costs $0.1 input / $0.4 output per 1M tokens; Phi 4 costs $0.07 / $0.14. Phi 4 is cheaper overall.

Which has a bigger context window?

GPT-4.1 nano: 1,047,576 tokens. Phi 4: 16,384 tokens.

Are GPT-4.1 nano and Phi 4 open source?

GPT-4.1 nano is proprietary; Phi 4 is open-weight.