Ternary Bonsai 2 9B: AI model
- Context window:
- 262,144 tokens
- Input:
- $0.08/1M tokens
- Output:
- $0.13/1M tokens
- Type:
- text, image
- Vision
- Tools
- Streaming
- Long context
Thinking levels:
Ternary Bonsai 2 9B is a AI model from PrismML, available through Hormouz via an OpenAI-compatible API with stable access from inside Iran.
Ternary Bonsai 2 9B is PrismML’s compact, open-weight language model for conversational AI, reasoning, and tool use. Built on Qwen3.5, it uses ternary weights packed into 2 bits for efficient...
Quickstart
curl https://api.hormouz.net/v1/chat/completions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "prism-ml/ternary-bonsai-2-9b",
"messages": [{"role": "user", "content": "Hello!"}]
}'Specs
| Vendor | PrismML |
|---|---|
| Type | Text, Image |
| Context window | 262,144 tokens |
| Pricing | $0.08/M in · $0.13/M out |
| API | Chat Completions |
| Capabilities | Streaming · Vision · Tools |
Sizes in this family
| Size | Context window | Pricing |
|---|---|---|
| 9B | 262,144 | $0.08/M in · $0.13/M out |
| 27B | 262,144 | $0.07/M in · $0.50/M out |
Code example
cURL
curl https://api.hormouz.net/v1/chat/completions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "prism-ml/ternary-bonsai-2-9b",
"messages": [{"role": "user", "content": "Hello!"}]
}'Python
from openai import OpenAI
client = OpenAI(api_key="ng-YOUR_API_KEY", base_url="https://api.hormouz.net/v1")
response = client.chat.completions.create(
model="prism-ml/ternary-bonsai-2-9b",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)JavaScript
import OpenAI from "openai";
const client = new OpenAI({ apiKey: "ng-YOUR_API_KEY", baseURL: "https://api.hormouz.net/v1" });
const response = await client.chat.completions.create({
model: "prism-ml/ternary-bonsai-2-9b",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);Buy the Ternary Bonsai 2 9B API, paid in rial
- Buy credit with an Iranian bank card; no foreign card or account needed.
- One Hormouz key reaches Ternary Bonsai 2 9B and nearly 700 other models, and you pay only for what you use.
- No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Use via Hormouz
Connect to this model and nearly 700 others with one API key, then see usage down to each request.
Request company accessUpdated 2026-11-27