> This page is for version v0.25.0.
> For other versions, use one of these documentation indexes:
> - Latest (default): https://docs.nvidia.com/nemo/guardrails/latest/llms.txt
> - v0.25.0: https://docs.nvidia.com/nemo/guardrails/v0.25.0/llms.txt
> - v0.24.1: https://docs.nvidia.com/nemo/guardrails/v0.24.1/llms.txt
> - v0.24.0: https://docs.nvidia.com/nemo/guardrails/v0.24.0/llms.txt
> - v0.23.0: https://docs.nvidia.com/nemo/guardrails/v0.23.0/llms.txt
> - v0.22.0: https://docs.nvidia.com/nemo/guardrails/v0.22.0/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/guardrails/llms.txt.

# Use the NeMo Guardrails Python APIs

> Run guardrailed inference using the NeMo Guardrails Python API.

This section covers how to use the NeMo Guardrails library Python API to run guardrailed inference and integrate the guardrails into your application.

#### [Overview](/nemo/guardrails/v0.25.0/run-guardrailed-inference/using-python-apis/overview)

RailsConfig and LLMRails core classes for generating guarded responses.

Concept

#### [Core Classes](/nemo/guardrails/v0.25.0/run-guardrailed-inference/using-python-apis/core-classes)

RailsConfig and LLMRails class reference for loading and running guardrails.

Reference

#### [Generation Options](/nemo/guardrails/v0.25.0/run-guardrailed-inference/using-python-apis/generation-options)

Configure logging, LLM parameters, and rail selection for generation.

Reference

#### [Streaming](/nemo/guardrails/v0.25.0/run-guardrailed-inference/using-python-apis/streaming)

Stream LLM responses in real-time with the stream_async method.

Tutorial

#### [Check Messages](/nemo/guardrails/v0.25.0/run-guardrailed-inference/using-python-apis/check-messages)

Validate messages against input and output rails using check_async and check methods.

Reference

#### [Event-Based API](/nemo/guardrails/v0.25.0/run-guardrailed-inference/using-python-apis/event-based-api)

Use generate_events for low-level control over guardrails execution.

Reference