Ship a Full-Stack App with One Prompt

Copy this prompt into your AI coding agent, or open it in one below.

Give this to your AI Create a to-do list app using Puter.js

Coding manually? see the guide

Prism ML

Prism ML: Ternary Bonsai 27B

prism-ml/ternary-bonsai-27b

Try Ternary Bonsai 27B for free in your browser, and add it to your app for free with Puter.js AI API.

Try it free Add to your app
// 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-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-27b"
        }).then(response => {
            document.body.innerHTML = response.message.content;
        });
    </script>
</body>
</html>

Model Card

Ternary Bonsai 27B is PrismML's ternary-weight build of Qwen3.6 27B, compressing the model to roughly 1.71 bits per weight while retaining about 95% of full-precision quality.

Across a 15-benchmark suite covering knowledge, reasoning, math, coding, instruction following, tool calling, and vision, it averages 80.49 in thinking mode, including 99.20 on MATH-500, 93.90 on HumanEval+, 82.75 on LiveCodeBench, and 74.41 on BFCL v3 for tool calling. It also handles vision input, scoring 68.96 on MMMU-Pro.

The model supports a 262K-token context window and structured JSON output, making it suited for long-document analysis, coding agents, and tool-calling workflows. PrismML also offers a 1-bit variant of Bonsai 27B with a smaller footprint; the ternary build trades some of that compression for higher accuracy across the same benchmark suite.

Context Window 262K

tokens

Max Output 249K

tokens

Input Cost $0

per million tokens

Output Cost $0

per million tokens

Release Date Jul 16, 2026

 

Try Ternary Bonsai 27B for free

Try Ternary Bonsai 27B instantly in your browser.
This playground uses the Puter.js AI API — no API keys or setup required.

Chat prism-ml/ternary-bonsai-27b
Prism ML
Chat with Ternary Bonsai 27B
Powered by Puter.js

More AI Models From Prism ML

Find other Prism ML models →

Chat

Ternary Bonsai 2 9B

Ternary Bonsai 2 9B is a multimodal language model from PrismML, part of its Bonsai 2 family. It is derived from Alibaba's Qwen3.5-9B and released under the Apache 2.0 license. PrismML says it improves reasoning, visual understanding and tool calling over the earlier Bonsai models, and that the 9B uses about 40% fewer tokens on standard instruction-following and everyday math tasks. It accepts text and image input, returns text, and has a context window of roughly 262K tokens. It supports tool calling, structured output and streaming. It suits developers who want a small, inexpensive model for assistants, tool-calling workflows and concise answers.

Chat

Ternary Bonsai 2 27B

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.

Frequently Asked Questions

How do I use Ternary Bonsai 27B?

You can access Ternary Bonsai 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.

Can I try Ternary Bonsai 27B for free?

Ternary Bonsai 27B is free to try with a Puter account. Every account includes a free AI allowance, and you can chat with it in the playground on this page. You can upgrade your account anytime for a larger allowance.

Is the Ternary Bonsai 27B API free for developers?

Ternary Bonsai 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.

What is the pricing for Ternary Bonsai 27B?
Ternary Bonsai 27B costs $0 per 1M input tokens and $0 per 1M output tokens.
Price per 1M tokens
Input$0
Output$0
Who created Ternary Bonsai 27B?

Ternary Bonsai 27B was created by Prism ML and released on Jul 16, 2026.

What is the context window of Ternary Bonsai 27B?

Ternary Bonsai 27B supports a context window of 262K tokens. For reference, that is roughly equivalent to 524 pages of text.

What is the max output length of Ternary Bonsai 27B?

Ternary Bonsai 27B can generate up to 249K tokens in a single response.

Does it work with React / Vue / Vanilla JS / Node / etc.?

Yes — the Ternary Bonsai 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 27B to your app for free

Developers can integrate Ternary Bonsai 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.

Get started How pricing works