Sign in

Recipe: daily Short via cron

bash
# m h dom mon dow  command
0 8 * * *  CLIPFOUNDRY_API_KEY=cf_live_… npx @clipfoundry/cli create \
  -t "Today's science fact" --style cinematic --wait

Or in a scheduled function with the SDK:

typescript
import { ClipFoundry } from '@clipfoundry/sdk';
const cf = new ClipFoundry({ apiKey: process.env.CLIPFOUNDRY_API_KEY });
const job = await cf.jobs.create({ script: todaysScript(), style: 'cinematic', voiceId: 'el_brian' });
const final = await cf.jobs.waitUntilDone(job.jobId);
await publishToYouTube(final.videoUrl); // your upload step