> ## Documentation Index
> Fetch the complete documentation index at: https://docs.linkmodel.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Video Generation

> Generate videos with the LinkModel CLI, configure model-specific options, and resume long-running tasks.

Create a video generation task and wait for completion:

```bash theme={null}
lkm video "Empty cinematic establishing shot of a misty city street after rain"
```

`gen` is optional inside the `video` group:

```bash theme={null}
lkm video "a cinematic product orbit"
lkm video gen "a cinematic product orbit"
```

The built-in video default is `kling-v3`.

## Select a Model

Use `-m` or `--model`:

```bash theme={null}
lkm video gen "a cinematic product orbit" \
  -m kling-v3 \
  --duration 5 \
  --resolution 720P \
  --size 16x9 \
  --extends-cfg-scale 0.7
```

Model-specific options are generated from bundled LinkModel schemas. For example, `kling-v3` exposes options such as `--duration`, `--resolution`, `--size`, `--extends-audio`, `--extends-cfg-scale`, `--first-frame-image`, and `--last-frame-image`.

## Image-to-Video

Use model-specific frame fields when supported:

```bash theme={null}
lkm video gen "animate this product with a slow camera move" \
  -m kling-v3 \
  --first-frame-image https://example.com/first-frame.png
```

Check the selected model schema before using frame or extension flags:

```bash theme={null}
lkm models show kling-v3
```

## Resume a Video Task

Use `status` after `--no-wait`, timeout, or `Ctrl-C`:

```bash theme={null}
lkm video status <task_id>
lkm video status <task_id> --wait
lkm video status <task_id> --wait --no-download
```

Server-side tasks continue running after local timeout or interruption.

## Related

* [Model Schemas](/cli-model-schemas)
* [Automation](/cli-automation)
