Skip to content

Can I mark the customer's video complete as soon as a Replicate output webhook arrives?

Use output events to record intermediate material where the model supports it. Treat completion as the terminal event and inspect its specific status. Keep final delivery conditional on writing and verifying required files.

SHIP A RELIABLE INTEGRATIONAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval

Separate previews from delivery

Group events by prediction. A preview can be ready for review while the rest of the result has not arrived. Keep the expected output count in your local record.

Confirm actual success

Inspect the terminal state and stored artefacts before updating the customer view. Preserve a separate failure path when partial artefacts exist.

Example

The first of multiple outputs can appear before the prediction succeeds or ends with an error.

Pass condition

A partial or failed result does not trigger the final delivery receipt; fulfilled output does.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation