> ## Documentation Index
> Fetch the complete documentation index at: https://docs.raxe.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# API Reference Overview

> Complete API documentation

## SDK Components

RAXE provides a comprehensive Python SDK with the following components:

> [card] [Raxe Client](https://docs.raxe.ai/api-reference/raxe-client.md)
>
> Core scanning client for sync operations

> [card] [AsyncRaxe Client](https://docs.raxe.ai/api-reference/raxe-client.md#asyncraxe)
>
> Async client for high-throughput scanning

> [card] [Scan Results](https://docs.raxe.ai/api-reference/scan-results.md)
>
> Result objects and detection models

> [card] [Exceptions](https://docs.raxe.ai/api-reference/exceptions.md)
>
> Error handling and exception types

## Quick Import Reference

```python theme={null}
# Core clients
from raxe import Raxe, AsyncRaxe

# LLM wrappers
from raxe import RaxeOpenAI, RaxeAnthropic

# Types and models
from raxe import Detection, Severity, ScanResult

# Exceptions
from raxe import (
    RaxeException,
    RaxeBlockedError,
    ValidationError,
    AuthenticationError,
    ConfigurationError,
)

# LangChain integration
from raxe import RaxeCallbackHandler
```

## Basic Usage Pattern

```python theme={null}
from raxe import Raxe

# Initialize client
raxe = Raxe()

# Scan a prompt
result = raxe.scan("user input here")

# Check result
if not result.has_threats:
    # Proceed with LLM call
    pass
else:
    # Handle threat
    print(f"Threat: {result.severity}")
    for detection in result.detections:
        print(f"  - {detection.rule_id}: {detection.severity}")
```

## Type Annotations

RAXE is fully typed for IDE support:

```python theme={null}
from raxe import Raxe
from raxe import ScanResult, Detection

def process_input(user_input: str) -> bool:
    raxe: Raxe = Raxe()
    result: ScanResult = raxe.scan(user_input)
    detections: list[Detection] = result.detections
    return not result.has_threats
```

## API Stability

| Component | Stability | Notes |
| - | - | - |
| `Raxe` | Stable | Core API |
| `AsyncRaxe` | Stable | Async API |
| `ScanResult` | Stable | Result model |
| `Detection` | Stable | Detection model |
| `RaxeOpenAI` | Stable | OpenAI wrapper |
| `RaxeAnthropic` | Stable | Anthropic wrapper |
| `RaxeCallbackHandler` | Beta | LangChain integration |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.