Validate and repair a recipe or plan
validate_edit_planCheck a recipe (or a bare edit plan) before building a link. Repairs what it can (template names, aspect words, Dropbox links, option values, dates) and lists errors and warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| logo | No | https link to a logo image. | |
| plan | No | A full edit plan (get_edit_plan_schema). | |
| brief | No | What to make, in words, e.g. "30-second Diwali reel for Sharma Sweets, 20% off". Picks a template and fills fields when they are missing. | |
| media | No | https links to photos/clips/songs (hosts must allow CORS, e.g. raw.githubusercontent.com, res.cloudinary.com). | |
| music | No | house | cinematic | lofi | tabla | corporate | none | https link to a song. | |
| steps | No | Media to fetch or make in the viewer’s browser before editing (max 10 steps, 12 items). Stock: {"type":"stock","query":"indian sweets","kind":"photo|illustration|video","count":3,"orientation":"vertical"} uses Pixabay with the viewer’s free key. Generate: {"type":"generate","mode":"t2i|t2v|i2v","prompt":"…","seconds":5,"aspect":"9:16"} uses the viewer’s own AI keys or ComfyUI; they confirm the ₹ cost first. Nothing runs on this server. | |
| style | No | Edit style for your own clips (needs media). | |
| aspect | No | ||
| fields | No | Template field values by field id. | |
| recipe | No | A video recipe (see get_edit_plan_schema {which:"recipe"}). You can also pass its keys directly. | |
| template | No | Template id from list_video_templates. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| errors | Yes | ||
| recipe | No | ||
| repaired | Yes | ||
| warnings | Yes |