How to Use Ternary Bonsai 2 9B in Grok
Ternary Bonsai 2 9B suits focused coding tasks, everyday math, and tool-assisted document work. Its 262,144-token context accommodates substantial reference material, while thinking mode needs enough output space to finish.
Prompts to try with Ternary Bonsai 2 9B in Grok
Copy an example into Grok, or ask in your own words.
Use Ternary Bonsai 2 9B to answer questions about the policy text I paste next. Quote the relevant passage for each answer and say when the policy does not provide enough information.
Use Ternary Bonsai 2 9B to check this calculation: 24 cartons contain 18 units each, and 7.5% of the units are damaged. Show the total, expected damaged quantity, and the rounding decision needed for whole units.
Use Ternary Bonsai 2 9B to rewrite my next message for a customer who has reported a delayed delivery. Keep it under 100 words and preserve every date and commitment.
Use Ternary Bonsai 2 9B to extract decisions, owners, and deadlines from the meeting transcript I paste next. Mark unstated owners or deadlines as unknown.
Use Ternary Bonsai 2 9B with thinking turned off to classify my next support message as billing, delivery, technical, or unclear. Return the category and one sentence quoting the evidence.
How to set up Ternary Bonsai 2 9B in Grok
Pick the way that suits you. Each takes about two minutes.
Use the Grok connector
- Add a custom connector
In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.
https://api.spiral.ai/mcp
- Sign in to Spiral and approve
Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.
- Check that it is connected
Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.
Use the Spiral skill
- Send Grok this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Ternary Bonsai 2 9B
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "openrouter", "model": "prism-ml/ternary-bonsai-2-9b", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Grok finds Ternary Bonsai 2 9B on Spiral, shows the price and runs it.
Ternary Bonsai 2 9B providers and prices
Spiral runs Ternary Bonsai 2 9B through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.000697 per run at the default inputs. $0.104 per 1M input tokens, $0.169 per 1M output tokens.
Settings you can ask for
Ask Grok for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | ||
| Top k | a whole number from 0 | ||
| Top p | 0 to 1 | ||
| Logprobs | on or off | ||
| Max tokens | 1 to 65536 | The most output tokens to generate. | |
| Temperature | 0 to 2 | ||
| Top logprobs | 0 to 20 | ||
| Presence penalty | -2 to 2 | ||
| Frequency penalty | -2 to 2 | ||
| Repetition penalty | 0 to 2 |
Every API field of PrismML: Ternary Bonsai 2 9B is on its tool page: open its card above.
What can you do with Ternary Bonsai 2 9B in Grok?
Ternary Bonsai 2 9B can turn supplied text into concise explanations, extracted details, and checked calculations. State the audience, answer length, and evidence you want included.
Small code fixes
Ask Ternary Bonsai 2 9B to fix one function against a clear requirement. Request a minimal patch and an explanation of the behavior it changes.
Test case drafts
Give Ternary Bonsai 2 9B a function and its expected behavior. Ask for tests covering normal inputs, boundary values, and failures.
Everyday math checks
Use Ternary Bonsai 2 9B to work through quantities, percentages, and unit conversions. Require the formula, substituted values, and final units.
Questions about reference text
Supply a policy or product specification to Ternary Bonsai 2 9B. Ask for an answer with supporting passages and a clear statement when the text leaves something unresolved.
Document extraction
Ask Ternary Bonsai 2 9B to extract dates, organizations, obligations, and action items from document text. Require missing details to remain explicitly unknown.
Constrained rewrites
Give Ternary Bonsai 2 9B a draft, a target audience, and a firm length limit. Ask it to preserve names, numbers, and commitments while removing repetition.
Support request triage
Use Ternary Bonsai 2 9B to sort request text into a small set of defined categories. Ask for the triggering passage and send ambiguous requests for review.
Tool-assisted document checks
Have Ternary Bonsai 2 9B extract a reference number from text, request the corresponding record through an available tool, and summarize any discrepancy.
More on Ternary Bonsai 2 9B and Grok
Overview
Ternary Bonsai 2 9B in other agents
Questions about Ternary Bonsai 2 9B in Grok
Can Grok use Ternary Bonsai 2 9B?
Yes. Add Spiral to Grok as an MCP server, and Grok can find and run Ternary Bonsai 2 9B like any built-in tool.
How much does Ternary Bonsai 2 9B cost in Grok?
Up to $0.000697 per run at the default inputs. $0.104 per 1M input tokens, $0.169 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok plan is separate.
Do I need an OpenRouter account to use Ternary Bonsai 2 9B in Grok?
No. Spiral runs Ternary Bonsai 2 9B on its own OpenRouter account. You sign in to Spiral once and never paste a key.
How long does it take to set up Ternary Bonsai 2 9B in Grok?
About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.
Does Grok wait while Ternary Bonsai 2 9B runs?
Ternary Bonsai 2 9B runs in the background. Grok starts the run, checks on it and gives you the text, json when it's ready.
What is Ternary Bonsai 2 9B good at?
Focused coding, everyday math, and tasks with explicit instructions are sensible starting points. PrismML reports that its coding, math, and instruction-following benchmark results match or exceed the corresponding full-precision model.
How much context can Ternary Bonsai 2 9B handle?
The documented maximum context is 262,144 tokens. For document questions, ask it to identify the supporting passage before writing its answer.
Why can a short question need a large output allowance?
Thinking mode is enabled by default, and even simple prompts can consume more than 3,000 thinking tokens. PrismML recommends allowing at least 8,192 output tokens with thinking enabled.
Which sampling settings should I start with?
For thinking mode, start with temperature 1.0, top-p 0.95, and top-k 20. Without thinking, use temperature 0.7, top-p 0.80, and top-k 20.
What is a documented weakness of Ternary Bonsai 2 9B?
It can repeat or get stuck reasoning on some prompts. PrismML specifically warns against temperature 0 with thinking enabled.
Start using Ternary Bonsai 2 9B in Grok
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Grok:
set up https://spiral.ai/SKILL.md


