Skip to content Chat
PrismML / Text & vision

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

Starting price

Context window
262K

Up to 33K output per reply

Input
text + image

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.

Per 1M tokens, half input and half outputPrices as of November 5, 2026.
  1. Ternary Bonsai 2 27BPrismML

    • Price$0.288
  2. GPT-6 LunaOpenAI

    • Official$0.30
    • Tier 1–3$0.27 −10%
  3. Qwen3.8 FlashQwen

    • Official$0.31
    • Tier 1$0.295 −5%
    • Tier 2$0.248 −20%
    • Tier 3$0.233 −25%
  4. DeepSeek V4.1 Flash (1017)DeepSeek

    • Official$0.75
    • Tier 1$0.525 −30%
    • Tier 2$0.488 −35%
    • Tier 3$0.45 −40%
  5. GLM 5.3 FlashZ.ai

    • Official$0.325
    • Tier 1–3$0.325
  6. MiniMax M3MiniMax

    • Official$0.75
    • Tier 1–3$0.75
  • 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

262,144

Max output
33K tokens

32,768

Input
text, image
Output
text
Reasoning
Yes

reasoning_effort

Tool calling
Yes

tool_choice

Structured outputs
Yes

response_format

Prompt caching
Reads $0.0375

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 docs 

Ternary 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

Ternary Bonsai 2 27B$6.50

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

RequestInput tokens per requestOutput tokens per requestCost
Chat reply2,000600$0.00045
Agent step60,0004,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.

  1. 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.

    Get API Key 

  2. Add credits

    OceanToken is prepaid: add credits, and each request is billed from that balance. Your console shows the rate for your tier.

    Add credits 

  3. Call Ternary Bonsai 2 27B from your code

    Point an OpenAI SDK at https://api.oceantoken.ai/v1 and use the model ID prism-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)

    Specs, request sample and alternatives in the docs 

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

By the OceanToken team, from the catalog and the sources above.

Whatever you want.

OceanToken is All You Need