Integrate JSON and Leonardo AI to automate workflows with scalable backend

Connect JSON and Leonardo AI nodes to in your workflow. Integrate with any tool or database and ship powerful backend logic and APIs instantly - No code required!

getting started

How To Connect JSON and Leonardo AI

Supported Triggers & Actions

JSON NODES

Append Array to JSON File

Appends an array of objects to a JSON file. If the file or folder path doesn't exist, it creates it

Concat Property Values

Extracts and concatenates specific property values from an array within a JSON object and returns the concatenated string.

Extract & Join By Key

Extracts a specific key from each object within the array and concatenates the values into a single string.

Is Valid JSON

Check if a given string is valid JSON

JSON to CSV

Creates a CSV file from an array of JSON objects, stores it in the GCP Storage Bucket, and returns the public download URL.

Parse JSON

Converts a JSON string back into a JavaScript object

Stringify JSON

Convert a JSON object to a string

Leonardo AI NODES

Generate Image

This endpoint generates images with the given generation prompt and returns the Generation ID.

script

Generate Prompt

This endpoint returns a random image generation prompt.

script

Improve Prompt

This endpoint returns an improved image generation prompt.

script

Upload Dataset Image

This endpoint uploads the given file buffer to the signed URL provided by the **Upload Init Image** node. Detailed instructions for using this endpoint are available in the guide: [How to upload an image using a presigned URL](https://docs.leonardo.ai/docs/how-to-upload-an-image-using-a-presigned-url).

script

Upload Init Image

This endpoint returns a random image generation prompt. Detailed instructions for using this endpoint are available in the guide: [How to upload an image using a presigned URL](https://docs.leonardo.ai/docs/how-to-upload-an-image-using-a-presigned-url).

script

blog posts & tutorials

Recommended Reads

Below are recommneded blogs that will help in your journey