Templates / Generate and cache Kie.ai video renders to Google Drive

Generate and cache Kie.ai video renders to Google Drive

Ready for 3.0

by Incrementors ✓ · 0 views · created 2026-10-07 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 22 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Drive. It also calls api.kie.ai over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Sample Job Input (Edit Fields (Set)): sets 4 fields: prompt, durationSeconds, aspectRatio…
  2. Normalize Job Request (Code): runs custom JavaScript code
  3. Look Up Render Cache (Data table): get
  4. Rendered This Before? (If): checks a condition and branches into true / false
  5. Return The Cached Video (Edit Fields (Set)): sets 6 fields: delivered, videoUrl, driveFileId…
  6. Build Model Chain (Code): runs custom JavaScript code
  7. Loop Over Model Chain (Loop Over Items (Split in Batches)): loops over the items in batches
  8. Pick The Successful Render (Code): runs custom JavaScript code
  9. Submit Render Job (HTTP Request): calls api.kie.ai (POST)
  10. Did Any Model Deliver? (If): checks a condition and branches into true / false

…plus 10 more steps. See the full node list below.

Services it uses

Google Drive

HTTP calls to: api.kie.ai

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

From the author

Quick overview This sub-workflow replaces a broken Sora video-generation step by submitting text-to-video jobs to Kie.ai, caching identical requests in an n8n Data Table, and saving successful renders to Google Drive before returning a single result payload…

Excerpt from Incrementors's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.