JsonCut icon

JsonCut

Interact with JsonCut API for image and video generation

Combined → Generate Media (Full)

AI-generated

Summary

Upload specified input media files, substitute their storage URLs into a JSON job configuration, optionally validate it, create a media generation job (image or video), poll for its completion within a maximum wait time, and optionally download the output file as a binary attachment.

Inputs

  • Job Type (required) — Select between 'Image' or 'Video' job types to specify the kind of media to generate.
  • Job Configuration (required) — Provide the full job configuration as a JSON string, using placeholders like --PLACEHOLDER-- for any input files to be uploaded.
  • Input Files — Upload one or more files before job creation, each with a placeholder name (case-sensitive, to be replaced in the JSON config), binary field name referencing node input data, category (image, video, audio, font), and TTL hours for storage duration.
  • Validate Before Create — Optionally validate the processed job configuration JSON against the API before submission.
  • Polling Options — Configure polling interval in seconds and max wait time in minutes while waiting for job completion.
  • Download Output — Choose whether to automatically download the job's output file when the job completes.
  • Output Binary Field — Specify the binary property name in which to store the downloaded output file (default 'data').
  • Simplify — If not downloading output, choose whether to return a simplified JSON response instead of the full API response.

Output shape

a single JSON object; if 'Download Output' is true, includes the output file as binary data in the specified binary field along with job and uploaded files metadata; otherwise, returns JSON with job and uploaded files details.

The operation uploads all specified input files, replacing placeholders in the job configuration JSON with their storage URLs. It can validate the config before creating the job. The node then polls the job status until completion, failure, cancellation, or timeout. If configured, it downloads the output file binary data and attaches it in the workflow output. The returned JSON includes job status, uploaded files metadata, and the output file if downloaded.

Examples

Example 1: Generate an image with two input files uploaded, placeholders replaced, configuration validated, wait for completion, and download output stored as binary under property 'imageFile'.

Job Type: Image; Input Files: two files with placeholders --Background-- and --Logo--; Job Configuration: JSON referencing these placeholders; Validate Before Create: true; Polling Interval: 5 seconds; Max Wait Time: 30 minutes; Download Output: true; Output Binary Field: 'imageFile'.

Discussion