Create Animated Stories with PiAPI n8n Workflow Using GPT-4o, Midjourney & Kling APIs

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 generate high-quality short videos that are perfect for social posts, vlogs, product demos or even classroom explainers.

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.

n8n Workflow for Automated AI Video Creation

This template connects PiAPI's Gpt-4o api, Midjourney API, Kling API and Creatomate API into one streamlined pipeline. We built this for content creators, social media bloggers and short-form video makers who want to focus on ideas that work, not endless trial-and-error. Validate concepts fast, generate videos automatically and spend your energy on storytelling, not manual edits.

🔗 View the full workflow on n8n.io

Who Should Use This AI Video Workflow?

  1. 1. Social Media Influencers: Turn inspiration into content-ready videos in minutes.
  2. 2. Vloggers: Auto-generate vlog-style clips with consistent visuals.
  3. 3. Educational Creators: Build animated explainers or classroom scenarios that stick.
  4. 4. Advertising Agencies: Generate quick product-focused video ads.
  5. 5. AI Tool Developers: Demo new products with automated short video workflows.

Step-by-Step Workflow

Sign Up For PiAPI: Simple, Transparent and Developer-Friendly

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

Sign up for an account, then jump into the Playground and test prompts immediately with our FREE Playground trial package. With PiAPI, accessing over 20 AI models is straightforward and predictable. No hidden token costs, no complex billing. Pay only for what you generate.

Our Free Tier Access allows you to experiment with with basic APIs and access our Playground, while subscribing to Creator and Pro plans gives you greater benefits such as FREE credits monthly, additional API access and priority support.

Check out our pricing plans to see which fits your needs best.

Pricing Highlights

  1. 1. Predictable Costs — avoid the trial-and-error charges common with other APIs.
  2. 2. Flexible Scaling — generate thousands of images, short videos, or audio tracks.
  3. 3. All-in-One Access — one subscription for multiple APIs means no juggling accounts or invoices.

Pro Tip: Start with the Free Tier then scale up as your content pipeline grows.

Use The n8n Template

Visit our n8n template and click on "Use for free" and "Get started free 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 Creatomate Settings

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 Use Case

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.

Output Video

<video src="https://static.piapi.ai/n8n-instruction/short-video/example1.mp4" controls />

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.

Sign up for PiAPI to unlock access to over 20 AI models including Midjourney, Kling, GPT-4o, and more.


More Stories