WebSocket Notifications
GenAIPro provides real-time notifications for Labs task progress via WebSocket.Connection
Connect to the WebSocket endpoint with your API token as a query parameter:Events
labs_status_updated
Sent when a Labs TTS task progresses. The process_percentage field indicates completion progress (0–100).
| Field | Type | Description |
|---|---|---|
type | string | Event type: labs_status_updated |
payload.task_id | string | ID of the task being processed |
payload.process_percentage | integer | Processing progress (0–100). 100 means the task is complete. |
Example sequence
When
process_percentage reaches 100, the task is complete. You can then fetch the result via GET /v1/labs/task/{task_id}.
