Webhooks provide real-time updates about your prediction. Specify an endpoint when you create a prediction, and Replicate will send HTTP POST requests to that URL when the prediction is created, updated, and finished.
Here are some example scenarios where webhooks are useful:
Note: Webhooks are handy, but they're not strictly necessary to use Replicate, and there are other ways to receive updates. You can also poll the predictions API or use server-sent events (SSEs) to check the status of a prediction over time.
Watch: Learn more about how to use webhooks → YouTube (14 minutes).