All Endpoints

All endpoints require a valid sk-prysm-* API key in the Authorization: Bearer header unless noted.

MethodEndpointDescription
POST/api/v1/chat/completionsChat completions (OpenAI-compatible). Supports streaming.
POST/api/v1/completionsText completions (legacy). Supports streaming.
POST/api/v1/embeddingsGenerate embeddings for text input.
GET/api/v1/modelsList all supported models grouped by provider. No auth required.
GET/api/v1/healthHealth check. Returns status, supported models, and version. No auth required.
POST/api/mcpMCP 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);
  }
};