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
  1. Home
  2. /
  3. Compare

Phi 4 Mini Instruct vs Llama Guard 4 12B

Compare Phi 4 Mini Instruct from Microsoft and Llama Guard 4 12B from Meta Llama 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 microsoft
Phi 4 Mini Instruct
Favicon for meta-llama
Llama Guard 4 12B
Favicon for microsoft
Phi 4 Mini Instruct
Favicon for meta-llama
Llama Guard 4 12B

Overview

Phi 4 Mini Instruct
Author
Microsoft
Llama Guard 4 12B
Author
Meta Llama
Phi 4 Mini Instruct
Context length
131Ktokens
Llama Guard 4 12B
Context length
164Ktokens
Phi 4 Mini Instruct
Reasoning
Llama Guard 4 12B
Reasoning
Phi 4 Mini Instruct
Input modalities
Llama Guard 4 12B
Input modalities
Phi 4 Mini Instruct
Output modalities
Llama Guard 4 12B
Output modalities

Phi 4 Mini Instruct vs Llama Guard 4 12B: side-by-side summary

Phi 4 Mini Instruct and Llama Guard 4 12B are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.

Phi 4 Mini Instruct, from Microsoft, has a 131,072-token context window and is priced by the provider serving it on OpenRouter.

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.

Context window
  • Phi 4 Mini Instruct: 131,072 tokens
  • Llama Guard 4 12B: 163,840 tokens
Price
  • Phi 4 Mini Instruct: Pricing varies by provider
  • Llama Guard 4 12B: $0.18/M tokens input, $0.18/M tokens output
Provided by
  • Phi 4 Mini Instruct: Microsoft
  • Llama Guard 4 12B: Meta Llama
  • Phi 4 Mini Instruct model details, providers and pricing
  • Llama Guard 4 12B model details, providers and pricing