Transform text to UGC videos with OpenAI SORA-2 on Replicate
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes. It also calls api.replicate.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set API Token (Edit Fields (Set)): sets 2 fields: replicate_api_token, OPENAI_API_TOKE
- Add Seed Image, Prompt and amount of seconds (Edit Fields (Set)): sets 3 fields: Seed_image, Prompt, seconds (4,8 or 12)
- Create Video (HTTP Request): calls api.replicate.com (POST)
- Log Request (Code): runs custom JavaScript code
- Wait: waits 5 seconds
- Check Status (HTTP Request): calls an HTTP API
- Is Complete? (If): checks a condition and branches into true / false
- Success Response (Edit Fields (Set)): sets 1 field: response
- Has Failed? (If): checks a condition and branches into true / false
- Display Result (Edit Fields (Set)): sets 1 field: final_result
…plus 3 more steps. See the full node list below.
HTTP calls to: api.replicate.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Wait
n8n-nodes-base.wait - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches
From the author
This workflow automates the entire text-to-video generation process using OpenAI's SORA-2 model via Replicate API. Simply provide a seed image, text prompt describing your desired scene, and video duration (4, 8, or 12 seconds), and the workflow handles the…