webhook parameter in the client request body when creating a prediction. The server makes HTTP requests to the provided URL with the current state of the prediction object in the request body.
Basic Usage
URL where webhook notifications will be sent. The server will make POST requests to this URL with the prediction state in the request body.
Array of event types to trigger webhook notifications. Valid values:
start, output, logs, completed. If not specified, all event types will trigger webhooks.Webhook Events
The server makes requests to the provided URL at the following times:Event Filtering
By default, the server sends requests for all event types. Clients can specify which events trigger webhook requests with thewebhook_events_filter parameter in the prediction request body.
For example, the following request specifies that webhooks are sent by the server only at the start and end of the prediction:
Webhook Payload
The webhook request body contains the current state of the prediction object. The exact fields depend on the prediction status and your model’s schema.Example: Start Event
Example: Output Event
Example: Logs Event
Example: Completed Event (Success)
Example: Completed Event (Failure)
Webhook Timing
Webhook requests forstart and completed event types are sent immediately.
Webhook requests for output and logs event types are sent at most once every 500ms. This interval is not configurable.
The only supported way to receive updates on the status of predictions started asynchronously is using webhooks. Polling for prediction status is not currently supported.
Response Fields
Unique identifier for the prediction (if provided when creating the prediction).
Current prediction status. One of:
starting, processing, succeeded, failed, or canceled.The input parameters provided when creating the prediction.
The output from the prediction. Only present after output is generated.
Logs captured from the prediction. Updated incrementally as the prediction runs.
Error message if the prediction failed.
Prediction metrics (only present on completion).
ISO 8601 timestamp of when the prediction was created.
ISO 8601 timestamp of when the prediction completed (only present on completion).