Connection
Connect to the WebSocket endpoint with your API key:Python SDK
Event Types
Subscribe to specific events or use wildcards:| Pattern | Description |
|---|---|
job.completed | Job finished successfully |
job.failed | Job failed with error |
job.cancelled | Job was cancelled |
job.progress | Execution progress update |
job.* | All job events |
input.ready | Input file is ready |
input.failed | Input upload failed |
input.* | All input events |
model.ready | Model upload complete |
model.* | All model events |
* | All events |
Wait for Job
Convenience function to wait for a specific job:With Progress Callbacks
Protocol Reference
Connection Flow
- Connect with API key in query string
- Receive
connectedmessage with session ID - Send
subscribeto register for events - Receive
subscribedconfirmation - Receive
eventmessages as they occur - Send
pingperiodically to keep connection alive