Meta: Llama Guard 4 12BOfficial docs

Meta: Llama Guard 4 12B

byMeta
Official docs

Llama Guard 4 12B is a language model from Meta released on Apr 29, 2025. It reads text and images and writes text, with a 164K token context window and up to 164K tokens per reply.

Show more

It costs $0.18 per million input tokens and $0.18 per million output tokens.

Its weights are open, so you can host it yourself.

4 providers serve it, including Deep Infra, Hugging Face and Kilo Gateway. The lowest input price is $0.144 per million tokens at Kilo Gateway.

Modalities
In / out price
$0.18 / $0.18 per 1M
Context
164K
Max output
164K
Released
Apr 29, 2025
Knowledge cutoff
n/a
  • Tool calling
  • Structured output
  • Reasoning
  • Prompt caching
  • Open weights
  • Free to use

Llama Guard 4 12B pricing

USD, as listed on Nov 29, 2026. Most bills are input heavy, so the cached input rate matters as much as the headline price.

Input$0.18 / 1M tokens
Output$0.18 / 1M tokens

Llama Guard 4 12B providers

4 providers serve it, including Deep Infra, Hugging Face and Kilo Gateway. The lowest input price is $0.144 per million tokens at Kilo Gateway. Each host sets its own price and limits, so the cheapest one is not always the one with the longest context.

ProviderInput /MOutput /MCache read /MContextMax output
Deep Infra$0.18$0.18n/a164K164K
Hugging Face$0.18$0.18n/a164K164K
Kilo Gateway$0.144$0.144n/a164K16K
Eden AI$0.18$0.18n/a164K164K

What Llama Guard 4 12B costs per month

Pick a workload close to yours or type your own volumes.

Llama Guard 4 12B per month
$15.39
Without caching
$15.39
Per request
$0.0005

Supported request parameters

What you can set when you call Llama Guard 4 12B through an OpenAI compatible API.

  • Temperaturetemperature

Alternatives to Llama Guard 4 12B

Models that take the same inputs, closest in price, cheaper ones first.

  • Reads text, images, audio and video. Tool calling, structured output, reasoning. Served by 27 providers.

    by xiaomiSep 22, 20261.05M context$0.14/M input tokens$0.28/M output tokens27 providers

  • Reads text, images, files, audio and video. Tool calling, structured output, reasoning. Served by 16 providers.

    by googleJul 22, 2025$0.10/M input tokens$0.40/M output tokens16 providers

  • Reads text, images and files. Tool calling, structured output. Served by 10 providers.

    by mistralaiDec 2, 2025262K context$0.15/M input tokens$0.15/M output tokens10 providers

  • Reads text and images. Tool calling, structured output. Served by 4 providers.

    by meta-llamaApr 5, 2025328K context$0.10/M input tokens$0.30/M output tokens4 providers

  • Reads text and images. Tool calling, structured output, reasoning.

    by deepreinforceAug 18, 2026$0.10/M input tokens$0.40/M output tokens

  • Reads text and images. Tool calling, structured output, reasoning. Served by 2 providers.

    by bytedanceApr 28, 2026$0.10/M input tokens$0.40/M output tokens2 providers

More from Meta

  • Reads text. Served by 3 providers.

    by meta-llamaApr 29, 2025$0.03/M input tokens$0.03/M output tokens3 providers

  • Reads text. Served by 3 providers.

    by meta-llamaApr 29, 2025$0.04/M input tokens$0.04/M output tokens3 providers

  • Reads text and images. Tool calling, structured output. Served by 6 providers.

    by meta-llamaApr 5, 2025128K context$0.35/M input tokens$1/M output tokens6 providers

  • Reads text and images. Tool calling, structured output. Served by 5 providers.

    by meta-llamaApr 5, 2025$0.25/M input tokens$1/M output tokens5 providers

  • Index 8.1

    Reads text and images. Tool calling, structured output. Served by 4 providers.

    by meta-llamaApr 5, 2025328K context$0.10/M input tokens$0.30/M output tokens4 providers

  • Reads text and images. Tool calling, structured output. Served by 6 providers.

    by meta-llamaApr 5, 2025$0.10/M input tokens$0.30/M output tokens6 providers

All Meta models

Llama Guard 4 12B questions

How much does the Llama Guard 4 12B API cost?

$0.18 per million input tokens and $0.18 per million output tokens. The estimator on this page turns that into a monthly bill for your own workload.

What is the context window of Llama Guard 4 12B?

163,840 tokens of input, and it can write up to 163,840 tokens in one reply. As a rough guide, a million tokens is around 750,000 English words.

Which providers serve Llama Guard 4 12B?

4 providers serve it, including Deep Infra, Hugging Face and Kilo Gateway. The lowest input price is $0.144 per million tokens at Kilo Gateway. Prices differ by host, so the Providers table on this page lists each one with its input and output price.

Does Llama Guard 4 12B support tool calling?

Not through the standard tools parameter. For an agent that calls your APIs, pick a model from the alternatives below that does.

Is Llama Guard 4 12B open source?

Its weights are published, so you can run it on your own hardware or a cloud of your choice. Read the license before commercial use.

When was Llama Guard 4 12B released?

Apr 29, 2025.

Catalog data from models.dev (MIT licensed), refreshed daily, last on Nov 29, 2026. The summary is written from these facts.