Welcome
The Orcho Risk Generation API provides endpoints for assessing the risk of AI prompts and code changes before execution. Get risk scores from 0-100 with detailed breakdowns across multiple risk factors.Generate Risk Score
Assess risk based on prompt text only
Risk with Context
Assess risk with full code context and dependency analysis
Base URL
All API requests should be made to:Authentication
All API endpoints require authentication using Bearer tokens. Include your API key in the Authorization header of every request.Risk Assessment Overview
The API evaluates AI tasks across multiple risk dimensions:Data Sensitivity
Data Sensitivity
Analyzes prompts for presence of personally identifiable information (PII), credentials, API keys, and other sensitive data that could pose security risks if exposed.
Input Clarity
Input Clarity
Evaluates whether the prompt contains all necessary components for successful execution, identifying missing context, unclear instructions, or ambiguous requirements.
Blast Radius
Blast Radius
Measures the potential impact on your codebase by analyzing dependency graphs to determine how many files and components could be affected by changes. Requires code context.
Context Complexity
Context Complexity
Assesses the complexity of the task based on the number of files, dependencies, and interconnections in the provided context.
Legal/IP Risk
Legal/IP Risk
Identifies potential legal and intellectual property concerns, including copyright issues, licensing conflicts, and proprietary code considerations.
Model Hallucination Rate
Model Hallucination Rate
Estimates the likelihood of AI model hallucinations based on prompt characteristics, task complexity, and available context.
Risk Score Interpretation
Risk scores range from 0.0 to 1.0 (decimal values):| Score Range | Risk Level | Recommendation |
|---|---|---|
| < 0.2 | Minimal | Safe to proceed automatically |
| 0.2 - 0.39 | Low | Monitor - minimal risk detected |
| 0.4 - 0.59 | Medium | Review recommended - some risk factors detected |
| 0.6 - 0.79 | High | Review required - significant risk factors present |
| ≥ 0.8 | Critical | Block - high risk detected |
Scores are returned as decimal values (e.g., 0.65 for high risk), not percentages.
Rate Limits
API requests are rate-limited to ensure fair usage and system stability. If you exceed rate limits, you’ll receive a 429 status code.Contact [email protected] to discuss higher rate limits for enterprise usage.
Health Check
Use the health check endpoint to verify API availability:Error Handling
The API uses standard HTTP status codes and returns detailed error information:| Status Code | Meaning |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid input |
| 401 | Unauthorized - Invalid or missing API key |
| 429 | Rate Limit Exceeded |
| 500 | Internal Server Error |