Skip to main content

Generate AI images & videos with KIE.AI Midjourney API

Workflow preview

Workflow preview
100%
Generate AI images & videos with KIE.AI Midjourney 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

Generate AI Images & Videos with KIE.AI Midjourney API Overview Generate high quality AI images and videos using KIE.AI's Midjourney API through an intuitive form interface. This n8n workflow suppo...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.wait, n8n-nodes-base.if, n8n-nodes-base.set

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate AI images & videos with KIE.AI Midjourney API
Workflow name
Generate AI images & videos with KIE.AI Midjourney API

Generate AI Images & Videos with KIE.AI Midjourney API

Overview

Generate high-quality AI images and videos using KIE.AI's Midjourney API through an intuitive form interface. This n8n workflow supports three distinct content creation modes, delivering professional results with automated processing and real-time progress monitoring. Supported Modes:

  • Text-to-Image (mj_txt2img): Generate original images from written descriptions
  • Image-to-Image (mj_img2img): Transform or enhance existing images with AI
  • Image-to-Video (mj_video): Animate still images into short video clips Users interact only through a simple form interface, requiring no coding skills. After submitting a request, the system automatically calls the KIE.AI API, monitors progress in real-time, and retrieves the final output once ready.

Perfect for

Content creators, designers, marketers, and developers who need to quickly generate diverse AI visual content with automated processing and professional quality results.

Prerequisites

  • KIE.AI Account: Sign up at KIE.AI to obtain your free or paid API key.
  • n8n Instance: Active n8n instance (cloud or self-hosted) with HTTP Request and form submission capabilities.
  • AI Prompt Knowledge: Basic understanding of AI prompts for optimal generation results.
  • Reference Images (Optional): Publicly accessible image URLs for image-to-image or image-to-video generation.

Quick Setup

1. Get API Key

Register at KIE.AI and generate your API key. Store it securely and never share it publicly.

2. Configure Form Fields

Set up these fields in your "On Form Submission" node:

  • tasktype (Required): Select generation mode
    • mj_txt2img for text-to-image generation
    • mj_img2img for image-to-image generation
    • mj_video for image-to-video generation
  • prompt (Required): Text description for your content generation
  • imgurl (Optional): Image URL array for image-to-image or image-to-video generation
    • Important: Leave empty for text-to-image generation (mj_txt2img)
  • api_key (Required): Your KIE.AI API key for authentication
3. Test & Use
  1. Click "Execute Workflow" in n8n.
  2. Access the generated form URL.
  3. Fill in your details and submit.
  4. Wait for processing (workflow polls every 10 seconds).
  5. Results will be displayed automatically.

Customization Tips

Write Detailed Prompts:

Include specific details for better results:

  • Style: realistic, anime, cinematic, watercolor, oil painting
  • Composition: close-up, wide shot, portrait, landscape
  • Lighting: dramatic, soft, neon, natural, studio
  • Subject Details: actions, scenes, movements, visual elements
Example Enhanced Prompt:

"Cinematic portrait of a cyberpunk character with neon blue lighting, close-up composition, dramatic shadows, futuristic mood"

Leverage Multiple Modes:
  • Start with text-to-image for initial concepts.
  • Use image-to-image to refine and enhance results.
  • Apply image-to-video to animate your best images.
  • Combine modes for complex creative workflows.
Common Use Cases:
  • Social media content creation.
  • Marketing material development.
  • Product visualization.
  • Storyboarding and prototyping.
  • Creative asset generation.

Troubleshooting

  • API Key Invalid: Verify your key is correct and active.
  • Generation Fails: Check prompt length and content appropriateness.
  • Slow Processing: Video generation can take 2-5 minutes; this is normal.
  • Image URL Issues: Ensure URLs are publicly accessible and properly formatted. Keywords: KIE.AI API, AI image generation, AI video generation, text-to-image, image-to-video, automated workflows, n8n template, AI content creation

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 - Sticky Note6

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

Block 2 - Sticky Note

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

Block 3 - Sticky Note3

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

Block 4 - Sticky Note1

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

Block 5 - Submit Text Prompt for Video Generation

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

Block 6 - Send Video Generation Request to KIE.AI API

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

Block 7 - Wait for Video Processing Completion

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

Block 8 - Obtain the generated status

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

Block 9 - Check if Video Generation is Complete

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

Block 10 - Format and Display Video Results

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

3. Summary Table

Workflow Generate AI images & videos with KIE.AI Midjourney API
Complexity intermediate
Nodes 10
Categories Content Creation, Multimodal AI
Author damo
Published 21 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7677/7677.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 Generate AI images & videos with KIE.AI Midjourney API do?

Generate AI Images & Videos with KIE.AI Midjourney API Overview Generate high quality AI images and videos using KIE.AI's Midjourney API through an intuitive form interface. This n8n workflow suppo...

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.