We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

PrismML: Ternary Bonsai 2 27B

prism-ml/ternary-bonsai-2-27b
TextInput: text · imageToolsReasoning262KAdded Sep 18, 2026

Try PrismML: Ternary Bonsai 2 27B now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

PrismML: Ternary Bonsai 2 27B at a glance

  • Input price is 83% lower than the median of 434 Text models.
  • Context window of 262,144 tokens, enough for long documents and multi-turn conversations.
  • Supports tool (function) calling for agents and integrations.
  • Supports structured JSON output with a schema.
  • Supports reasoning effort control.
  • Accepts images as input (vision).
  • A typical request (1,000 input / 500 output tokens) costs about $0.00114.

About PrismML: Ternary Bonsai 2 27B

PrismML: Ternary Bonsai 2 27B is a text-focused model from PrismML, released by the provider on 18 September 2026. It is a 27B-parameter reasoning model derived from Qwen3.8-27B, and it sits in the text category on api14. If you are choosing a model for a text pipeline, the important context is that this one is built for reasoning work rather than general chat alone.

The model accepts text and images as input and returns text. Its context window is 262,144 tokens, and the maximum output is 32,768 tokens. According to the provider description, it supports coding, mathematics, tool calling, and image understanding. Ternary compression is part of how the model is built, which is worth noting if model size or deployment characteristics matter to you. Reasoning behaviour is exposed through request parameters rather than being fixed, so you can control how much reasoning the model performs.

Those capabilities point to a few practical uses. Because it handles code and mathematics, it fits tasks such as code generation, code explanation, and step-by-step problem solving where the reasoning trace matters. Image understanding means it can also take screenshots, diagrams, or other images alongside a text prompt, which is useful for tasks like reading a chart or interpreting a UI screenshot. Tool calling and structured outputs make it a candidate for agents and pipelines that need the model to call functions or return data in a defined shape rather than free text.

You call it through api14's OpenAI-compatible API using the model id "prism-ml/ternary-bonsai-2-27b". The request parameters it supports are frequency_penalty, include_reasoning, logprobs, max_tokens, presence_penalty, reasoning, reasoning_effort, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs, and top_p. If you already use an OpenAI-style client, the main change is the model id and the parameters you set. Use max_tokens to cap output, since the maximum output is 32,768 tokens even though the context window is much larger.

There are limits worth planning around. Input is text and image, but output is text only, so it will not produce images or audio. If your workload is purely conversational and does not need reasoning, tool calling, or image input, a simpler text model may be a better fit. For long documents, the 262K-token context window is generous, but remember that the 32,768-token output cap applies separately. The provider description is the source for the coding, mathematics, tool calling, and image understanding claims, so treat those as the stated scope rather than measured performance.

How to call the PrismML: Ternary Bonsai 2 27B API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "prism-ml/ternary-bonsai-2-27b".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.chat.completions.create({
  "model": "prism-ml/ternary-bonsai-2-27b",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

frequency_penaltyinclude_reasoninglogprobsmax_tokenspresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p

Specifications

Context length
262,144
Max output
32,768
Input
text, image
Output
text

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

PrismML: Ternary Bonsai 2 27B: frequently asked questions

How much does the PrismML: Ternary Bonsai 2 27B API cost?
PrismML: Ternary Bonsai 2 27B costs Input $0.26 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of PrismML: Ternary Bonsai 2 27B?
PrismML: Ternary Bonsai 2 27B reads up to 262,144 tokens per request: prompt, history and documents together. It writes up to 32,768 output tokens per response.
What can PrismML: Ternary Bonsai 2 27B do?
PrismML: Ternary Bonsai 2 27B accepts text, image and returns text. It supports tool calling, structured JSON output, reasoning effort control.
How do I call PrismML: Ternary Bonsai 2 27B from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "prism-ml/ternary-bonsai-2-27b". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to PrismML: Ternary Bonsai 2 27B?
Comparable Text models at a similar price: DeepSeek: DeepSeek Flash Latest, Google: Gemma 4 31B, Mistral: Codestral 2508 (batch). Each runs through the same API key, so switching is one string.

PrismML: Ternary Bonsai 2 27B community

New topic

This community has no topics yet. Open the first one about PrismML: Ternary Bonsai 2 27B.