Compositev12
← All models Model directory

AI model

Meta: Llama Guard 4 12B

meta-llama/llama-guard-4-12b

Meta: Llama Guard 4 12B is a 163,840-token model served on Composite at $0.180 per million tokens in and $0.180 per million tokens out.

Try in Playground

Community rating

— No community ratings yet.

Sign in to rate this model. Ratings come from accounts that have run requests through Composite.

Specifications

Specifications and pricing as served by Composite
Model IDmeta-llama/llama-guard-4-12b
ProviderDeepInfra
Context window163,840 tokens
Acceptsimage, text
Returnstext
Input price$0.180 per million tokens
Output price$0.180 per million tokens
Prompt cachingNot offered for this model
ModeratedNo
Cost on a monthly planAbout 1.3 plan credits per typical call (8k in, 1k out)
Routing endpoints2 (base plus 1 routing variant)

Measured on Composite

This model has not carried enough traffic on Composite yet to publish a success rate, a latency figure or a traffic rank. The numbers appear here once it has.

Routing variants

The same model behind 1 alternative endpoint. Call the id directly to pin a route; the base id above picks for you.

RouteModel IDProviderPrice
cheapThink meta-llama/llama-guard-4-12b:cheapThink DeepInfra $0.180 per million tokens input · $0.180 per million tokens output

Pricing

$0.180 per million tokens input · $0.180 per million tokens output

Credits pay the provider’s price plus 25%; cache hits cost less.

On a monthly plan, a typical call (8k tokens in, 1k out) uses about 1.3 plan credits, at the provider's own price.

Provider

DeepInfra

Roleplay fit

Llama models are a widely-supported open baseline, useful when you want predictable, well-documented behavior.

Context behavior

With a 163,840-token context window, it can hold a long-running roleplay or a full lorebook in memory without losing earlier plot details, so it suits multi-session campaigns and character cards with heavy backstory.

Cost for regular use

It is priced low enough for high-volume daily roleplay without the per-message cost adding up quickly.

From the provider

Llama Guard 4 is a Llama 4 Scout-derived multimodal pretrained model, fine-tuned for content safety classification. Similar to previous versions, it can be used to classify content in both LLM...

Supplied by DeepInfra, not written by Composite.