跳转到主要内容
The Compliance endpoint checks whether AI-generated content and its surrounding context satisfy the requirements of major regulatory frameworks. It returns a pass/fail verdict per framework, flagged clauses, and remediation guidance.
API endpoint: POST /railscore/v1/compliance/check | Python: client.compliance_check() | Credits: 5.0–10.0 per call

Supported frameworks

CodeFrameworkRegion
gdprGeneral Data Protection RegulationEU
ccpaCalifornia Consumer Privacy ActUS (California)
hipaaHealth Insurance Portability and Accountability ActUS
eu_ai_actEU Artificial Intelligence ActEU
india_dpdpIndia Digital Personal Data Protection ActIndia
india_ai_govIndia AI Governance GuidelinesIndia

Basic usage

from rail_score_sdk import RailScoreClient

client = RailScoreClient(api_key="YOUR_RAIL_API_KEY")

result = client.compliance_check(
    content="Your AI system collects user behavior data to personalize responses.",
    frameworks=["gdpr", "eu_ai_act"],
    context="B2C SaaS chatbot processing EU user data",
)

for framework, check in result.frameworks.items():
    print(f"{framework}: {'PASS' if check.compliant else 'FAIL'}")
    for issue in check.issues:
        print(f"  - {issue.description}")
        print(f"    Remedy: {issue.remediation}")

Credit cost

ScopeCredits
Single framework5.0
Multi-framework (2–3)8.0
Multi-framework (4–5)10.0

What’s next

API Reference: Compliance

Full parameter reference.

Python SDK: Compliance

Python SDK examples.