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

Llama Guard 4 12B vs Grok 4.7

Compare Llama Guard 4 12B from Meta Llama and Grok 4.7 from SpaceXAI 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 x-ai
Grok 4.7
Favicon for meta-llama
Llama Guard 4 12B
Favicon for x-ai
Grok 4.7

Overview

Llama Guard 4 12B
Author
Meta Llama
Grok 4.7
Author
SpaceXAI
Llama Guard 4 12B
Context length
164Ktokens
Grok 4.7
Context length
500Ktokens
Llama Guard 4 12B
Reasoning
Grok 4.7
Reasoning
Llama Guard 4 12B
Input modalities
Grok 4.7
Input modalities
Llama Guard 4 12B
Output modalities
Grok 4.7
Output modalities

Llama Guard 4 12B vs Grok 4.7: side-by-side summary

Llama Guard 4 12B and Grok 4.7 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.

Grok 4.7, from SpaceXAI, has a 500,000-token context window and is priced at $1.60/M tokens input, $4.80/M tokens output on OpenRouter.

Context window
  • Llama Guard 4 12B: 163,840 tokens
  • Grok 4.7: 500,000 tokens
Price
  • Llama Guard 4 12B: $0.18/M tokens input, $0.18/M tokens output
  • Grok 4.7: $1.60/M tokens input, $4.80/M tokens output
Provided by
  • Llama Guard 4 12B: Meta Llama
  • Grok 4.7: SpaceXAI
  • Llama Guard 4 12B model details, providers and pricing
  • Grok 4.7 model details, providers and pricing