# PrismML: Ternary Bonsai2 9B

Ternary Bonsai2 9B is a 9B-parameter language model. It reads and writes text.

- **Model id:** `opencheap/ternary-bonsai-2-9b`
- **Price per 1M tokens:** $0.08 input / $0.13 output
- **Cached input:** $0.04 per 1M tokens
- **Context:** 262K tokens, 65K max output

## Providers

2 providers. Prices are per 1M tokens. As of 2026-12-04 12:06 UTC.

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| NanoGPT · quantization unknown | $0.08 | $0.04 | $0.13 | — | — | — | 262K | 65K |
| Darkbloom · int4 | $0.084 | $0.042 | $0.14 | 0.59 s | 58 tok/s | 100 % | 262K | 65K |

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **NanoGPT:** `temperature`, `top_p`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Darkbloom:** `temperature`, `top_p`, `top_k`, `seed`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/ternary-bonsai-2-9b#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/ternary-bonsai-2-9b`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/ternary-bonsai-2-9b", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/ternary-bonsai-2-9b",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/ternary-bonsai-2-9b",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About Ternary Bonsai2 9B

Ternary Bonsai2 9B costs from $0.08 per 1M input tokens and $0.13 per 1M output tokens on OpenCheap, with cached input at $0.04 per 1M tokens. Its list price is $0.08 per 1M input tokens and $0.13 per 1M output tokens, the same as here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.00093, and 1,000 such requests about $0.93. Prices as of 2026-12-04 12:06 UTC.

2 providers serve Ternary Bonsai2 9B on OpenCheap. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 262K tokens (262,144), room for roughly 200,000 words of English in one request.

Ternary Bonsai2 9B is one of [2 PrismML models](https://opencheap.si/models/lab/prismml) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the Ternary Bonsai2 9B API cost per 1M tokens?

Ternary Bonsai2 9B costs from $0.08 per 1M input tokens and $0.13 per 1M output tokens on OpenCheap, with cached input at $0.04 per 1M tokens. Prices as of 2026-12-04 12:06 UTC.

### What does one Ternary Bonsai2 9B request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.00093, and 1,000 such requests about $0.93. Every answer reports its own cost in usage.cost.

### Is Ternary Bonsai2 9B cheaper on OpenCheap than its list price?

Its list price is $0.08 per 1M input tokens and $0.13 per 1M output tokens, the same as here.

### Which providers serve Ternary Bonsai2 9B?

2 providers serve Ternary Bonsai2 9B on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of Ternary Bonsai2 9B?

Its context window is 262K tokens (262,144), room for roughly 200,000 words of English in one request.

### How do I call the Ternary Bonsai2 9B API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/ternary-bonsai-2-9b. One OpenCheap key works for every model; the rest of your code stays the same.

## More from PrismML

- [Ternary Bonsai 2 27B](https://opencheap.si/models/ternary-bonsai-2-27b) (`ternary-bonsai-2-27b`): $0.075 / $0.50 per 1M · 262K context

[All 2 PrismML models](https://opencheap.si/models/lab/prismml)

## Similar models

- [GLM 4.7](https://opencheap.si/models/glm-4.7): Zhipu · 202K context · $0.032 / $0.14 per 1M · [Compare with Ternary Bonsai2 9B](https://opencheap.si/compare/ternary-bonsai-2-9b-vs-glm-4.7)
- [GLM 4.6](https://opencheap.si/models/glm-4.6): Zhipu · 202K context · $0.044 / $0.18 per 1M · [Compare with Ternary Bonsai2 9B](https://opencheap.si/compare/ternary-bonsai-2-9b-vs-glm-4.6)
- [Kimi K2.5](https://opencheap.si/models/kimi-k2.5): Moonshot · 262K context · $0.017 / $0.083 per 1M, 44 % cheaper · [Compare with Ternary Bonsai2 9B](https://opencheap.si/compare/ternary-bonsai-2-9b-vs-kimi-k2.5)
- [DiffusionGemma](https://opencheap.si/models/diffusiongemma): Google · 262K context · $0.05 / $0.15 per 1M · [Compare with Ternary Bonsai2 9B](https://opencheap.si/compare/ternary-bonsai-2-9b-vs-diffusiongemma)
- [Xiaomi Mimo V2.6 Pro](https://opencheap.si/models/mimo-v2.6-pro): Xiaomi · 1M context · $0.054 / $0.11 per 1M, 20 % cheaper · [Compare with Ternary Bonsai2 9B](https://opencheap.si/compare/ternary-bonsai-2-9b-vs-mimo-v2.6-pro)
- [Schematron V2 Turbo](https://opencheap.si/models/schematron-v2-turbo): Inference.net · 128K context · $0.03 / $0.15 per 1M · [Compare with Ternary Bonsai2 9B](https://opencheap.si/compare/ternary-bonsai-2-9b-vs-schematron-v2-turbo)

[Compare Ternary Bonsai2 9B with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/ternary-bonsai-2-9b · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
