Production model APIs.
Direct JSON endpoints for Structr, Vision, and Triagna on api.academica.sh using one API key.
https://api.academica.sh/v1
POST /v1/structr · mode=repair
Request · Format Repair & Secret Redaction
1POST https://api.academica.sh/v1/structr2X-API-Key: ac_live_9f4b...837a3{4 "model": "structr",5 "mode": "repair",6 "format": "auto",7 "redact_secrets": { "enabled": true, "reversible": true },8 "text": "PAYMENT_KEY=pk_prod_4eC39H... { tool: 'patch', ok: True, }"9}
Response · 200 OK · Verified Output0.6 ms
1{2 "ok": true,3 "model": "structr",4 "format_detected": "json",5 "redactions": [{ "token": "[REDACTED:PAYMENT_KEY#1]", "restorable": true }],6 "repaired": "{\"tool\":\"patch\",\"ok\":true}",7 "elapsed_ms": 0.68}
32 FormatsStructured repairJSON, SQL, YAML, XML, CSV, and diffs
ReversibleSecret redactionMasks live keys and restores exact values
Multi-HopOwnership & policy graphsDetects circular holdings and access rules
ExactConstraint solverOptimal assignment and conflict-free sets
Endpoint Reference
| Endpoint | Model | Auth Header | Behavior |
|---|---|---|---|
| POST /v1/structr | Structr | X-API-Key | Repairs malformed payloads, validates schemas, or masks live secrets reversibly. |
| POST /v1/structr (graph) | Structr | X-API-Key | Resolves multi-hop corporate ownership, wash cycles, and policy inheritance. |
| POST /v1/structr (solve) | Structr | X-API-Key | Computes exact assignment, matching, and conflict-free selections on CPU. |
| POST /v1/proxy/openai/* | Structr | X-API-Key | Masks outbound secrets and repairs inbound tool-call JSON, SQL, and diffs. |
| POST /v1/vision/video/step | Vision | X-API-Key | Runs frame-by-frame tracking, crowd counting, 3D depth, and foreground cutouts. |
| POST /v1/vision/depth | Vision | X-API-Key | Returns calibrated metric depth maps and surface normals for single frames. |
| POST /v1/vision/matte | Vision | X-API-Key | Extracts clean foreground alpha masks for product and studio video. |
| POST /v1/clinical/gate | Triagna | X-API-Key | Screens uploaded scans by anatomical modality and rejects out-of-scope images before inference. |
| POST /v1/clinical/recist | Triagna | X-API-Key | Measures target lesion diameters, sum of longest diameters, and RECIST 1.1 response class. |
