Ternary Bonsai 2 27B

prism-ml/ternary-bonsai-2-27b
Chat
Prism Ml|
Function CallingVisionReasoning

Ternary Bonsai 2 27B (prism-ml/ternary-bonsai-2-27b) is an AI model from Prism Ml with a 262,144-token context window and 32,768 max output tokens, priced at $0.07/1M input and $0.50/1M output tokens. Available via the haimaker.ai OpenAI-compatible API.

Context Window
262K
tokens
Max Output
33K
tokens
Input Price
$0.07
/1M tokens
Output Price
$0.50
/1M tokens

Overview

Ternary Bonsai 2 27B is a chat model by Prism Ml. It supports a 262K token context window. Supports function calling, vision, reasoning.

Features & Capabilities

Modechat
Context Window262,144 tokens
Max Output32,768 tokens
Function CallingSupported
VisionSupported
ReasoningSupported
Web SearchNot supported
Url ContextNot supported

API Usage

from openai import OpenAI

client = OpenAI(
    base_url="https://api.haimaker.ai/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="prism-ml/ternary-bonsai-2-27b",
    messages=[
        {"role": "user", "content": "Hello, how are you?"}
    ],
)

print(response.choices[0].message.content)

Frequently Asked Questions

What is the context window of Ternary Bonsai 2 27B?

Ternary Bonsai 2 27B (prism-ml/ternary-bonsai-2-27b) has a 262,144-token context window and supports up to 32,768 output tokens per request.

How much does Ternary Bonsai 2 27B cost?

Ternary Bonsai 2 27B is priced at $0.07 per 1M input tokens and $0.50 per 1M output tokens when accessed via the haimaker.ai OpenAI-compatible API.

What features does Ternary Bonsai 2 27B support?

Ternary Bonsai 2 27B supports function calling, vision, reasoning.

How do I use Ternary Bonsai 2 27B via API?

Send requests to https://api.haimaker.ai/v1/chat/completions with model "prism-ml/ternary-bonsai-2-27b" using any OpenAI-compatible SDK. Authentication uses a Bearer API key from https://app.haimaker.ai.

Use Ternary Bonsai 2 27B with the haimaker API

OpenAI-compatible endpoint. Start building in minutes.

Get API Access

haimaker.ai 2026 - All Rights Reserved