- Node.js 20 or later — check with
node --version- Install via nvm (recommended) or nodejs.org
- API keys — you'll need at least an OpenAI key and a stock footage key to generate real videos (see API Keys below)
npm install -g @45ck/content-machine
# Verify
cm --helpOr run without installing:
npx -y @45ck/content-machine --helpFor word-level timestamp accuracy and the best caption sync, install Whisper:
cm setup whisper --model baseThis downloads a small (~150MB) speech recognition model. Without Whisper, Content Machine falls back to estimated timestamps that are less accurate.
Some features (Ken Burns motion effects, gameplay transcoding) use ffmpeg. Install it if you plan to use motion strategies:
- macOS:
brew install ffmpeg - Ubuntu/Debian:
sudo apt install ffmpeg - Windows: download from ffmpeg.org and add to PATH
Set these as environment variables or in a .env file in your project directory.
| Key | What it's for | Get one at |
|---|---|---|
OPENAI_API_KEY |
Script generation (LLM) | platform.openai.com |
| Key | What it's for | Get one at |
|---|---|---|
PEXELS_API_KEY |
Stock video footage | pexels.com/api (free) |
GOOGLE_API_KEY |
AI-generated images (Nanobanana) + Gemini LLM | aistudio.google.com |
| Key | What it's for |
|---|---|
ANTHROPIC_API_KEY |
Use Claude as the LLM instead of OpenAI |
GEMINI_API_KEY |
Alternative to GOOGLE_API_KEY for Gemini |
PIXABAY_API_KEY |
Alternative stock footage provider |
TAVILY_API_KEY |
Web search for research-driven scripts |
BRAVE_SEARCH_API_KEY |
Alternative web search provider |
ELEVENLABS_API_KEY |
Premium TTS voices |
OPENAI_API_KEY=sk-...
PEXELS_API_KEY=...Full list of environment variables: docs/reference/ENVIRONMENT-VARIABLES.md
Run the built-in diagnostics:
cm doctorThis checks for Node.js version, API key presence, Whisper installation, and other dependencies.
- Quickstart — generate your first video
- Configuration — customize defaults
- Examples — real-world workflows