PrismML / prismml/ternary-bonsai-2-27b

Ternary Bonsai 2 27B - access through LLMTR

Ternary Bonsai 2 27B is PrismML's compressed build of Qwen3.8 27B: its weights take only the values -1, 0 and +1 (about 1.76 effective bits per weight), making it more than nine times smaller than the full-precision original. It offers a 262,144-token context window, text and image input with text output, native tool calling including forced tool_choice and parallel calls, JSON object mode and JSON Schema structured output. Step-by-step reasoning is ON by default; the reasoning trace is returned separately from the answer, reasoning tokens are billed as output, and reasoning can be switched off per request. Graded reasoning_effort levels are not supported, only on or off. The context window is SHARED between prompt and output: there is no separate output ceiling beneath it, and the largest output you can request shrinks as the prompt grows. No prompt-cache discount is applied; every request bills at the full input rate.

Technical specifications

Canonical IDprismml/ternary-bonsai-2-27b
ProviderPrismML
Context window262,144 tokens
OperationsCHAT_COMPLETIONS
Modalitiestext, image

Pricing

An 8% platform margin applies to credit top-ups; model usage prices are not separately marked up.

OperationMetricUnitPrice
CHAT_COMPLETIONSINPUT_TEXTPER_1M_TOKENS$0.075000
CHAT_COMPLETIONSOUTPUT_TEXTPER_1M_TOKENS$0.500000

Example usage

With existing OpenAI SDK flows, change only the base URL and model identifier.

curl https://llmtr.com/v1/chat/completions   -H "Authorization: Bearer llmtr-your_key"   -H "Content-Type: application/json"   -d '{"model":"prismml/ternary-bonsai-2-27b","messages":[{"role":"user","content":"Hello"}]}'

Related models