| name | ai-video-gen |
| description | Generate videos using the ai-vid CLI with AI SDK (multi-provider: Google Veo, FAL AI). Use when: (1) Generating videos from text prompts, (2) Batch processing multiple prompts. Requires provider API key (GOOGLE_GENERATIVE_AI_API_KEY or FAL_API_KEY). Located at ~/Developer/ai-vid. |
AI Video Generation Skill
Generate videos using the ai-vid CLI with Vercel AI SDK.
When to use
- Generate videos from text prompts
- Batch process multiple video generation jobs
Prerequisites
-
Install CLI:
bun add -g ai-vid
git clone https://github.com/aryasaatvik/ai-vid
cd ai-vid
bun install
bun run build
-
Set API key (choose one):
- Google:
export GOOGLE_API_KEY=..., export GEMINI_API_KEY=..., or export GOOGLE_GENERATIVE_AI_API_KEY=...
- FAL AI:
export FAL_API_KEY=...
Quick Decision Tree
Video Generation?
├─ Generate single video → ai-vid generate
└─ Many videos at once → ai-vid batch
Commands
generate
Generate videos from text prompts.
ai-vid generate --prompt "A cat walking in a park"
ai-vid generate --prompt "Ocean waves" --duration 5
ai-vid generate --prompt "City timelapse" --provider google --model "veo-3.1-generate-preview"
batch
Process multiple jobs from JSONL file.
echo '{"prompt": "A red car driving", "out": "red-car.mp4"}
{"prompt": "A blue car driving", "out": "blue-car.mp4"}' > jobs.jsonl
ai-vid batch --input jobs.jsonl --outDir ./output
Options Reference
| Flag | Description | Default |
|---|
--prompt, -p | Text prompt | Required |
--provider, -P | AI provider: google, fal | google |
--model, -m | Model ID | Provider default |
--duration, -d | Video duration (seconds) | Provider default |
--fps | Frames per second | Provider default |
--count, -c | Number of videos | 1 |
--seed | Random seed | Random |
--output, -o | Output file path | output.mp4 |
--outDir | Output directory | Current dir |
Providers & Models
| Provider | Default Model | Environment Variable |
|---|
| Google | veo-3.1-generate-preview | GOOGLE_API_KEY, GEMINI_API_KEY, or GOOGLE_GENERATIVE_AI_API_KEY |
| FAL AI | (various) | FAL_API_KEY |
Google Veo Models
| Model | Description |
|---|
| veo-3.1-generate-preview | Latest Veo 3.1 (default) |
| veo-3.1-fast-generate-preview | Faster generation |
| veo-2.0-generate-001 | Veo 2 |
Examples
Nature Video
ai-vid generate --prompt "A waterfall in slow motion, mist rising, golden hour lighting" --duration 5 --provider google
City Timelapse
ai-vid generate --prompt "Time-lapse of a busy city intersection at night, car lights trails" --provider google --model "veo-3.1-fast-generate-preview"
Troubleshooting
- "Missing API key": Ensure your API key is set in the environment
- "No video data available": Check if the model supports the requested parameters
- Rate limiting: Reduce
--concurrency for batch jobs