Using Ternary Bonsai 2 27B on OpenRouter

Implementation guide · Bonsai · PrismML

ServerlessOpen Source

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. 1
    Create an account at OpenRouter and generate an API key.
  2. 2
    Use the OpenRouter SDK or REST API to call prism-ml/ternary-bonsai-2-27b — see the documentation for request format.

Code Examples

See OpenRouter documentation for integration details.

Pricing on OpenRouter

Capabilities

VisionMultimodalReasoningJSON / Tool use

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

Model Specs

Released2026-09-17
Parameters27.4B
Context256K

Provider

OpenRouter

OpenRouter, Inc.

New York, NY, USA