Templates / Create animated illustrations from text prompts with Midjourney and Kling API

Create animated illustrations from text prompts with Midjourney and Kling API

Ready for 3.0

by PiAPI ✓ · 3,583 views · created 2025-04-21 · 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-10-19.

What this workflow does

This workflow has 11 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes. It also calls api.piapi.ai over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Basic Prompt (HTTP Request): calls api.piapi.ai (POST)
  2. Midjourney Image Generator (HTTP Request): calls an HTTP API
  3. Get Data Status (If): checks a condition and branches into true / false
  4. Get Image (Code): runs custom JavaScript code
  5. Wait: pauses before continuing
  6. Kling Video Generator (HTTP Request): calls api.piapi.ai (POST)
  7. Get Video (HTTP Request): calls an HTTP API
  8. Verify Data Status (If): checks a condition and branches into true / false
  9. Get Final Video URL (Code): runs custom JavaScript code
  10. Wait: waits 20 seconds

HTTP calls to: api.piapi.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.

Nodes used (5)

From the author

What does the workflow do? This workflow is primarily designed to generate animated illustrations for content creators and social media professionals with Midjourney (unoffcial) and Kling (unofficial) API served by PiAPI. PiAPI is an API platform which…

Excerpt from PiAPI'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.