Photo and video generation

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

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:

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:

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).

Last updated October 21, 2026

Type to search the documentation.