Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Llama Guard 4 12B

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

规格

输入价格
$0.18美元 / 100 万 token
输出价格
$0.18美元 / 100 万 token
上下文窗口
163.8K
最大输出
16.4K
Modalities
文本, 图像文本
发布时间
2025年4月30日
能力
  • 聊天: 支持
  • 视觉: 支持
  • 推理: 不支持
  • 结构化输出: 不支持
  • 函数调用: 不支持
  • 音频输入: 不支持

Prices in 美元 / 100 万 token

可用

快速接入

import os

import requests

headers = {"Authorization": f"Bearer {os.environ['SANDBASE_API_KEY']}"}
payload = {
    "model": "meta/llama-guard-4-12b",
    "messages": [
        {
            "role": "user",
            "content": "Hello",
        },
    ],
    "max_tokens": 2048,
}
response = requests.post(
    "https://api.sandbase.ai/v1/chat/completions",
    headers=headers,
    json=payload,
)
response.raise_for_status()
print(response.json())

问题

常见问题

如何通过 SandBase 调用 Meta Llama Guard 4 12B?

先创建一个 SandBase API key,然后向 https://api.sandbase.ai 的 Chat Completions API (/v1/chat/completions) 发送请求,模型 ID 使用“meta/llama-guard-4-12b”。本页的请求示例展示了准确的请求负载。

Meta Llama Guard 4 12B 的价格是多少?

每 100 万输入 token $0.18、每 100 万输出 token $0.18,按请求从您的 SandBase 余额中扣费。若有折扣,会在本页的定价中显示。

Meta Llama Guard 4 12B 的上下文窗口是多少?

上下文为 163.8K 个 token,每次响应最多输出 16.4K 个 token。

Meta Llama Guard 4 12B 支持哪些功能?

Meta Llama Guard 4 12B 支持 视觉(图像输入)。完整列表请参见上方 Specifications。

我需要单独的 Meta 账户吗?

不需要。一个 SandBase API key 和余额即可让您使用 Meta Llama Guard 4 12B 以及目录中的其他模型;您无需单独注册 Meta。