YouTube Shorts Automation Pipeline

Publishing YouTube Shorts consistently is a volume game, the algorithm rewards frequent uploads. Manually creating each Short is a bottleneck. agent-media CLI is a terminal tool, which means it integrates directly into shell scripts, cron jobs, and CI/CD pipelines. You can build an automated pipeline that generates, reviews, and queues Shorts without manual intervention for every video.

First video free, no card
Street interview, one question, answered to camera.AI-generated
UGC talking headSeedance 2.5

Recommended setup

Quick Generation

Fast generation with strong human-subject results, the workhorse for automated pipelines that need consistent quality across hundreds of outputs.

200-400 per video

agent-media generate video -p "Person demonstrating a life hack, POV style" --aspect-ratio 9:16 --sync

Full Production

High prompt adherence ensures that scripted prompts produce predictable results, important when generation runs unattended in a pipeline.

200-400 per video

agent-media generate video -p "Satisfying slow-motion pour of honey into a glass" --aspect-ratio 9:16 --sync

Cinematic B-roll

Best choice when your pipeline includes nature, travel, or scenic content, its cinematic quality requires less post-generation filtering.

300-500 per video

agent-media generate video -p "Underwater coral reef, tropical fish, crystal clear water" --aspect-ratio 9:16 --sync

The workflow

  1. 01

    Create a prompt list

    Maintain a text file with one prompt per line. This becomes the input for your batch generation script. You can curate prompts weekly and let the pipeline handle the rest.

    cat prompts.txt # Line 1: "Satisfying paint mixing in slow motion" # Line 2: "Puppy seeing snow for the first time" # Line 3: "Time-lapse of flowers blooming"
  2. 02

    Run a batch generation script

    A simple shell loop reads each prompt and fires off a generation job. Without --sync, jobs queue in parallel on the server, dramatically reducing total wait time for large batches.

    while IFS= read -r prompt; do agent-media generate video -p "$prompt" --aspect-ratio 9:16; done < prompts.txt
  3. 03

    Monitor job completion

    Check the status of all queued jobs. The CLI shows job IDs, status, and download links. You can filter by status or pipe the output to other tools for automated monitoring.

    agent-media jobs list
  4. 04

    Schedule with cron

    Add agent-media commands to your crontab to generate content on a schedule. Combine with a rotating prompt list to publish fresh Shorts every day without any manual steps.

    # crontab -e 0 6 * * 1 /usr/local/bin/agent-media generate video -p "Monday motivation quote animation" --aspect-ratio 9:16

What it costs

Talking ads are 28 credits a second, plus 15 for captions. Selfie clips are 45 credits plus 28 a second. Plans start at $39 a month for 3,900 credits, and extra credits start at $50 for 5,000. Credits you buy never expire.

What do you sell?

First video free, no card