Black Friday: 50% off Ultra annual + Unlimited Seedance 2.5 for 7 days. · Terms apply
50% off Ultra annual + Unlimited Seedance 2.5 for 7 days · Terms applyBlack Friday: 50% off Ultra annual + Unlimited Seedance 2.5 for 7 days. · Terms apply
Describe the video you want to create...

How to generate AI video from the terminal with the Picsart CLI

Create video with Kling, Sora, Veo, Runway, and Luma. Animate images, extend clips, add soundtracks, and chain sequences. Cover artwork is an AI-generated illustration for the fictional REELNIVOR campaign.

  • Category: SKILLS
  • Reading time: 7 min
  • Difficulty: Intermediate

What you'll learn

  • Generate video from text prompts or animate existing images
  • Choose the right video model for speed vs. cinematic quality
  • Extend 5-7 second clips into longer sequences
  • Attach AI-generated soundtracks to your video clips
How to generate AI video from the terminal with the Picsart CLI

Generate AI video step by step

  1. STEP 1: Open the CLI

    • On web: Go to picsart.com/cli → Install if you haven't already
    • On mobile: Not applicable — video generation runs in terminal only
    Get the CLI
  2. STEP 2: Choose video generation mode

    Pick your input type and model:

    • Text-to-video (T2V): Generate from a prompt — use Sora for cinematic quality, Kling for faster turnaround
    • Image-to-video (I2V): Animate a static image — point to your file with --image hero.webp
    • Video-to-video (V2V): Transform an existing clip — use --video input.mp4 to restyle or extend
    • Extension mode: Add --extend to chain 7-second clips into longer sequences
  3. STEP 3: Run the generation

    Type gen-ai generate with your prompt, model, and optional image input. Video models take 30 seconds to a few minutes depending on length and resolution. The CLI shows progress updates. Your file saves to the current directory when done.

  4. STEP 4: Review and refine

    Check the video quality and motion: Not perfect? Generate again with a more specific prompt, switch models, or use --extend to chain multiple clips for longer sequences.

    • Verify smooth motion and no glitchy frames
    • Check that camera movement matches your prompt direction
    • Look for character consistency if animating people or objects
    Start generating video

Tips for best results

  • Use Sora for cinematic quality

    Sora produces the highest visual fidelity with natural motion and lighting. It's slower (2-3 minutes per clip) but worth it for hero videos or polished social content. Use Kling if you need faster turnaround and can accept slightly less polish.

  • Describe camera movement in your prompt

    Add phrases like "camera slowly pans left," "zoom into subject," or "drone shot rising upward" to control motion. Without camera direction, the AI picks a default movement that might not match your intent.

  • Chain extensions for longer clips

    Most models generate 5-7 seconds per run. Use gen-ai extend to stitch multiple generations into a 20-30 second sequence. The CLI maintains character and scene consistency across extensions. Add --soundtrack to attach an AI-generated music track afterward.

  • Animate images for product demos

    If you have a hero product photo, use --image to animate it instead of generating from scratch. The AI adds realistic motion while keeping your product centered. Perfect for turning static catalog shots into social reels.

Frequently asked questions

  • Use the --image flag with gen-ai generate and point to your file. Example: gen-ai generate --image hero.webp --prompt "camera slowly zooms in" -m kling. The AI animates your image based on the prompt description. This works with any JPG, PNG, or WebP file. The result is a 5-7 second video clip saved to your current directory.