Community: Ternary Bonsai2 9B

ternary-bonsai-2-9b

Ternary Bonsai2 9B is Prism ML’s open-weight model derived from Qwen3.5-9B with ternary language weights. It accepts text and generates text, supports reasoning and tool calling, and offers a shared 262,144-token context window with up to 65,536 output tokens. Thinking is enabled by default and can be turned off.

Modalities

Text → Text

Input / output price

$0.104 / $0.169 per 1M

Context

262K · max output 66K

Capabilities

ReasoningTool callingLong contextOpen weights

Pricing

Billed per token actually used and deducted from your credits.

ItemUSD per 1M tokens
Input$0.104
Output$0.169
Cached input$0.052

Calculator

Drag the sliders to estimate what this model will cost.

Per request
$0.00045
Per day
$0.2236
Per month (30 days)
$6.71

Ternary Bonsai2 9B: input $0.104/M · output $0.169/M · cached input $0.052/M

Request with these settings
curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "ternary-bonsai-2-9b", "max_tokens": 800,
       "messages": [{"role": "user", "content": "…"}]}'

Code samples

OpenAI-compatible. Set the base URL to https://api.geniusrelaygpt.com/v1 and the model to ternary-bonsai-2-9b.

curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "ternary-bonsai-2-9b",
    "stream": true,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Use it in a client: Cursor · Cline · SillyTavern · Codex

Parameters

Common OpenAI parameters can be passed as-is.

temperaturetop_pmax_tokensstreamstoppresence_penaltyfrequency_penaltyseed

FAQ

How is Ternary Bonsai2 9B billed?
Input is $0.104 and output is $0.169 per million tokens; cached input is $0.052. The charge for every request is listed in Usage Logs in the console.
How long is the context window?
262K tokens. In a long conversation every turn is billed for the full input, so keep the history under control.
Does it support streaming?
Yes. Add "stream": true to the request to receive server-sent events in the OpenAI format.