generate_video
Create text- or image-to-video clips from prompts on a local GPU; returns a job ID immediately for polling with job_status because rendering takes minutes.
Instructions
Generate a video with the engine-native endpoint POST /sdcpp/v1/vid_gen — this is LocModel GUI 视频 → 生成视频 (text/image to video, e.g. Wan2.2-TI2V, Wan2.1, LTX), NOT the lip-sync sub-panel. Returns a job_id immediately (wait_seconds=0) because a clip takes minutes; poll with job_status. Do NOT use it for 对口型视频 -> use lipsync_generate.
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": {
"prompt": "<prompt>"
},
"name": "generate_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Default from the engine (16 for Wan2.2-TI2V). | |
| seed | No | -1 / omit for random. | |
| steps | No | Sampling steps (engine default 4). | |
| width | No | Default 832; multiple of 8, 64..4096. | |
| height | No | Default 480; multiple of 8, 64..4096. | |
| prompt | Yes | Text prompt describing the shot. | |
| dry_run | No | Only build and return the payload. | |
| cfg_scale | No | maps to sample_params.guidance.txt_cfg. | |
| end_image | No | Last frame for flf2v recipes. | |
| scheduler | No | 'discrete' / 'karras' / 'exponential' ... 'default' is rejected by the engine. | |
| flow_shift | No | Flow shift (engine default 12.0). | |
| init_image | No | Local image path / data URI / base64 (i2v, first frame). | |
| output_dir | No | Where to save the video file. | |
| ref_images | No | Reference images (data URI / path). | |
| vae_tiling | No | Enable VAE tiling to save VRAM. | |
| moe_boundary | No | MoE boundary for two-expert models (Wan2.2 A14B). | |
| video_frames | No | Frame count; the engine rounds it to the recipe's frame_step (4/8/17). | |
| wait_seconds | No | 0 (default) = return job_id immediately; >0 = wait that long then report. | |
| custom_sigmas | No | Numeric sigma array (numeric only; names/CSV are 400). | |
| output_format | No | Default webm. | |
| sample_method | No | Sampler name, e.g. 'euler'. | |
| vace_strength | No | VACE strength. | |
| control_frames | No | VACE control frames. | |
| negative_prompt | No | Negative prompt. | |
| high_noise_steps | No | Two-pass sampling; NOT supported by Wan2.2-TI2V (400). |