Skip to main content
Requires Python 3.9+ and requests.
vidgen.py

Usage

The field name in the JSON body is idempotencyKey (camelCase), not idempotency_key. A typo means the server generates its own key and your retry is unprotected.

Batch pattern

For async services (FastAPI, Django), call wait_for_job in a separate worker, not in the request handler — two hours of polling would exhaust your connections.