Latenode

Store KIE.AI-generated images and videos in your database

This automation template allows users to generate high-quality AI images and videos using the KIE.AI Midjourney API. It provides an intuitive form interface where users can enter a text prompt, optional image URL, and select the task type (text-to-image, image-to-image, or video generation).

The workflow then handles the API request, monitors the progress, and formats the final results for display. This integration streamlines the process of creating professional-grade AI-generated media and storing the outputs directly in a designated database or application.

Updated May 8, 2026Est. run: 10sEst. cost: $0.0006
How Latenode estimates time and cost

Latenode bills workflow runs in credits: 1 credit = 30 seconds of processing. Minimum charge per run depends on your plan. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how credits work →
Integrations & automation

Workflow preview

What this template does

  • Automates the process of generating AI-powered images and videos using the Midjourney API
  • Allows users to input text prompts and optional image URLs to create custom media
  • Supports multiple task types including text-to-image, image-to-image, and video generation
  • Monitors the progress of API requests and formats the final results for display
  • Stores the generated media or URLs directly in a designated database or application

How it works

1
Trigger

Provide Text Prompt and Task Type

The user enters a text prompt, an optional image URL, and selects the task type (text-to-image, image-to-image, or video generation) in the provided form interface.

2
Action

Send Video Generation Request

The workflow submits the API request to KIE.AI Midjourney to initiate the video generation process.

3
Logic

Wait for Video Processing

The system monitors the status of the video generation request, waiting for the process to complete.

4
Logic

Check Generation Status

The workflow checks the status of the video generation task to determine if the video has been successfully generated.

5
Action

Store Video Results

Once the video is generated, the workflow saves the video file or its URL to the designated database or application.

Setup guide

1

Add KIE.AI Midjourney API Credential

1. In the Latenode Credentials panel, add a new credential for the KIE.AI Midjourney API. 2. Enter your KIE.AI Midjourney API key and any other required authentication details.

2

Configure the AI Image/Video Generation Node

1. In the Latenode visual builder, add the 'AI Image/Video Generation' node. 2. In the node settings, select the KIE.AI Midjourney API credential you created earlier. 3. Configure the input fields for the text prompt, optional image URL, and task type (text-to-image, image-to-image, or video generation).

3

Map Output Data to Your Destination

1. Connect the 'AI Image/Video Generation' node to your destination node (e.g., a database, storage, or another integration). 2. In the destination node settings, map the relevant output fields from the 'AI Image/Video Generation' node, such as the generated image or video URLs.

4

Customize the Workflow (optional)

1. Optionally, add additional nodes to the workflow to further process, transform, or store the generated AI media. 2. Configure any necessary settings or connections for the additional nodes you add.

5

Test and Publish the Workflow

1. Test the workflow by entering sample input data and verifying the generated AI media is correctly processed and stored. 2. Once you're satisfied with the workflow, publish it to make it available to other users.

Requirements

Obtain an API key from KIE.AI Midjourney to authenticate API requests
Set up a connection to the target database or application where you want to store the generated media or URLs
Grant the workflow access to read and write data in the designated database or application
Ensure the workflow has the necessary permissions to make API calls to the KIE.AI Midjourney service

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.

More templates

You might also like

Browse all templates →
Integrations & automation

Site monitor to RSS

Tools schedules checks, Headless Browser loads each monitored URL, JavaScript diffs visible text or selectors against the last snapshot in Database, and rss.app (or JavaScript POST) publishes feed items when changes exceed your threshold. Replaces Zapier+rss.app-only diagrams with explicit Latenode nodes.

9s$0.0006
Integrations & automation

Sync Cognito Forms leads to ActiveCampaign with smart tagging

This automation integration allows users to automatically create or update contacts in ActiveCampaign based on new form submissions in Cognito Forms. When a new entry is submitted in Cognito Forms, the integration will search for an existing contact with a matching email address in ActiveCampaign. If a match is found, the contact will be updated with a specific tag for management purposes. If no match is found, a new contact will be created in ActiveCampaign with the same tag applied. This streamlines the process of managing leads and customer data across these two platforms, saving time and reducing the risk of manual errors.

13s$0.0008
Integrations & automation

Automatically translate new Discord messages using Google Cloud Translate

This automation integrates Discord and Google Translate to monitor specific Discord channels for new messages. When a new message is detected, the automation will automatically translate the text into a target language using Google Translate and then post the translated message back to Discord or another destination. This allows users to stay connected with their communities across language barriers, facilitating global collaboration and discussion within the Discord platform.

8s$0.0005