Documentation

Developer Guide

Welcome to the RAIL API developer guide. Learn the fundamentals of building responsible AI applications.

New to RAIL?

Start with our quick start guide to make your first API call in 5 minutes.

Go to Quick Start

What is RAIL?

RAIL (Responsible AI Labs) is a comprehensive API platform for evaluating and generating responsible AI content. Our framework ensures that your AI applications meet the highest standards of fairness, safety, privacy, and transparency.

The 8 RAIL Dimensions

Fairness

Ensures unbiased treatment across demographics

Safety

Prevents harmful or dangerous content

Reliability

Provides consistent and accurate results

Transparency

Offers clear explanations of decisions

Privacy

Protects user data and sensitive information

Accountability

Enables auditing and responsibility tracking

Inclusivity

Respects diverse perspectives and cultures

User Impact

Considers effects on end users

Python SDK

🐍

Official Python SDK Available

Install our official Python SDK for a cleaner, more Pythonic way to interact with the RAIL API. Includes type hints, structured response models, and comprehensive error handling.

pip install rail-score
from rail_score import RailScore

client = RailScore(api_key="your-api-key")
result = client.evaluation.basic("Your content")
print(f"Score: {result.rail_score.score}")

Core Concepts

API Capabilities

The RAIL API provides four main categories of endpoints:

📊

Evaluation

Score and analyze content across RAIL dimensions with comprehensive evaluation endpoints

View Evaluation APIs

Generation

Generate safe, responsible AI content with built-in safety filters

View Generation APIs
🛡️

Compliance

Enterprise compliance endpoints for GDPR, HIPAA, SOC2, and more

View Compliance APIs

Next Steps

Ready to start building? Here are some recommended next steps:

  1. 1
    Complete the Quick Start guide

    Make your first API call in 5 minutes

  2. 2
    Create a free account

    Get your API key and start building

  3. 3
    Explore the API Reference

    Browse all endpoints with comprehensive examples

Need Help?

Our support team is here to help you succeed with your integration.