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/structr
2X-API-Key: ac_live_9f4b...837a
3{
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.6
8}
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

EndpointModelAuth HeaderBehavior
POST /v1/structrStructrX-API-KeyRepairs malformed payloads, validates schemas, or masks live secrets reversibly.
POST /v1/structr (graph)StructrX-API-KeyResolves multi-hop corporate ownership, wash cycles, and policy inheritance.
POST /v1/structr (solve)StructrX-API-KeyComputes exact assignment, matching, and conflict-free selections on CPU.
POST /v1/proxy/openai/*StructrX-API-KeyMasks outbound secrets and repairs inbound tool-call JSON, SQL, and diffs.
POST /v1/vision/video/stepVisionX-API-KeyRuns frame-by-frame tracking, crowd counting, 3D depth, and foreground cutouts.
POST /v1/vision/depthVisionX-API-KeyReturns calibrated metric depth maps and surface normals for single frames.
POST /v1/vision/matteVisionX-API-KeyExtracts clean foreground alpha masks for product and studio video.
POST /v1/clinical/gateTriagnaX-API-KeyScreens uploaded scans by anatomical modality and rejects out-of-scope images before inference.
POST /v1/clinical/recistTriagnaX-API-KeyMeasures target lesion diameters, sum of longest diameters, and RECIST 1.1 response class.