Prism ML: Ternary Bonsai 2 27B
prism-ml/ternary-bonsai-2-27b
Access Ternary Bonsai 2 27B from Prism ML using the Puter.js AI API.
Get Started// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.chat("Explain quantum computing in simple terms", {
model: "prism-ml/ternary-bonsai-2-27b"
}).then(response => {
document.body.innerHTML = response.message.content;
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat("Explain quantum computing in simple terms", {
model: "prism-ml/ternary-bonsai-2-27b"
}).then(response => {
document.body.innerHTML = response.message.content;
});
</script>
</body>
</html>
Model Card
Ternary Bonsai 2 27B is PrismML's second-generation ternary-weight compression of a Qwen3.8 27B base model, following the original Bonsai 27B built on Qwen3.6.
Weights are stored in a ternary {-1, 0, +1} format with FP16 group-wise scaling, giving roughly 1.76 effective bits per weight and a 5.9GB footprint, about 9x smaller than the full-precision model.
Across a 20-benchmark thinking-mode suite, it averages 83.9, retaining 98.2% of the Qwen3.8 27B baseline's 85.4 score, up from the roughly 95% retention PrismML reported for the first-generation Bonsai 27B. Category scores include 96.57 on math and 81.58 on coding.
It supports a 262K-token context window, tool calling, and image input alongside text, making it suited for coding agents, math-heavy workloads, and long-document or multimodal tasks where compute budget matters.
Context Window 262K
tokens
Max Output 33K
tokens
Input Cost $0.08
per million tokens
Output Cost $0.5
per million tokens
Release Date Sep 18, 2026
Model Playground
Try Ternary Bonsai 2 27B instantly in your browser.
This playground uses the Puter.js AI API — no API keys or setup required.
Frequently Asked Questions
You can access Ternary Bonsai 2 27B by Prism ML through Puter.js AI API. Include the library in your web app or Node.js project and start making calls with just a few lines of JavaScript — no backend and no configuration required. You can also use it with Python or cURL via Puter's OpenAI-compatible API.
Ternary Bonsai 2 27B is free to integrate using the Puter.js AI API. With the User-Pays Model, you can add AI to your app for $0, since users cover their own AI usage through their Puter account.
| Price per 1M tokens | |
|---|---|
| Input | $0.08 |
| Output | $0.5 |
Ternary Bonsai 2 27B was created by Prism ML and released on Sep 18, 2026.
Ternary Bonsai 2 27B supports a context window of 262K tokens. For reference, that is roughly equivalent to 524 pages of text.
Ternary Bonsai 2 27B can generate up to 33K tokens in a single response.
Yes — the Ternary Bonsai 2 27B API works with any JavaScript framework, Node.js, or plain HTML through Puter.js. Just include the library and start building. See the documentation for more details.
Add Ternary Bonsai 2 27B to your app for free
Developers can integrate Ternary Bonsai 2 27B for free using the Puter.js AI API.
With the User-Pays Model, each user covers their own AI usage instead of the developer.