Register a webhook endpoint to receive video generation results asynchronously instead of polling.
Not yet available. Webhook delivery for video jobs is tracked to be built — today, poll GET /v1/videos/{id} for the job result.
Video generation is asynchronous: you submit a job and fetch the result when it is ready. The shipped mechanism for that is polling.
Submit a job with model, prompt, and optionally seconds:
The endpoint responds 202 Accepted with a job id and an absolute poll URL:
Poll GET /v1/videos/{id} until the job settles. The response is flat — id, status, and, once finished, a top-level url (or error):
Statuses are pending, in_progress, completed, and failed. A failed job carries an error slug instead of a url:
Billing is per second of output, settled on completion; a failed job releases the reservation and charges nothing.
Webhook delivery is planned as an alternative to polling: you would register a callback URL and OpenDunes would POST the finished job to it, with signed payloads and automatic retries. Until that ships, the poll loop above is the supported path.