Ternary Bonsai 2 27B
Ternary Bonsai 2 27B (prism-ml/ternary-bonsai-2-27b) is a multimodal language model from PrismML on the OceanToken API at $0.075 per 1M input tokens and $0.50 per 1M output tokens, with a 262K-token context window and reasoning, tool calling, structured outputs and image input.
- Context window
- 262K tokens
- Max output
- 33K tokens
- Input
- text + image
- Output
- text
LearnWhat Ternary Bonsai 2 27B is and what it can do
What is Ternary Bonsai 2 27B?
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.
- Per 1M input / output tokens
- $0.075 / $0.50
- Context window
- 262K
- Input
- text + image
Starting price
Up to 33K output per reply
Output: text
What Ternary Bonsai 2 27B can do
Multi-step reasoning
Tool-using agents
Structured outputs (JSON)
Image understanding
CompareHow its price and specs stack up
Ternary Bonsai 2 27B vs similar models: price
What you pay for Ternary Bonsai 2 27B and the models most like it: the same kind of work, from the families we feature, priced within about three times of it.
Ternary Bonsai 2 27BPrismML
GPT-6 LunaOpenAI
Qwen3.8 FlashQwen
DeepSeek V4.1 Flash (1017)DeepSeek
GLM 5.3 FlashZ.ai
MiniMax M3MiniMax
Ternary Bonsai 2 27B vs GPT-6 Luna
GPT-6 Luna costs $0.27: 6% less than Ternary Bonsai 2 27B.
−10% at the top tier
Ternary Bonsai 2 27B vs Qwen3.8 Flash
Qwen3.8 Flash costs $0.295: 1.0× the price of Ternary Bonsai 2 27B.
−25% at the top tier
Ternary Bonsai 2 27B vs DeepSeek V4.1 Flash (1017)
DeepSeek V4.1 Flash (1017) costs $0.525: 1.8× the price of Ternary Bonsai 2 27B.
−40% at the top tier
Ternary Bonsai 2 27B vs GLM 5.3 Flash
GLM 5.3 Flash costs $0.325: 1.1× the price of Ternary Bonsai 2 27B.
Ternary Bonsai 2 27B vs MiniMax M3
MiniMax M3 costs $0.75: 2.6× the price of Ternary Bonsai 2 27B.
Ternary Bonsai 2 27B specs
The technical card for Ternary Bonsai 2 27B, from the OceanToken catalog.
- Context window
- 262K tokens
- Max output
- 33K tokens
- Input
- text, image
- Output
- text
- Reasoning
- Yes
- Tool calling
- Yes
- Structured outputs
- Yes
- Prompt caching
- Reads $0.0375
262,144
32,768
reasoning_effort
tool_choice
response_format
official price, at every tier
Ternary Bonsai 2 27B model ID and endpoint
- OceanToken model ID
prism-ml/ternary-bonsai-2-27b- OpenAI-compatible base URL
https://api.oceantoken.ai/v1- Endpoint
POST /v1/chat/completions
Buy and buildWhat it costs and how to send your first request
Ternary Bonsai 2 27B API pricing
Prices come from the OceanToken catalog as of November 5, 2026. You pay per use from a prepaid balance, with no subscription.
- Input
- $0.075 / 1M tokens
- Output
- $0.50 / 1M tokens
- Cached input
- $0.0375 / 1M tokens
OceanToken starting price as of November 5, 2026. The console always shows the current price. How tiers work
Add credits Specs, request sample and alternatives in the docsTernary Bonsai 2 27B cost calculator
Pick a typical request or enter your own token counts. The calculator uses the starting prices on this page and shows the same workload on the models compared above.
- Per request
- $0.0065
- Per month
- $6.50
The same workload per month
At the starting price (tier 1). Cached input is billed at the cache-read price; cache writes are left out because they depend on how often your prompt prefix changes. Your console shows the rate for your tier.
What a request costs
| Request | Input tokens per request | Output tokens per request | Cost |
|---|---|---|---|
| Chat reply | 2,000 | 600 | $0.00045 |
| Agent step | 60,000 | 4,000 | $0.0065 |
Input and output tokens at the starting price above, with no caching.
How to use Ternary Bonsai 2 27B on OceanToken
Three steps from no account to a working request. The same key and balance work for every model in the catalog.
Create an account and get an API key
Create an OceanToken account, then create a key. One key works for every model your account can use.
Add credits
OceanToken is prepaid: add credits, and each request is billed from that balance. Your console shows the rate for your tier.
Call Ternary Bonsai 2 27B from your code
Point an OpenAI SDK at
https://api.oceantoken.ai/v1and use the model IDprism-ml/ternary-bonsai-2-27b. The code below sends one request.Get API Key from openai import OpenAI # Your API Key from the OceanToken console client = OpenAI(base_url="https://api.oceantoken.ai/v1", api_key="YOUR_API_KEY") reply = client.chat.completions.create( model="prism-ml/ternary-bonsai-2-27b", messages=[{"role": "user", "content": "Hello"}]) print(reply.choices[0].message.content)# Your API Key from the OceanToken console curl https://api.oceantoken.ai/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "prism-ml/ternary-bonsai-2-27b", "messages": [{"role": "user", "content": "Hello"}]}'
Ternary Bonsai 2 27B API: frequently asked questions
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 Bonsai 2 27B costs $0.075 per 1M input tokens and $0.50 per 1M output tokens. Cached input costs $0.0375 per 1M tokens. These are OceanToken starting prices as of November 5, 2026, charged per use to your prepaid balance. The console always shows the current price.
Ternary Bonsai 2 27B has a context window of 262K tokens (262,144 tokens).
Ternary Bonsai 2 27B supports tool calling, structured outputs, image input (vision) and reasoning. It takes text and image input and returns text.
Send requests to https://api.oceantoken.ai/v1/chat/completions with the model ID prism-ml/ternary-bonsai-2-27b and your OceanToken API key. The API is OpenAI-compatible, so an OpenAI SDK needs only the base URL https://api.oceantoken.ai/v1 and your key. The Responses API and the Anthropic Messages API (/v1/messages) work too. The same OceanToken API key works for every model your account can use. Full reference: docs.oceantoken.ai.
OceanToken is prepaid. Open Credits in the console, choose an amount and pay by card on Stripe's hosted checkout page (Link works too). Your balance updates a few seconds after payment. Have a trial code? Redeem it on the same page.
Purchased credits are valid for 12 months from the date of purchase. Credits from trial codes, promotions or gifts may have a shorter validity. All purchases are final and non-refundable, except where the law requires a refund. Section 6 of the Terms of Service has the details.
Not if the request never ran: a request refused for an insufficient balance or by a safety check, or one whose provider fails before returning any output, is not charged. A video job that fails releases the amount it held. If a request breaks off after the model has started producing output, for example a stream cut off part-way, you pay for the tokens that were processed and generated for it.
Sources
- OceanToken model catalog: every price, context window, input, output and parameter on this page (November 5, 2026).
By the OceanToken team, from the catalog and the sources above.
Whatever you want.