deCloud
MA CHAIN · 20260131
← All models

Meta: Llama Guard 4 12B

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

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...

Context
164K
Input MA / 1M
0.108
Output MA / 1M
0.108

Billing follows the provider's own reported cost rather than the catalogue price — cached input is cheaper, and reasoning tokens bill as output. Your usage page is the record of what you actually paid.

Capabilities

ChatVision

Try it

One free message per account, no deposit needed. The reply is length-capped — it's a taste, not a quota.

Connect a wallet and sign in to use your free try.

Connect a wallet

Call it

Every model goes through the same endpoint — just use this page's ID as model.

curl https://macdecloud.com/v1/chat/completions \
  -H "Authorization: Bearer dcld-sk-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"meta-llama/llama-guard-4-12b","messages":[{"role":"user","content":"Hello"}]}'

Streaming

Add "stream": true for token-by-token output over standard SSE.

curl -N https://macdecloud.com/v1/chat/completions \
  -H "Authorization: Bearer dcld-sk-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"meta-llama/llama-guard-4-12b","stream":true,"messages":[{"role":"user","content":"hi"}]}'

Image input

Make content an array mixing text and image_url parts. The image can be a public URL or a data: base64 payload.

{
  "model": "meta-llama/llama-guard-4-12b",
  "messages": [{
    "role": "user",
    "content": [
      { "type": "text", "text": "What is in this image?" },
      { "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
    ]
  }]
}
Use it from Claude Code / Cursor / opencode →