All Endpoints
All endpoints require a valid sk-prysm-* API key in the Authorization: Bearer header unless noted.
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/chat/completions | Chat completions (OpenAI-compatible). Supports streaming. |
| POST | /api/v1/completions | Text completions (legacy). Supports streaming. |
| POST | /api/v1/embeddings | Generate embeddings for text input. |
| GET | /api/v1/models | List all supported models grouped by provider. No auth required. |
| GET | /api/v1/health | Health check. Returns status, supported models, and version. No auth required. |
| POST | /api/mcp | MCP governance endpoint (JSON-RPC 2.0 over Streamable HTTP). |
WebSocket Live Feed
Connect to the WebSocket endpoint to receive real-time trace events.
const ws = new WebSocket("wss://prysmai.io/ws/live-feed?projectId=YOUR_PROJECT_ID");
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
if (data.type === "trace") {
console.log("New trace:", data.trace);
}
};