March 7, 2026API & SDK Update

Updated API Endpoints & SDK v2.1

Major updates to the RAIL Score API and official SDKs. New compliance testing and safe regeneration endpoints, expanded Python and JavaScript/TypeScript SDK support in v2.1.1, and plan-based rate limiting.

We've shipped major updates to the RAIL Score API and official SDKs. This release introduces compliance testing endpoints, safe content regeneration, and expanded SDK support for both Python and JavaScript/TypeScript.

New API Endpoints

Compliance CheckPOST /railscore/v1/compliance/check

Test AI outputs against GDPR, HIPAA, EU AI Act, CCPA, India DPDP, and India AI Governance frameworks, single or multi-framework in one call.

Safe RegeneratePOST /railscore/v1/safe-regenerate

Iteratively evaluate and regenerate AI content until it meets your quality threshold. Supports configurable max regenerations and score targets.

Continue RegenerationPOST /railscore/v1/safe-regenerate/continue

Resume a regeneration session with updated content for external-mode workflows.

Updated Endpoints

Unified EvalPOST /railscore/v1/eval

Now supports basic and deep evaluation modes, custom dimension weights, and single-dimension scoring. Responses include per-dimension explanations and issue tags.

SDK Updates (v2.1.1)

Python SDK

pip install rail-score-sdk

Compliance testing, safe regeneration, custom weights, and batch evaluation support.

View on PyPI →

JavaScript / TypeScript SDK

npm install @responsible-ai-labs/rail-score

LLM wrappers, middleware, policy engine, session tracking, Langfuse integration, and guardrails.

View on npm →

Compliance Frameworks Supported

GDPRHIPAAEU AI ActCCPAIndia DPDPIndia AI Governance

Other Improvements

  • Rate limiting with plan-based tiers across all endpoints
  • Two-layer caching (in-memory + Redis) for faster repeat evaluations
  • Expanded developer documentation with quickstart guides, framework deep-dives, and use case examples
  • Credit cost transparency: all responses now include credits charged