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 StartWhat 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-scorefrom 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
RAIL Framework
Understanding the 8 dimensions of Responsible AI that power RAIL evaluations and scoring.
RAIL Credits System
Understand our token-based pricing model, how RAIL credits are calculated, and how to manage your account.
RAIL Async Jobs & Queues
Learn how asynchronous job processing works, including priority queues, concurrency, and processing times.
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 APIsNext Steps
Ready to start building? Here are some recommended next steps:
- 1Complete the Quick Start guide
Make your first API call in 5 minutes
- 2Create a free account
Get your API key and start building
- 3Explore the API Reference
Browse all endpoints with comprehensive examples
Need Help?
Our support team is here to help you succeed with your integration.