# Photo and video generation

> Generate images and videos from the command line with clai photo and clai video.

Canonical URL: https://www.clai.chat/docs/guides/photo-and-video/ · Version: 1.0 · Updated: 2026-10-21

Full site index: https://www.clai.chat/llms.txt

In addition to text and tool-assisted queries, `clai` provides dedicated modes for image (`photo`) and video (`video`) generation.

## Generating images with clai photo

Configure your preferred image model in `photoConfig.json` (`clai setup 0`) or pass `-pm` on the command line:

```sh
clai -pd ./assets -pp icon photo "Minimalist terminal icon in emerald green"
```

- `-pm <model>` (`-photo-model`) — Override the photo model.
- `-pd <dir>` (`-photo-dir`) — Directory to write generated images into (default `$HOME/Pictures`).
- `-pp <prefix>` (`-photo-prefix`) — Filename prefix for generated images (default `clai`).

## Generating videos with clai video

Configure video generation settings in `videoConfig.json` (`clai setup 0`) or pass `-vm`:

```sh
clai -vd ./clips -vp demo video "Retro CRT terminal typing green monospace code"
```

- `-vm <model>` (`-video-model`) — Override the video model.
- `-vd <dir>` (`-video-dir`) — Output directory for generated video files (default `$HOME/Videos`).
- `-vp <prefix>` (`-video-prefix`) — Filename prefix for generated videos (default `clai`).
