Simple Node.js scripts to create video clips using the Reka AI API.
- Requires Node.js 18 or later (uses native
fetch) - Set your API key:
export REKA_API_KEY=your_key_here
Creates a clip from a YouTube video.
node clip_generator.jsEnter the video URL when prompted. The script streams progress and shows the Job ID (save it if interrupted).
Sample Output:
Check the status of a clip job using its Job ID.
node check_status.jsEnter the Job ID when prompted. Checks every 30 seconds until complete. Press Ctrl+C to stop.
Sample Output:
You can also run the scripts using npm:
npm run clip # Run clip_generator.js
npm run status # Run check_status.js
