Skip to main content

Create animated illustrations from text prompts with Midjourney and Kling API

Workflow preview

Workflow preview
100%
Create animated illustrations from text prompts with Midjourney and Kling 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 primarily designed to generate animated illustrations for content creators and social media professionals with Midjourney (unoffcial) and Kling (unoffici...

Best for

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

Tools used

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

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 illustrations from text prompts with Midjourney and Kling API
Workflow name
Create animated illustrations from text prompts with Midjourney and Kling API

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 provides professional API service. With service provided by PiAPI, users could generate a fantastic animated artwork simply using workflow on n8n without complex settings among various AI models.

What is animated illustration?

An animated illustration is a digitally enhanced artwork that combines traditional illustration styles with subtle, purposeful motion to enrich storytelling while preserving its original artistic essence.

Who is this workflow for?

  1. Social Media Content Creators: Produces animated illustrations for social media posts.
  2. Digital Marketers: Generates marketing materials with motion graphics.
  3. Independent Content Producers: Creates animated content without specialized animation skills.

Step-by-step Setting Instructions

To simplify workflow settings, usually users just need to change basic prompt of the image and the motion of the final video following the instrution below:

  1. Sign in your PiAPI account and get your X-API-Key.
  2. Fill in your X-API-Key of PiAPI account in Midjourney and Kling nodes.
  3. Enter your desired image prompt in the Prompt node.
  4. Enter the motion prompt in Kling Video Generator node.

For more complex or customization settings, users could also add more nodes to get more output images and generate more videos. Also, they could change the target image to gain a better result. As for recommendation, users could change the video models for which we would recommend live-wallpaper LoRA of Wanx. Users could check API doc to see more use cases of video models and image models for best practice.

Use Case

Input Prompt A gentle girl and a fluffy rabbit explore a sunlit forest together, playing by a sparkling stream. Butterflies flutter around them as golden sunlight filters through green leaves. Warm and peaceful atmosphere, 4K nature documentary style. --s 500 --sref 4028286908 --niji 6

Output Video

When there is troubleshooting

  1. Check if the X-API-Key has been filled in nodes needed.
  2. Check your task status in Task History in PiAPI to get more details about task status.

More Generation Case for Reference

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 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Kling Video Generator

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

Block 3 - Get Video

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

Block 4 - Get Image

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

Block 5 - Basic Prompt

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

Block 6 - Get Data Status

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

Block 7 - Wait for Image Generation

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

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Midjourney Image Generator

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

Block 10 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Wait for Video Generation

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

Block 12 - Get Final Video URL

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

Block 13 - Verify Data Status

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

3. Summary Table

Workflow Create animated illustrations from text prompts with Midjourney and Kling API
Complexity intermediate
Nodes 13
Categories Content Creation, Multimodal AI
Author PiAPI
Published 21 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3626/3626.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 illustrations from text prompts with Midjourney and Kling API do?

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 (unoffici...

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.