Llama Guard 4 12B vs GLM 5.4

Compare Llama Guard 4 12B from Meta Llama and GLM 5.4 from Z.ai 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 z-ai
GLM 5.4

Overview

Llama Guard 4 12B
Author
Meta Llama
GLM 5.4
Author
Z.ai
Llama Guard 4 12B
Context length
164Ktokens
GLM 5.4
Context length
1.05Mtokens
Llama Guard 4 12B
Reasoning
No
GLM 5.4
Reasoning
Yes
Llama Guard 4 12B
Input modalities
Text, Image
GLM 5.4
Input modalities
Text, Image, Video
Llama Guard 4 12B
Output modalities
Text
GLM 5.4
Output modalities
Text

Analysis

Llama Guard 4 12B vs GLM 5.4 at a glance

Llama Guard 4 12B
Input price
$0.18/M tokens
GLM 5.4
Input price
$0.40/M tokens
Llama Guard 4 12B
Output price
$0.18/M tokens
GLM 5.4
Output price
$2.464/M tokens
Llama Guard 4 12B
Context window
163,840 tokens
GLM 5.4
Context window
1,048,576 tokens
Llama Guard 4 12B
Latency (p50)
0.57 s
GLM 5.4
Latency (p50)
1.30 s
Llama Guard 4 12B
Throughput (p50)
44.0 tok/s
GLM 5.4
Throughput (p50)
107.0 tok/s
Llama Guard 4 12B
Provided by
Meta Llama
GLM 5.4
Provided by
Z.ai

Frequently asked questions

Is Llama Guard 4 12B cheaper than GLM 5.4?

Llama Guard 4 12B is cheaper than GLM 5.4 on OpenRouter: Llama Guard 4 12B costs $0.18/M tokens input and $0.18/M tokens output, while GLM 5.4 costs $0.40/M tokens input and $2.464/M tokens output.

Which has the longer context window, Llama Guard 4 12B or GLM 5.4?

GLM 5.4 has the longer context window at 1,048,576 tokens, compared with 163,840 tokens for Llama Guard 4 12B.

Which is faster, Llama Guard 4 12B or GLM 5.4?

GLM 5.4 is faster on OpenRouter, generating a median 107.0 tokens per second compared with 44.0 tokens per second for Llama Guard 4 12B.