Ternary Bonsai 27B
NativeChatprism-ml/ternary-bonsai-27bNobody serves this model right now. The market reopens when a seller comes online.
Performance
Measured from real, settled requests over the last 30 days. No synthetic benchmarks.
- Time to first token
- 3.6 s
- median ยท 7 streams
- Request latency
- 47 s
- median ยท p95 215 s ยท 228 requests
- Throughput
- 5.7 tok/s
- 219 requests
- Success rate
- 82.9%
- 275 finished requests, 30 days
Availability
Provider availability polled every minute by the platform itself, replayed hour by hour.
0% online over the last 3 days
Usage per day
What actually ran on the platform, per day over the last 30 days. Settled usage from receipts; nothing synthetic.
Show as table
| Day | input tokens | output tokens | Requests |
|---|---|---|---|
| Oct 15 | 0 | 0 | 0 |
| Oct 14 | 0 | 0 | 0 |
| Oct 13 | 0 | 0 | 0 |
| Oct 12 | 0 | 0 | 7 |
| Oct 11 | 0 | 0 | 0 |
| Oct 10 | 0 | 0 | 0 |
| Oct 9 | 0 | 0 | 0 |
| Oct 8 | 0 | 0 | 0 |
| Oct 7 | 0 | 0 | 0 |
| Oct 6 | 0 | 0 | 0 |
| Oct 5 | 0 | 0 | 0 |
| Oct 4 | 0 | 0 | 0 |
| Oct 3 | 0 | 0 | 0 |
| Oct 2 | 0 | 0 | 0 |
| Oct 1 | 0 | 0 | 0 |
| Sep 30 | 0 | 0 | 0 |
| Sep 29 | 0 | 0 | 0 |
| Sep 28 | 0 | 0 | 0 |
| Sep 27 | 0 | 0 | 0 |
| Sep 26 | 754,935 | 12,396 | 74 |
| Sep 25 | 230,002 | 3,243 | 23 |
| Sep 24 | 11,636 | 337 | 1 |
| Sep 23 | 141,852 | 3,388 | 17 |
| Sep 22 | 429,728 | 13,575 | 61 |
| Sep 21 | 74,491 | 1,204 | 13 |
| Sep 20 | 1,102 | 1,226 | 7 |
| Sep 19 | 1,695 | 92 | 9 |
| Sep 18 | 1,166 | 64 | 8 |
| Sep 17 | 44,745 | 27,808 | 46 |
| Sep 16 | 56,374 | 6,808 | 9 |
API
The API is OpenAI-compatible and uses the same price and sellers as shown here.
curl https://api.openmayhem.ai/v1/chat/completions \
-H "Authorization: Bearer $OPENMAYHEM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "prism-ml/ternary-bonsai-27b",
"messages": [{"role": "user", "content": "Hello"}],
"max_tokens": 2000
}'MCP
OpenMayhem runs its own MCP server, so Claude, Codex, Cursor and other AI apps can call this model and pay from your credit.
claude mcp add --transport http openmayhem \ https://mcp.openmayhem.ai/mcp \ --header "X-OpenMayhem-API-Key: $OPENMAYHEM_API_KEY"
Then ask your app, for example: "Use OpenMayhem Ternary Bonsai 27B to answer this." It calls chat with prism-ml/ternary-bonsai-27b. Apps that support sign-in connect without a key, and you approve spending limits once.
Full request reference
POST /v1/chat/completionsCHAT ยท openai_chat_completions +
Working request
curl https://api.openmayhem.ai/v1/chat/completions \
-H "Authorization: Bearer $OPENMAYHEM_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"model": "prism-ml/ternary-bonsai-27b",
"max_tokens": 2000,
"stream": false,
"thinking_mode": "enabled"
}'Parameters
| Parameter | Required | Type | Default | Allowed values | Limits and shape |
|---|---|---|---|---|---|
messages | Required | array | โ | โ | min items 1; max items 4096 [{"role":"user","content":"Hello"}] |
model | Required | string | โ | prism-ml/Ternary-Bonsai-27B | โ |
frequency_penalty | Optional | number | โ | โ | min -2; max 2 |
max_completion_tokens | Optional | integer | โ | โ | min 0; max 262144 |
max_tokens | Optional | integer | โ | โ | min 0; max 262144 |
metadata | Optional | object | โ | โ | JSON object; use the endpoint-specific schema shown in the examples |
min_p | Optional | number | โ | โ | min 0; max 1 |
presence_penalty | Optional | number | โ | โ | min -2; max 2 |
response_format | Optional | object | โ | โ | {"type":"json_object"} |
seed | Optional | integer | โ | โ | min 0; max 4294967295 |
stop | Optional | string | array | null | โ | โ | JSON array |
stream | Optional | boolean | false | โ | โ |
temperature | Optional | number | โ | โ | min 0; max 2 |
thinking_history | Optional | string | latest_only | latest_only, preserve | โ |
thinking_mode | Optional | string | enabled | disabled, enabled | โ |
tool_choice | Optional | string | object | โ | โ | "auto" or an OpenAI tool-choice object |
tools | Optional | array | โ | โ | min items 1; max items 128 [{"type":"function","function":{"name":"get_time","description":"Get the current time","parameters":{"type":"object","properties":{}}}}] |
top_k | Optional | integer | โ | โ | min 0; max 1000000 |
top_p | Optional | number | โ | โ | min 0.000001; max 1 |
user | Optional | string | โ | โ | min length 1; max length 512 |
Input shapes
{
"model": "prism-ml/ternary-bonsai-27b",
"tools": [
{
"type": "function",
"function": {
"name": "get_time",
"description": "Get the current time",
"parameters": {
"type": "object",
"properties": {}
}
}
}
]
}POST /v1/completionsCOMPLETIONS ยท openai_completions +
Working request
curl https://api.openmayhem.ai/v1/completions \
-H "Authorization: Bearer $OPENMAYHEM_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "prism-ml/ternary-bonsai-27b",
"prompt": "A lighthouse at dusk",
"max_tokens": 2000,
"stream": false
}'Parameters
| Parameter | Required | Type | Default | Allowed values | Limits and shape |
|---|---|---|---|---|---|
model | Required | string | โ | prism-ml/Ternary-Bonsai-27B | โ |
prompt | Required | string | โ | โ | min length 1; max length 32000 |
frequency_penalty | Optional | number | โ | โ | min -2; max 2 |
max_tokens | Optional | integer | โ | โ | min 0; max 262144 |
min_p | Optional | number | โ | โ | min 0; max 1 |
presence_penalty | Optional | number | โ | โ | min -2; max 2 |
seed | Optional | integer | โ | โ | min 0; max 4294967295 |
stop | Optional | string | array | null | โ | โ | JSON array |
stream | Optional | boolean | false | โ | โ |
temperature | Optional | number | โ | โ | min 0; max 2 |
thinking_history | Optional | string | latest_only | latest_only, preserve | โ |
thinking_mode | Optional | string | enabled | disabled, enabled | โ |
top_k | Optional | integer | โ | โ | min 0; max 1000000 |
top_p | Optional | number | โ | โ | min 0.000001; max 1 |
user | Optional | string | โ | โ | min length 1; max length 512 |
POST /v1/responsesRESPONSES ยท openai_responses +
Working request
curl https://api.openmayhem.ai/v1/responses \
-H "Authorization: Bearer $OPENMAYHEM_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "prism-ml/ternary-bonsai-27b",
"input": "Hello",
"max_output_tokens": 2000,
"stream": false
}'Parameters
| Parameter | Required | Type | Default | Allowed values | Limits and shape |
|---|---|---|---|---|---|
input | Required | string | array | โ | โ | JSON array |
model | Required | string | โ | prism-ml/Ternary-Bonsai-27B | โ |
max_output_tokens | Optional | integer | โ | โ | min 0; max 262144 |
metadata | Optional | object | โ | โ | JSON object; use the endpoint-specific schema shown in the examples |
min_p | Optional | number | โ | โ | min 0; max 1 |
stream | Optional | boolean | false | โ | โ |
temperature | Optional | number | โ | โ | min 0; max 2 |
text | Optional | object | โ | โ | JSON object; use the endpoint-specific schema shown in the examples |
thinking_history | Optional | string | latest_only | latest_only, preserve | โ |
thinking_mode | Optional | string | enabled | disabled, enabled | โ |
tool_choice | Optional | string | object | โ | โ | "auto" or an OpenAI tool-choice object |
tools | Optional | array | โ | โ | min items 1; max items 128 [{"type":"function","function":{"name":"get_time","description":"Get the current time","parameters":{"type":"object","properties":{}}}}] |
top_k | Optional | integer | โ | โ | min 0; max 1000000 |
top_p | Optional | number | โ | โ | min 0.000001; max 1 |
user | Optional | string | โ | โ | min length 1; max length 512 |
Input shapes
{
"model": "prism-ml/ternary-bonsai-27b",
"tools": [
{
"type": "function",
"function": {
"name": "get_time",
"description": "Get the current time",
"parameters": {
"type": "object",
"properties": {}
}
}
}
]
}POST /v1/chat/completionsCHAT ยท hf_multimodal_chat +
Working request
curl https://api.openmayhem.ai/v1/chat/completions \
-H "Authorization: Bearer $OPENMAYHEM_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"model": "prism-ml/ternary-bonsai-27b",
"max_tokens": 2000,
"stream": false,
"thinking_mode": "enabled"
}'Parameters
| Parameter | Required | Type | Default | Allowed values | Limits and shape |
|---|---|---|---|---|---|
messages | Required | array | โ | โ | min items 1; max items 4096 [{"role":"user","content":"Hello"}] |
model | Required | string | โ | prism-ml/Ternary-Bonsai-27B | โ |
max_tokens | Optional | integer | โ | โ | min 0; max 262144 |
min_p | Optional | number | โ | โ | min 0; max 1 |
response_format | Optional | object | โ | โ | {"type":"json_object"} |
seed | Optional | integer | โ | โ | min 0; max 4294967295 |
stream | Optional | boolean | false | โ | โ |
temperature | Optional | number | โ | โ | min 0; max 2 |
thinking_history | Optional | string | latest_only | latest_only, preserve | โ |
thinking_mode | Optional | string | enabled | disabled, enabled | โ |
tool_choice | Optional | string | object | โ | โ | "auto" or an OpenAI tool-choice object |
tools | Optional | array | โ | โ | min items 1; max items 128 [{"type":"function","function":{"name":"get_time","description":"Get the current time","parameters":{"type":"object","properties":{}}}}] |
top_k | Optional | integer | โ | โ | min 0; max 1000000 |
top_p | Optional | number | โ | โ | min 0.000001; max 1 |
Input shapes
{
"model": "prism-ml/ternary-bonsai-27b",
"tools": [
{
"type": "function",
"function": {
"name": "get_time",
"description": "Get the current time",
"parameters": {
"type": "object",
"properties": {}
}
}
}
]
}Use this model through MCP
These calls use this modelโs exact live request contract. First estimate the unchanged request, then pass the returned estimate ID and maximum cost to the paid tool. Read the complete MCP guide.
chatCHAT +
Send this object to estimate_request. Review the result, then send the next object to the named paid tool without changing request.
{
"endpoint": "CHAT",
"model": "prism-ml/ternary-bonsai-27b",
"request": {
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2000,
"stream": false,
"thinking_mode": "enabled"
}
}{
"model": "prism-ml/ternary-bonsai-27b",
"request": {
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2000,
"stream": false,
"thinking_mode": "enabled"
},
"estimate_id": "<estimate_id from estimate_request>",
"max_cost_usd": "<maximum_cost_usd from estimate_request>"
}create_responseRESPONSES +
Send this object to estimate_request. Review the result, then send the next object to the named paid tool without changing request.
{
"endpoint": "RESPONSES",
"model": "prism-ml/ternary-bonsai-27b",
"request": {
"input": "Hello",
"max_output_tokens": 2000,
"stream": false
}
}{
"model": "prism-ml/ternary-bonsai-27b",
"request": {
"input": "Hello",
"max_output_tokens": 2000,
"stream": false
},
"estimate_id": "<estimate_id from estimate_request>",
"max_cost_usd": "<maximum_cost_usd from estimate_request>"
}chatCHAT +
Send this object to estimate_request. Review the result, then send the next object to the named paid tool without changing request.
{
"endpoint": "CHAT",
"model": "prism-ml/ternary-bonsai-27b",
"request": {
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2000,
"stream": false,
"thinking_mode": "enabled"
}
}{
"model": "prism-ml/ternary-bonsai-27b",
"request": {
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2000,
"stream": false,
"thinking_mode": "enabled"
},
"estimate_id": "<estimate_id from estimate_request>",
"max_cost_usd": "<maximum_cost_usd from estimate_request>"
}Agent drop-ins
These configurations make this exact model the main model in each harness. Create an API key first and keep it in OPENMAYHEM_API_KEY.
OpenCode+
Save this as opencode.json in your project, export the key, then select openmayhem/model in /models.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"openmayhem": {
"npm": "@ai-sdk/openai-compatible",
"name": "OpenMayhem",
"options": {
"baseURL": "https://api.openmayhem.ai/v1",
"apiKey": "{env:OPENMAYHEM_API_KEY}"
},
"models": {
"prism-ml/ternary-bonsai-27b": {
"name": "Ternary Bonsai 27B",
"limit": {
"context": 262144,
"output": 32768
}
}
}
}
}
}export OPENMAYHEM_API_KEY="replace-with-your-openmayhem-api-key"
opencode --model "openmayhem/prism-ml/ternary-bonsai-27b"Claude Code+
Claude Code speaks Anthropic Messages. Claude Code Router 2.0.0 translates it to this model's Chat Completions endpoint and removes Claude-only cache metadata.
{
"LOG": false,
"API_TIMEOUT_MS": 3600000,
"Providers": [
{
"name": "openmayhem",
"api_base_url": "https://api.openmayhem.ai/v1/chat/completions",
"api_key": "$OPENMAYHEM_API_KEY",
"models": [
"prism-ml/ternary-bonsai-27b"
],
"transformer": {
"use": [
"cleancache"
]
}
}
],
"Router": {
"default": "openmayhem,prism-ml/ternary-bonsai-27b",
"background": "openmayhem,prism-ml/ternary-bonsai-27b",
"think": "openmayhem,prism-ml/ternary-bonsai-27b",
"longContext": "openmayhem,prism-ml/ternary-bonsai-27b",
"longContextThreshold": 229376
}
}npm install -g @anthropic-ai/claude-code @musistudio/claude-code-router@2.0.0
export OPENMAYHEM_API_KEY="replace-with-your-openmayhem-api-key"
export MAX_THINKING_TOKENS=0
export CLAUDE_CODE_MAX_CONTEXT_TOKENS=262144
export CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT=1
ccr start &
ccr code
ccr stopCodex CLI+
Codex 0.80.0 is the tested Chat Completions compatibility release for this model. The key stays in the environment; config.toml contains no secret.
model = "prism-ml/ternary-bonsai-27b"
model_provider = "openmayhem"
model_context_window = 262144
[model_providers.openmayhem]
name = "OpenMayhem"
base_url = "https://api.openmayhem.ai/v1"
env_key = "OPENMAYHEM_API_KEY"
wire_api = "chat"
request_max_retries = 4
stream_max_retries = 5
stream_idle_timeout_ms = 3600000export OPENMAYHEM_API_KEY="replace-with-your-openmayhem-api-key"
npx -y @openai/codex@0.80.0Hermes Agent+
Hermes uses OpenMayhem as a named custom provider over Chat Completions. The key stays in OPENMAYHEM_API_KEY and is not stored in YAML.
providers:
openmayhem:
api: "https://api.openmayhem.ai/v1"
key_env: OPENMAYHEM_API_KEY
transport: chat_completions
default_model: "prism-ml/ternary-bonsai-27b"
models:
"prism-ml/ternary-bonsai-27b":
context_length: 262144
model:
default: "prism-ml/ternary-bonsai-27b"
provider: custom:openmayhem
api_mode: chat_completions
context_length: 262144
max_tokens: 32768curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
export OPENMAYHEM_API_KEY="replace-with-your-openmayhem-api-key"
hermes chatOpenClaw+
Merge this provider into openclaw.json. apiKey is an environment SecretRef, so the resolved key is not written to the file.
{
"models": {
"mode": "merge",
"providers": {
"openmayhem": {
"baseUrl": "https://api.openmayhem.ai/v1",
"apiKey": "${OPENMAYHEM_API_KEY}",
"api": "openai-completions",
"authHeader": true,
"timeoutSeconds": 3600,
"models": [
{
"id": "prism-ml/ternary-bonsai-27b",
"name": "Ternary Bonsai 27B",
"reasoning": true,
"input": [
"text"
],
"contextWindow": 262144,
"contextTokens": 229376,
"maxTokens": 32768,
"compat": {
"supportsTools": true,
"supportsTemperature": true
}
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "openmayhem/prism-ml/ternary-bonsai-27b"
}
}
}
}export OPENMAYHEM_API_KEY="replace-with-your-openmayhem-api-key"
openclaw agent --local --model "openmayhem/prism-ml/ternary-bonsai-27b" --message "Hello"About this model
A 27B multimodal reasoning model compressed into a laptop-sized ternary build.
- Maker
- Prism ML
- Family
- Qwen3.6
- License
- Apache-2.0
- Model size
- 27B / 1.71-bit
- Hardware to serve it
- CPU ยท 16 GB RAM
How it is served
- Registered tiers
- T1 ยท T4
- Live tiers
- Not advertised
- Quantizations
- int2
- Live routes
- 0
- Live providers
- 0
- Prompt processing
- Provider-visible
- Context capacity
- 262.1K
Routing providers
Accepted request parameters
From the network's signed model contract; anything else is rejected before a provider runs.
frequency_penaltyinputmax_completion_tokensmax_output_tokensmax_tokensmessagesmetadatamin_pmodelpresence_penaltypromptresponse_formatseedstopstreamtemperaturetextthinking_historythinking_modetool_choicetoolstop_ktop_puserPrice versions
| Version | From | Until |
|---|---|---|
| v377 | 2026-09-26 12:41 UTC | current |
| v376 | 2026-09-26 11:40 UTC | 2026-09-26 12:41 UTC |
| v375 | 2026-09-26 10:40 UTC | 2026-09-26 11:40 UTC |
| v374 | 2026-09-26 09:40 UTC | 2026-09-26 10:40 UTC |
| v373 | 2026-09-26 08:40 UTC | 2026-09-26 09:40 UTC |
| v372 | 2026-09-26 07:40 UTC | 2026-09-26 08:40 UTC |
| v371 | 2026-09-26 06:40 UTC | 2026-09-26 07:40 UTC |
| v370 | 2026-09-26 05:40 UTC | 2026-09-26 06:40 UTC |
| v369 | 2026-09-26 04:40 UTC | 2026-09-26 05:40 UTC |
| v368 | 2026-09-26 03:40 UTC | 2026-09-26 04:40 UTC |
| v367 | 2026-09-26 02:40 UTC | 2026-09-26 03:40 UTC |
| v366 | 2026-09-26 01:45 UTC | 2026-09-26 02:40 UTC |
Questions and answers
What does Ternary Bonsai 27B cost on OpenMayhem?
Ternary Bonsai 27B currently costs $0.0075 / M input ยท $0.045 / M output. There is no subscription: you buy credit and every request settles against a signed receipt for exactly what it used. Prices are versioned, and the full price history is published on this page.
Is Ternary Bonsai 27B available right now?
No providers are online for Ternary Bonsai 27B at this moment. Availability is polled every minute, and requests are rejected upfront rather than queued indefinitely.
How do I use Ternary Bonsai 27B?
Send an OpenAI-compatible request to https://api.openmayhem.ai/v1/chat/completions with "model": "prism-ml/ternary-bonsai-27b" and your API key. Existing OpenAI SDKs work by changing the base URL. Create an account to get a key and starting credit.
Who serves Ternary Bonsai 27B?
Independent providers on the OpenMayhem network run the model on their own hardware. Over the last 30 days, 2 providers served it; the providers table on this page is attributed from signed receipts, not self-reporting.
Are my prompts stored?
OpenMayhem does not persist prompt or completion text. Requests are proxied to the serving provider and only billing metadata is retained: usage counts, the price applied, and the provider's signed receipt. The provider that serves a request necessarily processes its content.
