Skip to content

Ternary Bonsai 2 27B

ToolsReasoningJSON
prism-ml/ternary-bonsai-2-27b

Prism Ml · 262K context · text + image → text · Sep 2026 · 1 upstreams

Bonsai 2 27B is PrismML's 27B reasoning model derived from Qwen3.8-27B and compressed to ternary weights. It supports coding, math, tool calling, and image input with a 262K-token context window.

Bring your own keyAnyRouter has no platform route for Ternary Bonsai 2 27B. Requests use your key and bill your provider account. AnyRouter adds no fee.
context
262K
input / 1M (list)
$0.07
output / 1M (list)
$0.50
routes
1
speed, 24h
—

Routes, in fallback orderThe first healthy route answers. Add a key to use a BYOK route.

1
  1. 1OpenRouterYour key · not addedBYOK–

Try itOne message, one streamed reply

Type a message and see the reply stream in here.

Uptime, last 48 hours

OKDegradedDown—

Details

Owner
Prism Ml
Kind
Vision
Released
Sep 2026
Context
262K
Data policy
Provider retention
Endpoint
/api/v1/chat/completions

Quick start

Code

POST /api/v1/chat/completionsSDK docs
import osfrom openai import OpenAI client = OpenAI(    api_key=os.environ["ANYROUTER_API_KEY"],    base_url="https://anyrouter.dev/api/v1",) resp = client.chat.completions.create(    model="prism-ml/ternary-bonsai-2-27b",    messages=[{"role": "user", "content": "Say hi in 3 words."}],)print(resp.choices[0].message.content)
More details: pricing table, filters, performance, links

Upstreams and pricing

ProviderAccessStatusProvider details
Your own key (BYOK) — provider bills you, $0 AnyRouter fee
0.07 list0.50 list

Which key answers this model

Your request → your own keys first (none added yet). The provider bills you; AnyRouter adds $0.

If none of your keys can serve it → the shared pool: keys other people donated. You pay the list price from AnyRouter credits, and the donor earns a reward.

Pool for this model: not covered yet.

Share cards
Ternary Bonsai 2 27B share card
Ternary Bonsai 2 27B
OpenRouter upstream share card
OpenRouter upstream