opendunes

Llama Guard 4 12B

by MetaReleased 30 April 2025

Llama Guard 4 checks whether a request or a model's reply is safe. You send text, or text with pictures, and it answers in text: safe, or unsafe with the violated categories from a published list of hazards. Use it as a filter before a chat model sees a user message, and again on the reply. It sorts and does not chat or answer questions, so pair it with a chat model such as Llama 4 Scout.

TakesTextImages
GivesText

What it costs

You pay for what each request uses. No subscription, no minimum.

≈ 0,090 DA per message3 000 DA buys about 33 000 messages

One message, the ordinary use

1 000 tokens sent× 59,91 DA per 1M0,060 DA
500 tokens back× 59,91 DA per 1M0,030 DA
Total≈ 0,090 DA

Every rate

Meter↑ you send↓ comes back
Text tokens59,91 DA59,91 DA

per 1M tokens

Check one user message before your chatbot answers≈ 0,013 DA
Check one chatbot answer before it is shown≈ 0,031 DA
Check a long forum post≈ 0,072 DA
Check a photo and its caption≈ 0,090 DA
Check a full support conversation≈ 0,18 DA
When you pay
After the answer, from your balance. Nothing is held.
Why it varies
A longer question or a longer answer costs more.
After each one
The exact charge shows on the request.
DepositDeposits from 50 DA, with Edahabia or CIB.

Where your request runs

One company runs this model. OpenDunes sends every request to it. DA per 1M tokens: ↑ what you send · ↓ what comes back.

DeepInfraUnited States…
↑ Sent, per 1M
59,91 DA
↓ Back, per 1M
59,91 DA
Latency
…
Throughput
…
Provider↑ Sent↓ BackLatencyThroughputUptime
DeepInfraUnited States59,91 DA59,91 DA………

You pay the price of the provider that served your request. Prices read 15:20 · speed over the last 30 minutes · uptime over 3 days.

See it in action

Real requests, real replies. Try any of them yourself — one click, pre-filled.

Understands images
You send

What's the total on this invoice, and when is it due?

invoice-scan.jpg · photo
It replied

The total is 42 300,00 DA, due 5 September 2026. Worth a double-check: the handwritten day could read as 8 instead of 3.

Try in Chat Lab
Writing
You send

Two lines to welcome a shop in Oran.

It replied

Welcome to our new shop in Oran — fresh bread every morning, and coffee the way the city likes it. Come in, the first cup is on us.

Try in Chat Lab

Try your own request — same model, pre-selected.

Open Chat Lab

Call it in code

Swap the base URL and the key. Your OpenAI code runs unchanged.

POST /v1/chat/completions
Base URL
https://opendunes.com/v1
Model ID
meta-llama/llama-guard-4-12b
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://opendunes.com/v1",
    api_key=os.environ["OPENDUNES_API_KEY"],
)

resp = client.chat.completions.create(
    model="meta-llama/llama-guard-4-12b",
    messages=[{"role": "user", "content": "Two lines to welcome a shop in Oran."}],
)

print(resp.choices[0].message.content)

Runs this request once on your balance.

Parameters you can send

Standard OpenAI fields, grouped by what they control. Anything not listed is accepted and ignored.

Shaping the reply

How long, how varied, where to stop.

max_tokenstemperaturetop_ptop_kmin_pstopseedfrequency_penaltypresence_penaltyrepetition_penaltylogit_bias

Questions about Llama Guard 4 12B

  • How much does Llama Guard 4 12B cost in dinars?

    About 0,090 DA per message. ↑ 59,91 DA · ↓ 59,91 DA per 1M tokens.

  • Is Llama Guard 4 12B free? Can I try it?

    No. You pay per use from your balance, with no subscription. Try it in Chat at the same price.

  • What is Llama Guard 4 12B best for?

    Llama Guard 4 checks whether a request or a model's reply is safe. You send text, or text with pictures, and it answers in text: safe, or unsafe with the violated categories from a published list of hazards. Use it as a filter before a chat model sees a user message, and again on the reply. It sorts and does not chat or answer questions, so pair it with a chat model such as Llama 4 Scout.

  • How do I pay for Llama Guard 4 12B without an international card?

    Deposit dinars with your Edahabia or CIB card. Every model, Llama Guard 4 12B included, is paid from that balance. No foreign card, no conversion.

  • Does Llama Guard 4 12B work in Arabic, French or Darja?

    Meta tags the card English and says the training data included multilingual text, without naming the languages. Arabic, French and Darja are not named.

  • Can it read PDFs, images or a whole book?

    It reads text and images. Up to 164K tokens in one request, about 160 pages. It writes up to 12 000 words at once.

  • Is Llama Guard 4 12B open source?

    Yes, its weights are public. Open weights on Hugging Face

  • Who makes Llama Guard 4 12B, and when was it released?

    Meta. Released 30 April 2025. It knows the world up to 31 August 2024.

Other Meta models, priced in dinars

See all Meta models
Llama 3.1 8B InstructMeta · Jul 23, 2024

Llama 3.1 8B Instruct is the small model of Meta's Llama 3.1 family, tuned to follow instructions and described as fast and efficient. You send text and get text back; it reads about 131 pages at once and can use tools or fill in an exact form you give it. Use it for sorting, short rewrites, simple chat and high-volume jobs.

Uses your tools130 pages at onceOpen weights
≈0,030 DAper message
View model
Llama 3.3 70B InstructMeta · Dec 6, 2024

Llama 3.3 70B Instruct is a text-only Meta model tuned for conversation in English, Spanish, French, German, Italian, Portuguese, Hindi and Thai. You send a chat, with tools or an exact form to fill in if you need them, and get a reply of up to about 16 pages from a conversation of up to 131 pages. Pick it for assistants and support in those languages.

Uses your tools130 pages at onceOpen weights
≈0,33 DAper message
View model
Llama 4 ScoutMeta · Apr 5, 2025

Llama 4 Scout takes text and pictures and answers in text or code across 12 languages. It reads about 1,300 pages at once, enough to caption or question many images, or take in a very large document in one request. Meta tuned it for chat in many languages, captions and image understanding.

Uses your tools1 300 pages at onceOpen weights
≈0,083 DAper message
View model
Llama 4 MaverickMeta · Apr 5, 2025

Llama 4 Maverick takes text and pictures and answers in text or code across 12 languages, keeping about a thousand pages of conversation in mind. Meta tuned it for reasoning about images and for assistant-style chat. Use it to answer questions about photos, charts and screenshots, or for multilingual assistants with long conversations.

Uses your tools520 pages at onceOpen weights
≈0,28 DAper message
View model