Get your API key
- Sign up for a free account.
- Open your Dashboard.
- Click Generate Key in the API Keys section.
Score your first response
Send a piece of AI-generated content and get back a RAIL score. Here we evaluate a typical support-bot reply.Reading the response:
Response
rail_score.score— the overall score, 0–10, a weighted average of the eight dimensions. Here7.6is in the Good band.dimension_scores— the score and confidence for each of the eight RAIL dimensions. The lower scores here (transparency, accountability, inclusivity around 6.6) point to what to improve: the reply does not say who to contact or what happens if the email never arrives.policy_outcome— how your application’s policy judged this result: the threshold to pass, whether itpassed, and whether enforcement is currently active. Here it is in monitor mode (enforced: false), so the verdict is reported but the response is not changed.
Go deeper with deep mode
Basic mode tells you the scores. Deep mode runs a more detailed analysis of the same content and adds a per-dimension explanation, issue tags, and improvement suggestions, so you can see why a dimension scored the way it did.Each dimension now carries an
Response (excerpt)
explanation and issues, and the response gathers all flagged issues under a top-level issues array, ready to surface in a review queue or dashboard.What’s next
Concepts: Evaluation
Understand basic vs deep mode, scoring tiers, and custom weights.
Concepts: Safe Regeneration
Auto-fix content that scores below your thresholds.
Integrations
Wrap your OpenAI, Anthropic, or Gemini calls with automatic RAIL scoring.
Python SDK
Full SDK reference with sync/async clients.