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

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

Frequently Asked Questions

How do I use Ternary Bonsai 2 27B?

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.

Is Ternary Bonsai 2 27B free?

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.

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

Ternary Bonsai 2 27B was created by Prism ML and released on Sep 18, 2026.

What is the context window of Ternary Bonsai 2 27B?

Ternary Bonsai 2 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 2 27B?

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

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

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.

Get started How pricing works