Skip to main content

Generate AI videos from text or images with Sora 2/Pro & GPT-5 enhancement

Workflow preview

Workflow preview
100%
Generate AI videos from text or images with Sora 2/Pro & GPT-5 enhancement preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 submission...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.httprequest, n8n-nodes-base.switch, n8n-nodes-base.wait, n8n-nodes-base.form

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Daniel Nkencho.

Original n8n.io source

1.1 Workflow description

Title
Generate AI videos from text or images with Sora 2/Pro & GPT-5 enhancement
Workflow name
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), 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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Note: Mode Router

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Note: Image Upload

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Note: Prompt Refiner

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Note: JSON Parser

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Note: Text-to-Video

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Note: Image-to-Video

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Video Input Form

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 8 - Prompt Refiner

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 9 - JSON Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 10 - Temp Image Upload

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Text-to-Video Call

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Input Mode Router

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.3

Block 13 - Image-to-Video Call

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 14 - Wait 60 Seconds

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 15 - Status Check

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 16 - Status Router

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 17 - Retrieve Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 18 - Video Redirect

Type / Role
n8n-nodes-base.form - form
Config choices
Version 2.3

Block 19 - Overview Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Note: Form Trigger1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Note: Polling Loop1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Refiner Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

3. Summary Table

Workflow Generate AI videos from text or images with Sora 2/Pro & GPT-5 enhancement
Complexity advanced
Nodes 22
Categories Content Creation, Multimodal AI
Author Daniel Nkencho
Published 25 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10139/10139.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate AI videos from text or images with Sora 2/Pro & GPT-5 enhancement do?

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 submission...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.