🎬 Generate AI videos with OpenAI Sora 2 & upload to Google Drive

7,735 views · 🎬 Content Creation & Video

Description

Who’s it for

This template is designed for filmmakers, content creators, social media managers, and AI developers who want to harness OpenAI’s Sora 2 for creating physically accurate, cinematic videos with synchronized audio. Whether you’re generating realistic scenes from text prompts or reference images with proper physics simulation, creating multi-shot sequences with persistent world state, or producing content with integrated dialogue and sound effects, this workflow streamlines the entire video generation process from prompt to preview and Google Drive upload.

What it does

This workflow:

How to set up

1. Get Your OpenAI API Key

You’ll need an OpenAI API key to use this workflow. Here’s the general process:

  1. Create an OpenAI account at https://platform.openai.com
  2. Set up billing - Add payment information to enable API access
  3. Generate your API key through the API keys section in your OpenAI dashboard
  4. Copy and save your key immediately - you won’t be able to view it again!

⚠️ Important: Your API key will start with sk- and should be kept secure. If you lose it, you’ll need to generate a new one.

2. Connect Google Drive

3. Import and Run

All generation settings are configured through the form, including:

⚠️ Sora 2 Pricing

The workflow supports two Sora models which have the following API pricing:

Sora 2 - $0.10/sec

Sora 2 Pro - $0.30/sec (720p) or $0.50/sec (1080p)

Duration options: 4, 8, 12 seconds (default: 4)

Example costs:

Requirements

How to customize the workflow

Modify generation parameters

It’s recommended to visit the official documentation on prompting for a detailed Sora 2 guide.

Adjust polling behavior

Customize error handling

Alternative upload destinations

Enhance result display

Workflow Architecture

Step-by-step flow:

  1. Form Submission → User inputs text prompt, optional reference image, API key, and generation settings
  2. Create Video → Sends request to Sora 2 API endpoint with all parameters and reference image (if provided)
  3. Check Status → Polls the API for video generation status
  4. Status Decision → Routes based on status:
    • Queued → Wait 30 seconds → Check Status again
    • In Progress → Wait 30 seconds → Check Status again
    • Completed → Proceed to download
    • Failed → Display descriptive error message
  5. Wait → 30-second delay between status checks
  6. Download → Fetches the generated video file
  7. Google Drive → Uploads .mp4 to your Drive
  8. Completion Form → Displays download link and video preview/screenshot

If you have any questions, just contact me on Linkedin


Ready to create cinematic AI videos with physics-accurate motion, synchronized audio, and optional image references? Import this workflow and start generating! 🎬✨

🔗 Nodes Used

HTTP Request, Google Drive, n8n Form Trigger, n8n Form

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup