Generate AI videos from text or images with Sora 2/Pro & GPT-5 enhancement
Harness OpenAI's Sora 2 for instant video creation from text or images using fal.ai's API—powered by GPT-5 for refined prompts that ensure cinematic quality. This template processes form submissions, intelligently routes to text-to-video (with mandatory prompt enhancement) or image-to-video modes, and polls for completion before redirecting to your generated clip. 📋 What This Template Does Users submit prompts, aspect ratios (9:16 or 16:9), models (sora-2 or pro), durations (4s, 8s, or 12s),
At a glance
Generate AI videos from text or images with Sora 2/Pro & GPT-5 enhancement is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects OpenAI. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- OpenAI
- Modules
- 13
- Price
- Free
- Version
- v1.0

About this workflow
Harness OpenAI's Sora 2 for instant video creation from text or images using fal.ai's API—powered by GPT-5 for refined prompts that ensure cinematic quality. This template processes form submissions, intelligently routes to text-to-video (with mandatory prompt enhancement) or image-to-video modes, and polls for completion before redirecting to your generated clip. 📋 What This Template Does Users submit prompts, aspect ratios (9:16 or 16:9), models (sora-2 or pro), durations (4s, 8s, or 12s), and optional images via a web form. For text-to-video, GPT-5 automatically refines the prompt for optimal Sora 2 results; image mode uses the raw input. It calls one of four fal.ai endpoints (text-to-video, text-to-video/pro, image-to-video, image-to-video/pro), then loops every 60s to check status until the video is ready. - Handles dual modes: Text (with GPT-5 enhancement) or image-seeded generation - Supports pro upgrades for higher fidelity and longer clips - Auto-uploads images to a temp host and polls asynchronously for hands-free results - Redirects directly to the final video URL on completion 🔧 Prerequisites - n8n instance with HTTP Request and LangChain nodes enabled - fal.ai account for Sora 2 API access - OpenAI account for GPT-5 prompt refinement 🔑 Required Credentials fal.ai API Setup 1. Sign up at fal.ai and navigate to Dashboard → API Keys 2. Generate a new key with "sora-2" permissions (full access recommended) 3. In n8n, create "Header Auth" credential: Name it "fal.ai", set Header Name to "Authorization", Value to "Key [Your API Key]" OpenAI API Setup 1. Log in at platform.openai.com → API Keys (top-right profile menu) 2. Click "Create new secret key" and copy it (store securely) 3. In n8n, add "OpenAI API" credential: Paste key, select GPT-5 model in the LLM node ⚙️ Configuration Steps 1. Import the workflow JSON into your n8n instance via Settings → Import from File 2. Assign fal.ai and OpenAI credentials to the relevant HTTP Request and LLM nodes 3. Activate the workflow—the form URL auto-generates in the trigger node 4. Test by submitting a sample prompt (e.g., "A cat chasing a laser"); monitor executions for video output 5. Adjust polling wait (60s node) for longer generations if needed 🎯 Use Cases - Social Media Teams: Generate 9:16 vertical Reels from text ideas, like quick product animations enhanced by GPT-5 for professional polish - Content Marketers: Animate uploaded images into 8s promo clips, e.g., turning a static ad graphic into a dynamic story for email campaigns - Educators and Trainers: Create 4s explainer videos from outlines, such as historical reenactments, using pro mode for detailed visuals - App Developers: Embed as a backend service to process user prompts into Sora 2 videos on-demand for creative tools ⚠️ Troubleshooting - API quota exceeded: Check fal.ai dashboard for usage limits; upgrade to pro tier or extend polling waits - Prompt refinement fails: Ensure GPT-5 credential is set and output matches JSON schema—test LLM node independently - Image upload errors: Confirm file is JPG/PNG under 10MB; verify tmpfiles.org endpoint with a manual curl test - Endless polling loop: Add an IF node after 10 checks to timeout; increase wait to 120s for 12s pro generations
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Generate images and send photos to Telegram from new articles using OpenAI and HTML text extraction
LinkedIn scraping, structuring, and messaging using PhantomBuster and GPT-4
Generate 5-level AI explanations for different audiences from Telegram to Google Docs with GPT-4.1-mini
AI-powered knowledge assistant using Google Sheets, OpenAI, and Supabase Vector Search
Create AI viral videos using NanoBanana 2 PRO & VEO3.1 and publish via Blotato
LinkedIn engagement automator with GPT-4o/Claude, human review & multilingual comments
Send AI interview briefs from resumes with GPT-4o-mini, Google Sheets and Gmail
Capture LinkedIn leads and sync them with Google Sheets, HubSpot or Salesforce
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you