JsonCut icon

JsonCut

Interact with JsonCut API for image and video generation

Combined → Generate Media

AI-generated

Summary

Generate media by creating and waiting for a JsonCut job to complete, optionally uploading input files first and downloading the output media file automatically when done.

Inputs

  • Job Type (required) — Select whether to generate an image or video.
  • Job Configuration (required) — Provide the job configuration as a JSON object detailing parameters for the media generation.
  • Polling Options — Set polling interval (in seconds) and maximum wait time (in minutes) for checking job status during execution.
  • Download Output — Choose whether to automatically download the generated media output upon job completion.
  • Output Binary Field — If downloading output, specify the binary property name to store the generated file.
  • Simplify — If not downloading output, indicate whether to return a simplified version of the job status response.
  • Input Files — (For full pipeline operation) Upload files before job creation, using placeholders in the configuration JSON that will be replaced with the uploaded file URLs.
  • Validate Before Create — (For full pipeline operation) Validate the job configuration before creating the job.

Output shape

a single item with JSON containing job id, status, and result, optionally including uploaded files info and the downloaded binary media file

Returns a single JSON object per input that includes job details. If Download Output is true, the output media file is included as binary data in the specified binary field. Polls the job status until completion or timeout, throwing errors on failure or cancellation.

Examples

Example 1: Create and wait for media job completion with automatic output download

Set Job Type, provide Job Configuration JSON, set Polling Options as desired, enable Download Output, specify Output Binary Field.

Example 2: Full pipeline generating media with file uploads

Provide input files with placeholders, enable Validate Before Create, specify Job Configuration with placeholders replaced by uploaded file URLs, use polling options and output download settings as needed.

Discussion