# PrismML models

2 models · one OpenAI-compatible API

2 PrismML models are on OpenCheap, each at its own price per 1M tokens. The cheapest to call is Ternary Bonsai2 9B, at $0.08 per 1M input tokens and $0.13 per 1M output tokens. The largest context is Ternary Bonsai 2 27B's, 262K tokens. Prices are per 1M input / output tokens, as of 2026-12-04 11:48 UTC.

## Every PrismML model

Price per 1M tokens, input / output

- [Ternary Bonsai 2 27B](https://opencheap.si/models/ternary-bonsai-2-27b): ternary-bonsai-2-27b $0.075 / $0.50 · 262K context · 3 providers
- [Ternary Bonsai2 9B](https://opencheap.si/models/ternary-bonsai-2-9b): ternary-bonsai-2-9b $0.08 / $0.13 · 262K context · 3 providers

## Call any PrismML model

Every model from PrismML is called the same way: point the OpenAI SDK at `https://api.opencheap.si/v1` with your OpenCheap key and pass the model id, for example [opencheap/ternary-bonsai-2-27b](https://opencheap.si/models/ternary-bonsai-2-27b). Each request goes to the cheapest healthy provider of that model, and every answer reports what it cost in `usage.cost`. You pay per token from one prepaid balance, and credits never expire.

```
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-27b",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

---

Source: https://opencheap.si/models/lab/prismml · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
