Skip to main content

Create animated stories using GPT-4o-mini, Midjourney, Kling and Creatomate API

Workflow preview

Workflow preview
100%
Create animated stories using GPT-4o-mini, Midjourney, Kling and Creatomate API preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

What does the workflow do? This workflow is designed to generate high quality short videos, primarily uses GPT 4o mini (unofficial), Midjourney (unofficial) and Kling (unofficial) APIs from [ PiAPI...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.wait, n8n-nodes-base.if, n8n-nodes-base.switch, n8n-nodes-base.stickynote, n8n-nodes-base.manualtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by PiAPI.

Original n8n.io source

1.1 Workflow description

Title
Create animated stories using GPT-4o-mini, Midjourney, Kling and Creatomate API
Workflow name
Create animated stories using GPT-4o-mini, Midjourney, Kling and Creatomate API

What does the workflow do?

This workflow is designed to generate high-quality short videos, primarily uses GPT-4o-mini (unofficial), Midjourney (unofficial) and Kling (unofficial) APIs from PiAPI and Creatomate API mainly for content creator, social media bloggers and short-form video creators. Through this short video workflow, users can quickly validate their creative ideas and focus more on enhancing the quality of their video concepts.

Who is the workflow for?

  1. Social Media Influencers: produce content videos based on inspiration efficiently.

  2. Vloggers: generate vlogs based on inspiration.

  3. Educational Creators: explain specific topics via animated short videos or demonstrate a specific imagined scenario to students for enhanced educational impact.

  4. Advertising Agencies: generate short videos based on specific products.

  5. AI Tool Developers: automatically generate product demo videos.

Step-by-step Instructions

  1. Fill in X-API-key of PiAPI account in Basic Params node.
  2. Fill in the scenario of the image and video prompt.
  3. Set a video template on Creatomate and make an API call in the final node with core and processing modules provided in Creatomate. Before full video generation, you can first use basic assets in Creatomate for a prototype demo, then integrate with n8n after verifying the expected results.
  4. Fill in your Creatomate account settings following the image guildline.
  5. Click Test Workflow and wait for a generation (within 10~20min).

In this workflow, we've established a basic structure for image-to-video generation with subtitle integration. You can further enhance it by adding music nodes using either PiAPI's audio models or your preferred music solution. All video elements will ultimately be composited through Creatomate. For best practice, please refer to PiAPI's official API documentation or Creatomate's API documentation to comprehend more use cases.

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 around them as golden sunlight filters through green leaves. Warm and peaceful atmosphere

Output Video

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - output1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 2 - output2

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Get Prompt

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Basic Params

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - Get Task ID of the First Image

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Midjourney Generator of the First Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - Wait for the First Image Generation

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 8 - Verify the first image generation status

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 9 - Get the First Image URL

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Midjourney Generator of the Second Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Midjourney Generator of the Third Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Get the First Image Generation Status

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 13 - Get the Second Image Generation Status

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 14 - Get the Third Image Generation Status

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 15 - Get the Second Image URL

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - Get the Third Image URL

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Wait for the Second Image Generation

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 18 - Get Task of the First Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - Get Task of the Second Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 20 - Verify the second image generation status

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 21 - Verify the third image generation status

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 22 - Get Task of the Third Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 23 - Wait for the Third Image Generation

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 24 - Get three Image URLs

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Showing the first 24 of 51 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Create animated stories using GPT-4o-mini, Midjourney, Kling and Creatomate API
Complexity advanced
Nodes 51
Categories Content Creation, Multimodal AI
Author PiAPI
Published 22 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3655/3655.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create animated stories using GPT-4o-mini, Midjourney, Kling and Creatomate API do?

What does the workflow do? This workflow is designed to generate high quality short videos, primarily uses GPT 4o mini (unofficial), Midjourney (unofficial) and Kling (unofficial) APIs from [ PiAPI...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.