Using Ternary Bonsai 2 27B on OpenRouter
Implementation guide · Bonsai · PrismML
OpenRouter exposes Ternary Bonsai 2 27B through model ID prism-ml/ternary-bonsai-2-27b. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-10-08. Next refresh: weekly.
Quick Start
- 1
- 2Use the OpenRouter SDK or REST API to call
prism-ml/ternary-bonsai-2-27b— see the documentation for request format.
Code Examples
Pricing on OpenRouter
Capabilities
About Ternary Bonsai 2 27B
Ternary Bonsai 2 27B (also branded Bonsai 2 27B) is PrismML's flagship ternary open-weight multimodal model, announced 2026-09-17. Based on Qwen3.8 27B. PrismML reports ~9× smaller on-disk size than the full-precision counterpart and 98.2% of aggregate benchmark performance (overall 83.9 vs Qwen3.8 27B 85.4 on their thinking-mode suite). Language footprint ~5.9 GB (GGUF PTQ1_0 ~5.93–5.95 GB; PQ2_0 ~7.2 GB; MLX companion larger). Gains called out vs prior Bonsai 27B: agentic coding, multimodal reasoning, long-horizon tool use. Specs (docs/HF card): 27.36B params; 262K context; text+image in / text out; optional vision mmproj; Apache 2.0; available on Hugging Face (prism-ml/Ternary-Bonsai-2-27B-gguf + mlx-2bit).