Latenode

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

This template receives a text prompt on a Latenode webhook, sends it to the KIE.AI Midjourney API, waits for the file, and stores the result URL in Latenode Database.

Use it for text-to-image, image-to-image, or video jobs. Point your form or app at the webhook. Put the KIE.AI API key on the HTTP node that calls that API.

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

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. 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 CPU seconds work →

Workflow preview

What this template does

  • Turns a webhook prompt into a KIE.AI image or video URL
  • Calls the KIE.AI API from an HTTP node with the key on that node
  • Keeps prompt, type, and URL in Latenode Database
  • Works for text-to-image, image-to-image, and video jobs

How it works

1
Trigger

Receive the prompt

The scenario starts when your app posts a prompt, a task type, and a source image URL when you want image-to-image.

2
Action

Generate with KIE.AI

An HTTP request starts the KIE.AI job, then polls until the image or video URL is ready. Put the KIE.AI API key on that HTTP node.

3
Logic

Shape the record

JavaScript keeps the prompt, task type, and media URL for Database.

4
Action

Store the URL

Latenode Database creates an object with those fields so later scenarios can read the file.

Setup guide

1

Add the webhook

Add a webhook trigger and copy its URL. Have your form or app POST the prompt, task type, and a source image URL when the job needs a reference image.

2

Call the KIE.AI API

Add an HTTP request. Use the KIE.AI Midjourney start and status URLs from KIE.AI docs. Put the KIE.AI API key on that HTTP node. Add a short delay between status checks.

3

Create the Database table

In Latenode Database, create a table with columns for prompt, task type, and media URL.

4

Map and save

In JavaScript, return those three fields from the KIE.AI response, then create the Database object. POST a test prompt and confirm the URL lands in the table.

Requirements

A KIE.AI account and API key stored on the HTTP node
A Latenode webhook URL your form or app can POST to
A Latenode Database table for prompt, task type, and media URL

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. KIE.AI bills its own usage separately.