सभी RAIL API requests API keys से authenticate होती हैं। Keys आपके account से linked होती हैं, आपका credit balance carry करती हैं, और आपके 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.
API key लेना
Sign up करें
Dashboard खोलें
अपने Dashboard पर जाएँ और API Keys section में जाएँ।
API key use करना
हर request परAuthorization header में अपनी key Bearer token के रूप में pass करें:
SDK authentication
दोनों SDKs client बनाते समय API key accept करते हैं और automatically header attach कर देते हैं:Environment variables
Source files में कभी API keys hardcode मत करें। Environment variables use करें और keys को version control से बाहर रखें।- Local (dotenv)
- Vercel / Edge
- Docker
Key management
आप अलग-अलग environments (production, staging, CI) के लिए multiple keys बना सकते हैं। अपने Dashboard से सभी keys manage करें।| Action | कब use करें |
|---|---|
| Generate key | नया environment, नई service onboard करना, या schedule पर credentials rotate करना |
| Rename key | Usage tracking के लिए “production-chatbot” या “staging-ci” जैसा context add करें |
| Revoke key | Key leak का शक, employee offboarding, या service बंद करना। तुरंत effect होता है। |
Rate limits
Rate limits per API key apply होती हैं। Limit exceed करने पर HTTP 429 return होता है।| 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 | Authorization header missing या malformed | Authorization: Bearer … add करें |
401 | Invalid API key | Verify करें कि key rail_ से शुरू होती है और correctly copy हुई है |
403 | API key revoked या inactive | Dashboard से नई key generate करें |
429 | Rate limit exceeded | Request frequency कम करें या plan upgrade करें |
आगे क्या करें
Quickstart
5 मिनट से कम में अपनी पहली evaluation request करें।
Credits & Pricing
समझें कि per call credits कैसे charge होते हैं।
API Reference
सभी endpoints का full parameter reference।
Dashboard
Keys manage करें, usage देखें, और credit balance monitor करें।