modal_render
Render Remotion video compositions in the cloud and generate MP4 files for Instagram, TikTok, YouTube Shorts, LinkedIn, and explainer content. Uploads to Supabase Storage and returns public URLs.
Instructions
Render a Remotion composition on Modal cloud (Chrome + FFmpeg), upload to Supabase Storage, save job to memory. Returns public MP4 URL. Valid formats: instagram_ugc_v1, instagram_reel_v1, explainer_v1, listicle_v1, shorts_v1, devvlog_v1, tiktok_v1, twitter_v1, linkedin_v1, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| composition | Yes | Format ID (e.g. "instagram_ugc_v1"). This is also the brief format field. | |
| sections | Yes | Array of section objects. Each needs: id, type (hook|intro|topic|content|cta|outro|comparison|list_item|transition), duration_sec, start_time_sec, content.text | |
| style | No | Optional style overrides (theme, primary_color, accent_color, font_heading, background_value, etc.) | |
| settings | No | Optional settings overrides (resolution, fps, duration_sec, aspect_ratio) | |
| quality | No | Render quality (default: production) | |
| output_filename | No | Output filename (auto-generated if omitted) | |
| label | No | Human-readable label for this render (saved to memory) |