Validate a render and estimate credits
validateValidate a movie definition to preview credit cost and catch errors before rendering. Returns estimated credits and reports errors for invalid inputs.
Instructions
Validate a Movie definition (and optional webhook) WITHOUT starting a render or consuming any credits, and return the estimated credit cost. Use this to preview cost and catch errors before calling render. estimatedCredits equals the credits render would reserve for the same body. Invalid Movies or SSRF-rejected webhook URLs are returned as errors (HTTP 400) from the API. Authentication and watermarking are set by the VIDHOOK_API_KEY environment variable only (never a tool argument): vh_test_… renders a free/watermarked draft, vh_live_… renders clean/paid. The target environment is selected independently by VIDHOOK_API_BASE_URL (base URL), not by the key type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| movie | Yes | Movie definition (json2video-compatible). resolution/scenes/elements etc. All asset references (video/image/audio src) must be URLs — vidhook does not generate assets; compose them on the agent side. Validated by the vidhook API. | |
| webhook | No | Optional completion-notification webhook (alongside the Movie fields). |