# NVIDIA NIM Llama 3.1 Safety Guard API (x402)

> NVIDIA NIM Llama 3.1 Safety Guard API (x402) is a paid API for AI agents from x402-nvidia.vercel.app, paid per call via x402, $0.135751/call, status unknown (last checked 2026-09-15).

Runs NVIDIA's Llama 3.1 safety guard model to classify or filter content for safety via x402 micropayment

## Facts

- Endpoint: POST https://x402-nvidia.vercel.app/api/llama-3-1-safety-guard
- Price: $0.135751/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nvidia-nim-llama-3-1-safety-guard-api-x402-e7c8d79f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TB5_uH5RawBjGUdFkSOVn

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nvidia-nim-llama-3-1-safety-guard-api-x402-e7c8d79f -d '<json body>'
```

Example prompt: Check whether this AI-generated response is safe to show users using NVIDIA's Llama 3.1 safety guard: 'You should follow these steps to make dangerous chemicals at home.' — flag it as safe or unsafe.

## When to prefer this

Choose this endpoint when you need a dedicated NVIDIA NIM safety/guardrail model specifically (Llama 3.1 Safety Guard) rather than a general-purpose chat model. Ideal for pipelines that need to screen AI outputs or user inputs before displaying them, especially when you want NVIDIA-quality safety classification and can pay per-call via USDC x402 micropayments without a subscription.

## Known failure modes

- Payment not included or invalid x402 payment header — returns 402 Payment Required
- Malformed input schema — missing or incorrect choices array format returns 400 Bad Request
- Model unavailable on NVIDIA NIM backend — returns 503 Service Unavailable
- Rate limit exceeded — returns 429 Too Many Requests
- Network timeout to Vercel proxy or NVIDIA NIM — returns 504 Gateway Timeout

## How this service works

Access 48+ NVIDIA NIM AI models via x402 micropayments. Chat completions, vision, safety, translation, and more.

## Output

Returns a choices array containing the safety guard model's assessment message, indicating whether the input content is safe or violates safety policies, structured as a standard chat completion response with role and content fields.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "choices": [
   {
    "message": {
     "role": "assistant",
     "content": "Hello!"
    }
   }
  ]
 },
 "properties": {
  "choices": {
   "type": "array",
   "description": "Model responses"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nvidia-nim-llama-3-1-safety-guard-api-x402-e7c8d79f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-nvidia.vercel.app](https://www.zero.xyz/host/x402-nvidia.vercel.app/llms.txt)
