Skip to content
  • Models
  • Rankings
  • Ori
Sign Up
Sign Up
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Collections
  • Providers
  • Pricing
  • Business
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Trust Center
  • Support
  • Works With OR
  • Data
  • Brand

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube

Model usage data, product updates, and research reports. One email each week.

By subscribing you agree to receive the OpenRouter newsletter: model usage data, product updates, and research reports, about one email a week. Unsubscribe anytime via the link in every email. See our Privacy Policy.

  1. Home
  2. /
  3. Compare

Llama Guard 4 12B vs Ternary Bonsai 2 27B

Compare Llama Guard 4 12B from Meta Llama and Ternary Bonsai 2 27B from Prism Ml on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.

Favicon for meta-llama
Llama Guard 4 12B
Favicon for prism-ml
Ternary Bonsai 2 27B
Favicon for meta-llama
Llama Guard 4 12B
Favicon for prism-ml
Ternary Bonsai 2 27B

Overview

Llama Guard 4 12B
Author
Meta Llama
Ternary Bonsai 2 27B
Author
Prism Ml
Llama Guard 4 12B
Context length
164Ktokens
Ternary Bonsai 2 27B
Context length
262Ktokens
Llama Guard 4 12B
Reasoning
Ternary Bonsai 2 27B
Reasoning
Llama Guard 4 12B
Input modalities
Ternary Bonsai 2 27B
Input modalities
Llama Guard 4 12B
Output modalities
Ternary Bonsai 2 27B
Output modalities

Llama Guard 4 12B vs Ternary Bonsai 2 27B: side-by-side summary

Llama Guard 4 12B and Ternary Bonsai 2 27B are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.

Llama Guard 4 12B, from Meta Llama, has a 163,840-token context window and is priced at $0.18/M tokens input, $0.18/M tokens output on OpenRouter.

Ternary Bonsai 2 27B, from Prism Ml, has a 262,144-token context window and is priced at $0.075/M tokens input, $0.50/M tokens output on OpenRouter.

Context window
  • Llama Guard 4 12B: 163,840 tokens
  • Ternary Bonsai 2 27B: 262,144 tokens
Price
  • Llama Guard 4 12B: $0.18/M tokens input, $0.18/M tokens output
  • Ternary Bonsai 2 27B: $0.075/M tokens input, $0.50/M tokens output
Provided by
  • Llama Guard 4 12B: Meta Llama
  • Ternary Bonsai 2 27B: Prism Ml
  • model details, providers and pricing
  • model details, providers and pricing
Llama Guard 4 12B
Ternary Bonsai 2 27B