Create animated illustrations from text prompts with Midjourney and Kling API
Ready for 3.0What 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”.
- Basic Prompt (HTTP Request): calls api.piapi.ai (POST)
- Midjourney Image Generator (HTTP Request): calls an HTTP API
- Get Data Status (If): checks a condition and branches into true / false
- Get Image (Code): runs custom JavaScript code
- Wait: pauses before continuing
- Kling Video Generator (HTTP Request): calls api.piapi.ai (POST)
- Get Video (HTTP Request): calls an HTTP API
- Verify Data Status (If): checks a condition and branches into true / false
- Get Final Video URL (Code): runs custom JavaScript code
- 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)
- Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait
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…