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.
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.
prism-ml/ternary-bonsai-2-9bRuns on your balance at the prices above.
Settings
PrismML: Ternary Bonsai 2 9B is a compact, open-weight language model from PrismML, built on Qwen3.5. It is designed for conversational AI, reasoning, and tool use, and it uses ternary weights packed into 2 bits, which is the source of the "Ternary" in its name and the reason it stays small relative to its parameter count. The model sits in the text category, so it is aimed at language tasks rather than audio or video.
The model accepts text and images as input and produces text as output, which means it can handle multimodal prompts that mix written instructions with pictures. Its context window is 262,144 tokens, large enough to hold long documents, extended conversations, or sizeable code files in a single request. The maximum output length is 65,536 tokens, so responses can be long when the task calls for it. Reasoning is supported, and you can control whether reasoning content is returned through the include_reasoning and reasoning parameters.
Those capabilities point to a few practical uses. Conversational agents and chat assistants are a natural fit, especially where the conversation needs to stay coherent across a long history. Reasoning-heavy work such as multi-step analysis, planning, or problem decomposition is supported directly. Tool use is another core use case: you can define tools and let the model decide when to call them, which suits agents that need to query external systems. Because images are accepted as input, tasks like describing a screenshot, answering questions about a diagram, or extracting information from a photo also work. The long context makes it reasonable for summarizing or querying large documents without chunking.
You call the model through api14's OpenAI-compatible API using the model id "prism-ml/ternary-bonsai-2-9b". Because the endpoint follows the OpenAI format, existing OpenAI client libraries and code generally work with only the base URL and model id changed. The request parameters supported are frequency_penalty, include_reasoning, logprobs, max_tokens, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs, and top_p. Structured outputs and response_format let you constrain the shape of the reply, while seed and the sampling parameters give you control over reproducibility and variability.
There is no stated restriction that rules the model out for general text work, but it is a compact model, so tasks that demand the deepest available reasoning or the broadest world knowledge may be better served by a larger model. If your workload is purely text and does not benefit from image input, the multimodal support simply goes unused rather than causing a problem. For most conversational, reasoning, and tool-calling workloads within the 262,144-token context and 65,536-token output limits, it is a straightforward option to evaluate.
This community has no topics yet. Open the first one about PrismML: Ternary Bonsai 2 9B.
Written by an AI model from our catalog data and translated automatically. The prices and limits in the tables come straight from the catalog. How we make content
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-9b",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
frequency_penaltyinclude_reasoninglogprobsmax_tokenspresence_penaltyreasoningrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p