PrismML: Ternary Bonsai 2 27B: AI model
Ternary Bonsai 2 27B is a compressed 27B reasoning model derived from Qwen3.8-27B from PrismML with a 262K-token context window. Reachable from inside Iran through Hormouz.
- Context window:
- 262,144 tokens
- Input:
- $0.07/1M tokens
- Output:
- $0.5/1M tokens
- Type:
- text, image
- Vision
- Tools
- Streaming
- Long context
Thinking levels: xhigh · medium
Ternary Bonsai 2 27B is PrismML's ternary-compressed version of Qwen3.8-27B. Compression shrinks its weights to about 8.5 GB while keeping roughly 98% of the base model's average score on PrismML's reasoning benchmarks, which makes it cheap to serve. It thinks before answering by default, handles coding, maths, tool calling and images, and offers a 262K-token context.
It accepts text and image input and returns text, and supports tool calling, structured JSON output and streaming. Reasoning can be switched on when a problem needs more thought and left off when speed matters. Ternary Bonsai 2 27B is commonly used for low-cost reasoning, maths, coding help, tool-using agents and image questions. Hormouz serves it behind an OpenAI-compatible API: point your base URL at Hormouz, drop in a Hormouz key, and existing OpenAI SDK code runs without changes.
Pricing is usage-based: $0.075 per million input tokens and $0.5 per million output tokens. There is no fixed monthly fee, and you pay only for the tokens you use. Hormouz provides stable access to the model from inside Iran, with no foreign credit card or circumvention tooling required.
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...
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-27b",
"messages": [{"role": "user", "content": "Hello!"}]
}'Specs
| Vendor | PrismML |
|---|---|
| Type | Text, Image |
| Context window | 262,144 tokens |
| Pricing | $0.07/M in · $0.50/M out |
| API | Chat Completions |
| Capabilities | Streaming · Vision · Tools |
Code example
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-27b",
"messages": [{"role": "user", "content": "Hello!"}]
}'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-27b",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)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-27b",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);Buy the PrismML: Ternary Bonsai 2 27B API, paid in rial
- Buy credit with an Iranian bank card; no foreign card or account needed.
- One Hormouz key reaches PrismML: Ternary Bonsai 2 27B and 600+ 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 600+ others with one API key, then see usage down to each request.
Request company accessFAQ
- How much does Ternary Bonsai 2 27B cost?
- Pricing is usage-based: $0.075 per million input tokens and $0.5 per million output tokens. There is no fixed monthly fee, and you pay only for the tokens you use.
- How do I access Ternary Bonsai 2 27B from inside Iran?
- Create an account on Hormouz and generate an API key. Hormouz provides a stable path to the model from inside Iran, with no foreign credit card or circumvention tooling required.
- Is Ternary Bonsai 2 27B compatible with OpenAI code?
- Yes. Hormouz exposes an OpenAI-compatible API. Point your base URL at Hormouz and swap in your Hormouz key. Your existing SDKs and code run without a rewrite.
- What context window and capabilities does Ternary Bonsai 2 27B have?
- It has a 262K-token context window, accepts text and image input, and supports tool calling, structured JSON output and streaming. Reasoning can be switched on when a problem needs more thought and left off when speed matters.
- What is Ternary Bonsai 2 27B good for?
- Typical uses are low-cost reasoning, maths, coding help, tool-using agents and image questions.
Updated 2026-10-13