Why combining ~$9 of AI assets with React code scales paid social cleanly
Re-prompting a video AI model 50 times to swap product SKUs, pricing, and seasonal promo codes guarantees warped text and triple-digit API bills—while duplicating 50 After Effects comps manually burns an entire week of editor time. By treating AI purely as the source of 3 reusable, text-free visual hooks and letting a deterministic Remotion + FFmpeg compiler inject SKU photos, prices, voiceovers, and vector brand slates from JSON, your team ships 50 pixel-sharp ads on demand and updates prices across all 50 videos for $0.
For the full economic model comparing manual NLE vs. pure AI vs. hybrid programmatic pipelines, see our Programmatic AI Video and Ad Automation Guide.
Step 1: Generate and pre-conform 3 text-free AI visual hook plates (~$2.25)
Start by generating 3 distinct 00:00–00:03 opening motion concepts (for example: Macro Product Action, Problem Pattern-Interrupt, and Ambient Lifestyle Reveal) from locked opening PNGs via Runway Gen-4 Turbo ($0.25/5s), which animates a starting image and renders silent, or Runway Gen-4.5 ($0.60/5s), Runway’s newer model. Budgeting 3 takes per hook on Gen-4 Turbo is 9 clips × $0.25 = $2.25; the same 9 takes on Gen-4.5 cost $5.40. Keep all three clips 100% free of text and leave calm negative space inside the middle-upper safe core.
Both Runway models render 720p-class frames, so scale the plate up inside the composition, or run Runway Upscale first when the hook fills the whole 1080×1920 frame. For alternative silent plates, PixVerse V6 bills $0.045/sec at 720p silent ($0.090/sec at 1080p silent with generate_audio_switch: false) and Pika H3 Flex runs $0.02/sec at 768p ($0.035/sec 1080p upscaled), whereas Kling 4.0 ($0.79 per 5-second 720p clip) always renders audio you discard here.
Before importing any AI clip into Remotion, read its real frame rate with ffprobe -v error -select_streams v:0 -show_entries stream=r_frame_rate -of csv=p=0 raw_hooks/hook01.mp4 (Runway’s API docs do not state one for Gen-4.5), then pre-conform it cleanly to constant 30 fps with dense 1-second keyframes (-g 30) so <OffthreadVideo> decodes at maximum speed with zero frame drops:
for raw in raw_hooks/*.mp4; do
base=$(basename "$raw")
ffmpeg -y -i "$raw" -r 30 -fps_mode cfr -g 30 -c:v libx264 -crf 16 -pix_fmt yuv420p -an "public/plates/$base"
done
Step 2: Prepare your catalog JSON feed and brand-locked assets (~$6.80)
Export your product rows (SKU title, price, offer code, real-label 2K or native transparent RGBA PNG from ByteDance Seedream 5.5 at $0.020–$0.035 BytePlus / $0.03–$0.0405 fal.ai—with optional /layerize separated foreground/background PNG layers for Remotion parallax—cleaned Recraft V4.1 SVG icon, and short ElevenLabs TTS 48 kHz audio file) into variants.json.
Keep every text field bounded by a strict schema limit (e.g., headline <= 28 chars, badge <= 18 chars) so long product titles never wrap unexpectedly across lines. Bundle your .woff2 brand fonts inside public/fonts/ and await font loading before rendering frame 0—avoiding the broken fallback fonts documented in our Remotion & FFmpeg Missing Font Fix.
Step 3: Export visual canaries before running the 50-variant compile
Always run render-ad-matrix.mjs (above) with its built-in Canary Gate first. Inspect out/canary_hook.png (frame 45) and out/canary_cta.png (frame 405) — or let our read-only Ad Creative & Localization QA Agent check safe-zone clearance (9:16 captions inside y:1220–1420, clear of bottom 420px and right 150px platform icons via the Social Safe-Zone Checker).
Step 4: Compile all 50 MP4s and run automated delivery QC
Once both canary stills pass visual inspection, render-ad-matrix.mjs compiles all 50 variants with --pixel-format=yuv420p, normalizes mixed voiceover + music stems cleanly to -14 LUFS / -1.0 dBTP (48 kHz), and injects -movflags +faststart. Run our read-only Video QC Delivery Agent across out/final/ to confirm 100% playback compliance across Meta Ads, TikTok, YouTube Shorts, and Safari before uploading.