# Ternary Bonsai 27B API Pricing

As of October 10, 2026, Ternary Bonsai 27B is free to use on Together AI. It has a 262,144-token context window.

- Page: https://models.litellm.ai/models/ternary-bonsai-27b
- LiteLLM model name: `together_ai/Prism-ML/Ternary-Bonsai-27B`
- Context window: 262,144 tokens
- Added to LiteLLM: August 25, 2026
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Together AI | `together_ai/Prism-ML/Ternary-Bonsai-27B` | $0 | $0 | – | – | – | 256K |

## Cost examples

1,000 requests with 2,000 input and 500 output tokens each:

- Together AI: $0

100 long-document requests with 100,000 input and 2,000 output tokens each:

- Together AI: $0

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="together_ai/Prism-ML/Ternary-Bonsai-27B",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## FAQ

### How much does Ternary Bonsai 27B cost?

Ternary Bonsai 27B is free to use on Together AI.

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

Ternary Bonsai 27B has a 262,144-token context window.

### Which providers offer Ternary Bonsai 27B?

Ternary Bonsai 27B is available from Together AI through LiteLLM, using the model name together_ai/Prism-ML/Ternary-Bonsai-27B.

### How do I call Ternary Bonsai 27B with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="together_ai/Prism-ML/Ternary-Bonsai-27B", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

### When did LiteLLM add Ternary Bonsai 27B?

Ternary Bonsai 27B was added to LiteLLM's model price file on August 25, 2026.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
