Ternary Bonsai 2 27B via the Tokenator API
What the model is for
Bonsai 2 27B is a 27B-parameter reasoning model from PrismML derived from Qwen3.8-27B. It supports coding, mathematics, tool calling, and image understanding with a 262K-token context window. Ternary compression shrinks the language-model weights to roughly 8.5 GB while retaining 98.2% of the base model's average score across PrismML's 14 thinking-mode benchmarks, enabling efficient inference on consumer hardware. The model thinks by default and defaults to xhigh reasoning effort.
Specification
| Full name | Ternary Bonsai 2 27B |
| API ID | ternary-bonsai-2-27b |
| Model vendor | PrismML |
| Type | Text model (chat / completions) |
| Context window | 262.1K tokens |
| Max output | 32.8K tokens |
| Image input | yes |
| Tokenator usage multiplier | 1.5× |
| Input modalities | text, image |
| Aliases | cursor-ternary-bonsai-2-27b |
| Supported API formats | /v1/chat/completions /v1/responses /v1/messages |
| Upstream providers | 1 |
| Current status | available |
| Data updated | 2026-09-19 |
Upstream providers
| Provider | Multiplier |
|---|---|
| Unified LLM API | 1.5× |
A request goes to the first available provider by priority; if it fails, Tokenator switches to the next one.
Example request
curl https://api.tokenator.top/v1/chat/completions \ -H "Authorization: Bearer sk-your-tokenator-key" \ -H "Content-Type: application/json" \ -d '{ "model": "ternary-bonsai-2-27b", "messages": [{"role": "user", "content": "Hello"}] }'
Compatible tools
The model can be used in any tool that accepts a custom base URL: Claude Code, Codex CLI, OpenCode, Cursor, Cline, Kilo Code, Cherry Studio, DeepSeek Harness, Hermes, Pi, OpenClaw.
See also
FAQ about Ternary Bonsai 2 27B
What is the API ID of Ternary Bonsai 2 27B?
ternary-bonsai-2-27b — put this into the model field of your request.
What context window does Ternary Bonsai 2 27B have?
262.1K tokens; max output is 32.8K tokens.
How many tokens will a request cost?
(input + output) × 1.5×. See the documentation for details.
Which tools support this model?
Any tool that accepts a custom base URL: Claude Code, Codex CLI, OpenCode, Cursor, Cline, Kilo Code. Setup guides are in the integrations section.