# Ternary Bonsai 2 9B vs Hy4

Source: https://openrouter.ai/compare/prism-ml/ternary-bonsai-2-9b/tencent/hy4

## Overview

| Attribute | Ternary Bonsai 2 9B | Hy4 |
| --- | --- | --- |
| Author | PrismML | tencent |
| Reasoning | Yes | Yes |
| Input modalities | Text, Image | Text, Image |
| Output modalities | Text | Text |
| Input price | $0.08/M tokens | $0.417/M tokens |
| Output price | $0.13/M tokens | $1.251/M tokens |
| Context window | 262,144 tokens | 1,048,576 tokens |
| Intelligence Index | Not available | 34.6 |
| Finance & Accounting Index | Not available | 38.0 |
| Strategy & Ops Index | Not available | 48.7 |
| Legal Index | Not available | 35.4 |
| Healthcare & Medical Index | Not available | 42.9 |
| Engineering Index | Not available | 41.1 |
| Economics Index | Not available | 38.3 |
| Cyber Index | Not available | 58.0 (0.0% of tasks refused) |
| Openness Index | Not available | 33.3 |
| FrontierCode-AA 2.0 | Not available | 31.2% |
| Latency (p50) | 0.41 s | 3.18 s |
| Throughput (p50) | 59.0 tok/s | 66.0 tok/s |

## Ternary Bonsai 2 9B or Hy4: which should you choose?

### Choose Ternary Bonsai 2 9B for:

- a quicker first token (0.41 s vs 3.18 s)
- lower token prices

### Choose Hy4 for:

- a longer context window (1,048,576 vs 262,144 tokens)
- faster output (66.0 vs 59.0 tok/s)

## Benchmark differences

| Benchmark | Ternary Bonsai 2 9B | Hy4 | Difference |
| --- | --- | --- | --- |
| Intelligence Index | Not available | 34.6 | Not available |
| Finance & Accounting Index | Not available | 38.0 | Not available |
| Strategy & Ops Index | Not available | 48.7 | Not available |
| Legal Index | Not available | 35.4 | Not available |
| Healthcare & Medical Index | Not available | 42.9 | Not available |
| Engineering Index | Not available | 41.1 | Not available |
| Economics Index | Not available | 38.3 | Not available |
| Cyber Index | Not available | 58.0 (0.0% of tasks refused) | Not available |
| FrontierCode-AA 2.0 | Not available | 31.2% | Not available |

## Model pages

- [Ternary Bonsai 2 9B](https://openrouter.ai/prism-ml/ternary-bonsai-2-9b) ([llms.txt](https://openrouter.ai/prism-ml/ternary-bonsai-2-9b/llms.txt))
- [Hy4](https://openrouter.ai/tencent/hy4) ([llms.txt](https://openrouter.ai/tencent/hy4/llms.txt))
