Skip to content

Generate Video from a Local Image

  1. Find a model that supports image-to-video.

    Terminal window
    anycap video models
    anycap video models <model-id> \
    | jq -r '.model.operations[].modes[].mode'
  2. Inspect the exact input contract.

    Terminal window
    anycap video models <model-id> schema --mode image-to-video
  3. Generate and download the video.

    Terminal window
    anycap video generate \
    --prompt "animate the subject with a slow camera push-in" \
    --model <model-id> \
    --mode image-to-video \
    --param images=./reference.jpg \
    -o reference-motion.mp4

The images parameter accepts a local path or HTTP(S) URL. The CLI uploads a local file before invoking the selected model.