Phi 4 vs Ternary Bonsai 2 9B

Compare Phi 4 from Microsoft and Ternary Bonsai 2 9B from PrismML on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.

Favicon for microsoft
Phi 4
Favicon for prism-ml
Ternary Bonsai 2 9B

Overview

Phi 4
Author
Microsoft
Ternary Bonsai 2 9B
Author
PrismML
Phi 4
Context length
16Ktokens
Ternary Bonsai 2 9B
Context length
262Ktokens
Phi 4
Reasoning
No
Ternary Bonsai 2 9B
Reasoning
Yes
Phi 4
Input modalities
Text
Ternary Bonsai 2 9B
Input modalities
Text, Image
Phi 4
Output modalities
Text
Ternary Bonsai 2 9B
Output modalities
Text

Analysis

Phi 4 vs Ternary Bonsai 2 9B at a glance

Index and benchmark scores are from Artificial Analysis. Each score is the model's best published result across the configurations Artificial Analysis evaluated.

Phi 4
Input price
$0.07/M tokens
Ternary Bonsai 2 9B
Input price
$0.08/M tokens
Phi 4
Output price
$0.14/M tokens
Ternary Bonsai 2 9B
Output price
$0.13/M tokens
Phi 4
Context window
16,384 tokens
Ternary Bonsai 2 9B
Context window
262,144 tokens
Phi 4
Openness Index Artificial Analysis, best published result
50.0
Ternary Bonsai 2 9B
Openness Index Artificial Analysis, best published result
Not available
Phi 4
GPQA Diamond score Artificial Analysis, best published result
57.5%
Ternary Bonsai 2 9B
GPQA Diamond score Artificial Analysis, best published result
Not available
Phi 4
Latency (p50)
0.98 s
Ternary Bonsai 2 9B
Latency (p50)
0.47 s
Phi 4
Throughput (p50)
86.0 tok/s
Ternary Bonsai 2 9B
Throughput (p50)
60.0 tok/s
Phi 4
Provided by
Microsoft
Ternary Bonsai 2 9B
Provided by
PrismML

Benchmark data updated

Frequently asked questions

Is Phi 4 cheaper than Ternary Bonsai 2 9B?

Phi 4 and Ternary Bonsai 2 9B trade off on price: Phi 4 costs $0.07/M tokens input and $0.14/M tokens output, while Ternary Bonsai 2 9B costs $0.08/M tokens input and $0.13/M tokens output, so Phi 4 is cheaper for input tokens and Ternary Bonsai 2 9B is cheaper for output tokens.

Which has the longer context window, Phi 4 or Ternary Bonsai 2 9B?

Ternary Bonsai 2 9B has the longer context window at 262,144 tokens, compared with 16,384 tokens for Phi 4.

Which is faster, Phi 4 or Ternary Bonsai 2 9B?

Phi 4 is faster on OpenRouter, generating a median 86.0 tokens per second compared with 60.0 tokens per second for Ternary Bonsai 2 9B.