# Guardrail Tutorials

Use the following tutorials to learn how to accomplish common guardrail tasks using the NeMo Guardrails API.

!!! tip "Before starting a tutorial, complete [NeMo Setup](../../get-started/setup.md) to configure a `ModelProvider` and discover models. The tutorials assume you have models available in the `default` workspace."

Once a `ModelProvider` is configured, use Model Entity references (`workspace/name` format) as the `model` in your guardrail configurations. The guardrails plugin resolves task model endpoints through IGW's route table. Refer to [Model Routing](../concepts/inference.md#guardrails-model-routing) for more details.

```python
guardrails_config = {
    "models": [
        {
            "type": "content_safety",
            "engine": "nim",
            "model": "default/nvidia-llama-3-1-nemotron-safety-guard-8b-v3",
        }
    ],
    # ... rest of config
}
```


-   **[Deploy NemoGuard NIMs](deploy-nemoguard-nims.md)**

    ---

    Deploy NemoGuard NIMs in your environment

    <small><span class="md-tag">nemo-guardrails</span> <span class="md-tag">nemoguard</span></small>

-   **[Improving Content Safety with NemoGuard NIMs](content-safety.md)**

    ---

    Use Content Safety checks to detect and block harmful content

    <small><span class="md-tag">nemo-guardrails</span> <span class="md-tag">nemoguard</span></small>

-   **[Running Rails in Parallel](parallel-rails.md)**

    ---

    Configure parallel rails for input and output guardrails.

    <small><span class="md-tag">nemo-guardrails</span></small>

-   **[Adding Safety Checks to Multimodal Data](multimodal-data.md)**

    ---

    Safety checks for multimodal data with NeMo Guardrails API.

    <small><span class="md-tag">nemo-guardrails</span></small>

-   **[Detecting Injection Attacks](injection-detection.md)**

    ---

    Configure checks for SQL, XSS, template, and code injection.

    <small><span class="md-tag">nemo-guardrails</span></small>


