All RAIL API requests are authenticated with API keys. Keys are tied to your account, carry your credit balance, and appear in your usage logs.Documentation Index
Fetch the complete documentation index at: https://docs.responsibleailabs.ai/llms.txt
Use this file to discover all available pages before exploring further.
Getting an API key
Sign up
Create a free account at responsibleailabs.ai.
Open your dashboard
Go to your Dashboard and navigate to the API Keys section.
Using the API key
Pass your key as a Bearer token in theAuthorization header on every request:
SDK authentication
Both SDKs accept the API key at client construction and attach the header automatically:Environment variables
Never hardcode API keys in source files. Use environment variables and keep keys out of version control.- Local (dotenv)
- Vercel / Edge
- Docker
Key management
You can create multiple keys for different environments (production, staging, CI). Manage all keys from your dashboard.| Action | When to use |
|---|---|
| Generate key | New environment, onboarding a new service, or rotating credentials on schedule |
| Rename key | Add context like “production-chatbot” or “staging-ci” for usage tracking |
| Revoke key | Suspected leak, employee offboarding, or decommissioning a service. Takes effect immediately. |
Rate limits
Rate limits are applied per API key. Exceeding the limit returns HTTP 429.| Plan | Requests / min | Requests / day |
|---|---|---|
| Free | 10 | 100 |
| Pro | 60 | 5,000 |
| Business | 300 | 50,000 |
| Enterprise | Custom | Custom |
Security best practices
Auth error responses
| Status | Error | Fix |
|---|---|---|
401 | Missing or malformed Authorization header | Add Authorization: Bearer … |
401 | Invalid API key | Verify the key starts with rail_ and is copied correctly |
403 | API key revoked or inactive | Generate a new key from the dashboard |
429 | Rate limit exceeded | Reduce request frequency or upgrade plan |
What’s next
Quickstart
Make your first evaluation request in under 5 minutes.
Credits & Pricing
Understand how credits are charged per call.
API Reference
Full parameter reference for all endpoints.
Dashboard
Manage keys, view usage, and monitor credit balance.