# Ternary Bonsai 2 9B vs Hy4 flash

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

## Overview

| Attribute | Ternary Bonsai 2 9B | Hy4 flash |
| --- | --- | --- |
| Author | PrismML | tencent |
| Reasoning | Yes | Yes |
| Input modalities | Text, Image | Text, Image |
| Output modalities | Text | Text |
| Input price | $0.08/M tokens | $0.05/M tokens |
| Output price | $0.13/M tokens | $0.20/M tokens |
| Context window | 262,144 tokens | 1,048,576 tokens |
| Latency (p50) | 0.41 s | 2.80 s |
| Throughput (p50) | 59.0 tok/s | 22.0 tok/s |

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

### Choose Ternary Bonsai 2 9B for:

- faster output (59.0 vs 22.0 tok/s)
- a quicker first token (0.41 s vs 2.80 s)
- cheaper output tokens

### Choose Hy4 flash for:

- a longer context window (1,048,576 vs 262,144 tokens)
- cheaper input tokens

## 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 flash](https://openrouter.ai/tencent/hy4-flash) ([llms.txt](https://openrouter.ai/tencent/hy4-flash/llms.txt))
