Nara Lens/Docs

WebSocket /stream

Real-time video analysis via WebSocket connection.

Beta
WS/v1/stream

Establish a WebSocket connection for real-time video analysis.

Message Types

Authentication

JSON
{
  "type": "auth",
  "api_key": "your-api-key"
}

Configuration

JSON
{
  "type": "config",
  "perception": "detect:person,vehicle",
  "fps": 30
}

Frame

JSON
{
  "type": "frame",
  "data": "base64-encoded-frame",
  "timestamp": 1705432800000
}