Dry-Run & Price a Video Generation Plan
plan_video_generationValidate video generation parameters and return an exact dry-run quote for segment count, duration, and credit cost without charging credits or starting a job.
Instructions
Validate parameters and quote exact segment count, duration, and total credits via POST /v1/generations/plan without charging credits or enqueueing a job.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "<mode>",
"model_id": "<model_id>"
},
"name": "plan_video_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Generation mode (e.g. 't2v' or 'i2v'). | |
| ratio | No | Aspect ratio (e.g. '16:9', '9:16', '1:1', '3:4', '4:3', '21:9'). | |
| params | No | Optional raw GenerationParamsIn object (merged with top-level prompt/duration_s/resolution/ratio). | |
| prompt | No | Scene, motion, camera, and audio prompt. | |
| api_key | No | Optional AI Chili API key (chili_sk_...). Defaults to AICHILI_API_KEY env var. | |
| model_id | Yes | Model ID (e.g. 'h3-vdn', 'wan3.0-video', 'seedance-2.5', 'minimax-h3-gmi', 'avatar-talk'). | |
| workflow | No | Optional model workflow ID (e.g. 'general', 'reference', 'photo', 'talk'). | |
| ref_roles | No | Optional roles matching ref_asset_ids (reference_image, reference_video, first_frame, last_frame). | |
| duration_s | No | Requested duration in seconds. | |
| resolution | No | Output resolution matching the selected model's registry entry. | |
| upscale_4k | No | Include 4K upscale in the dry-run quote. | |
| ref_asset_ids | No | Optional uploaded reference image/video asset UUIDs for i2v. | |
| optimize_prompt | No | Enable prompt optimization (default true on server). |