Automate Midjourney & Kling Videos in n8n — Free PiAPI Workflow Template (2025)

Imagine sketching out a scene where a rabbit by a forest stream, golden light breaking through the leaves and watching it come alive as a short animated video in just minutes. No cameras. No editing suites. Just prompts, a workflow, and PiAPI’s AI models powering the visuals, sound, and storytelling.That’s exactly what our n8n workflow template delivers. By combining GPT-4o image generation, Midjourney, Kling, and Creatomate, you can automatically generate dynamic short videos for social posts, vlogs, or brand campaigns.

Integrating PiAPI Into Your n8n Workflow Automation

Creators and developers are increasingly turning to APIs to chain AI tools together, skipping manual clicks and tedious edits. We make this easy. We unify multiple APIs like Midjourney API, Kling API, GPT-4o API (OpenAI API) and more into a single platform. Pair it with n8n, an open-source visual workflow tool, to unlock scalable content generation. Think daily social videos, branded campaigns, or dynamic storytelling with minimal effort.

How to Integrate Midjourney, Kling & GPT-4o in n8n (Step-by-Step Guide)

Developers and creators are chaining APIs to automate creative workflows. With PiAPI, you can connect multiple AI tools — Midjourney API, Kling API, GPT-4o API, and more — through n8n, an open-source workflow builder.

This guide walks you through setting up the PiAPI n8n template to automate AI-generated video creation, ideal for developers, social creators, and agencies who want to save time without losing quality.

Free Trial & API Pricing (2025)

Midjourney price gpt-4o pricing Kling pricing gpt-4o price Openai gpt-4o Openai api pricing Kling ai pricing
PiAPI Subscription Plans

Before we dive in, here’s what makes PiAPI’s access simple and developer-friendly:

  • 1. Free Trial Access: Test prompts instantly with our Playground.Pro Tip: Start with the Free Tier, then scale to Creator or Pro as your workflow grows.
  • 2. Transparent Pricing: Predictable usage, no token confusion.
  • 3. All-in-One Platform: Use 20+ APIs (Midjourney, Kling, GPT-4o, etc.) with one key.

Get your FREE PiAPI key now!

n8n Workflow Template Setup

This prebuilt template connects PiAPI’s GPT-4o, Midjourney, Kling, and Creatomate APIs in one automated flow. Perfect for:

  • 1. Social media creators: Generate daily short videos.
  • 2. Developers: Prototype AI workflows.
  • 3. Educators: Automate animated explainers.
  • 4. Agencies: Produce quick product ads or social campaigns.

Use The n8n Template

Select the n8n template → “Use for free” → “Get started with n8n Cloud” (Recommended).

Add Your API Key

In the Basic Params node, enter your PiAPI key under "X-API-key".

Set Your Prompts

Define the scenario for both image and video prompts.

Choose A Video Template On Creatomate

How to create the Creatomate template

Select a Creatomate template and make an API call in the final node, with the core and processing modules provided.

Tip: Start with basic assets on Creatomate for a quick prototype demo. Once you're satisfied with the result, integrate with n8n for full runs.

Configure and Test

Fill in your account details following the provided image guideline.

Run and Test Workflow

Click on “Test Workflow” and wait 10–20 minutes for video generation.

Optional: Add Audio or Music

In this setup, you’re building a foundational image-to-video workflow with subtitle integration. From there, you can extend functionality with audio nodes with PiAPI’s models. All final assets are composited via Creatomate.

Here are some audio models PiAPI offers:

  1. 1. Mmaudio
  2. 2. Ace Step
  3. 3. Udio
  4. 4. Kling Sound
  5. 5. DiffRhythm
  6. 6. TTS

For best practice, please refer to PiAPI's official API documentation or Creatomate's API documentation to comprehend more use cases.

Example: Midjourney + GPT-4o + Kling Workflow Output

Params Settings

Style: A children’s book cover, ages 6–10. --s 500 --sref 4028286908 --niji 6

Character: A gentle girl and a fluffy rabbit explore a sunlit forest together, playing by a sparkling stream.

Situational Keywords: Butterflies flutter as golden sunlight filters through green leaves. Warm, peaceful atmosphere.

FAQs

Q1: How do I integrate Midjourney API in n8n?

Use the HTTP Request node with your PiAPI key and Midjourney endpoint for prompt-to-image generation.

Q2: What’s included in PiAPI’s free workflow template?

The full pipeline includes GPT-4o (script generation), Midjourney (image), Kling (animation), and Creatomate (video rendering).

Try It Yourself: Sign Up For A Free API Key

Use this workflow for free on n8n with your PiAPI key and start generating animated stories in minutes.

Unlock the power of 20+ AI models with PiAPI — image, video, chat, music, and more. Sign up today and start building smarter, faster, and at scale. Check out our pricing plans to see which fits your needs best.


More Stories