Skip to main content

Quickstart

This guide walks through registering a model, creating a version, sending prediction logs, checking drift status, and running a fairness evaluation using the REST API.

Prerequisites

  • A Kora AI Governance account (sign up)
  • Your API key (starts with test_ for sandbox)
  • Your Tenant ID (UUID from your dashboard)

Step 1: Register a model

Create an entry in the model registry.

curl -X POST https://api.korastratum.com/ai-governance/api/v1/models \
-H "Authorization: Bearer $AG_API_KEY" \
-H "X-Tenant-ID: $AG_TENANT_ID" \
-H "Content-Type: application/json" \
-d '{
"name": "credit-risk-scorer",
"display_name": "Credit Risk Scoring Model",
"description": "Predicts probability of default for retail loan applications",
"use_case": "CREDIT_SCORING",
"risk_tier": "HIGH",
"owner_team": "risk-analytics",
"data_sensitivity": "PII",
"framework": "XGBoost",
"tags": ["retail", "lending", "production"]
}'

Save the returned id — you'll use it for all subsequent operations.

Step 2: Create a model version

Push a new version with training metadata and performance benchmarks.

curl -X POST https://api.korastratum.com/ai-governance/api/v1/models/$MODEL_ID/versions \
-H "Authorization: Bearer $AG_API_KEY" \
-H "X-Tenant-ID: $AG_TENANT_ID" \
-H "Content-Type: application/json" \
-d '{
"version": "1.2.0",
"stage": "STAGING",
"training_dataset": "retail_loans_2024_2025",
"training_samples": 1250000,
"metrics": {
"auc_roc": 0.892,
"gini": 0.784,
"ks_statistic": 0.612,
"accuracy": 0.867
},
"artifact_uri": "gs://models/credit-risk-scorer/v1.2.0/model.xgb"
}'

Step 3: Send prediction logs for monitoring

Push inference logs so the platform can track metrics and detect drift.

curl -X POST https://api.korastratum.com/ai-governance/api/v1/models/$MODEL_ID/predictions \
-H "Authorization: Bearer $AG_API_KEY" \
-H "X-Tenant-ID: $AG_TENANT_ID" \
-H "Content-Type: application/json" \
-d '{
"version_id": "v1a2b3c4-...",
"predictions": [
{
"prediction_id": "p001",
"timestamp": "2026-04-07T14:30:00Z",
"features": {"income": 85000, "age": 34, "employment_years": 6, "debt_ratio": 0.32},
"prediction": 0.12,
"label": "LOW_RISK",
"latency_ms": 23
}
]
}'

Step 4: Check drift status

curl https://api.korastratum.com/ai-governance/api/v1/models/$MODEL_ID/drift?version_id=$VERSION_ID \
-H "Authorization: Bearer $AG_API_KEY" \
-H "X-Tenant-ID: $AG_TENANT_ID"

Step 5: Run a fairness evaluation

curl -X POST https://api.korastratum.com/ai-governance/api/v1/models/$MODEL_ID/fairness/evaluate \
-H "Authorization: Bearer $AG_API_KEY" \
-H "X-Tenant-ID: $AG_TENANT_ID" \
-H "Content-Type: application/json" \
-d '{
"version_id": "v1a2b3c4-...",
"protected_attributes": ["gender", "age_group", "region"],
"metrics": ["disparate_impact", "equalized_odds", "demographic_parity"],
"favorable_outcome": "APPROVED",
"dataset_id": "eval_set_2026_q1"
}'

What's next

  • Authentication — API key formats, environments, and rate limits
  • API Reference — Explore every endpoint across all AI governance services