{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pennycompute-com/json-schema/pennycompute-com-estimate-request-schema.json",
  "title": "EstimateRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pennycompute-com-openapi.json#/components/schemas/EstimateRequest",
  "type": "object",
  "properties": {
    "service_id": {
      "type": "string",
      "enum": [
        "h3.video.v1",
        "h3.reference_480p.v1",
        "ffmpeg.transcode.v1",
        "ffmpeg.stitch_export.v1",
        "ffmpeg.audio_mix.v1",
        "ffmpeg.caption_burn.v1",
        "ffmpeg.timeline_export.v1",
        "ffmpeg.frames.v1",
        "ffmpeg.audio.v1",
        "media.measure.v1",
        "remotion.render.v1"
      ],
      "description": "A service listed by GET /v1/services."
    },
    "input": {
      "description": "The schema depends on service_id. The FFmpeg services take the inputs in FfmpegTranscodeInput, FfmpegStitchInput, FfmpegCaptionBurnInput, FfmpegAudioMixInput, FfmpegTimelineExportInput, FfmpegFramesInput and FfmpegAudioInput. media.measure.v1 takes MediaMeasureInput. remotion.render.v1 takes RemotionRenderInput.",
      "anyOf": [
        {
          "$ref": "#/$defs/H3VideoInput"
        },
        {
          "$ref": "#/$defs/H3PresetInput"
        },
        {
          "$ref": "#/$defs/FfmpegTranscodeInput"
        },
        {
          "$ref": "#/$defs/FfmpegStitchInput"
        },
        {
          "$ref": "#/$defs/FfmpegCaptionBurnInput"
        },
        {
          "$ref": "#/$defs/FfmpegAudioMixInput"
        },
        {
          "$ref": "#/$defs/FfmpegTimelineExportInput"
        },
        {
          "$ref": "#/$defs/FfmpegFramesInput"
        },
        {
          "$ref": "#/$defs/FfmpegAudioInput"
        },
        {
          "$ref": "#/$defs/MediaMeasureInput"
        },
        {
          "$ref": "#/$defs/RemotionRenderInput"
        }
      ]
    },
    "max_wait_seconds": {
      "type": "integer",
      "minimum": 1,
      "maximum": 86400,
      "default": 900,
      "description": "How long a queued job waits for a renderer. A job sent while every slot is busy waits in the queue and starts, in order, when one frees; it is not refused. After this many seconds without a start it becomes expired with failure_code no_capacity and is not charged. Rather than resending a job that expired, send it once with the longest wait you accept, for example 7200 for two hours: H3 slots are few and a clip can wait minutes for one."
    }
  },
  "required": [
    "service_id",
    "input"
  ],
  "$defs": {
    "FfmpegAudioInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "sources": {
          "type": "array",
          "minItems": 1,
          "maxItems": 200,
          "description": "Videos or sound files, joined in order.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https?://",
                "maxLength": 4096,
                "description": "A public http or https link the renderer fetches, up to 1 GB. Keep it readable until the job has ended."
              },
              "start_seconds": {
                "type": "number",
                "minimum": 0,
                "maximum": 86400,
                "default": 0
              },
              "duration_seconds": {
                "type": "number",
                "minimum": 0.01,
                "maximum": 86400,
                "description": "How much of the source is used. Omit to run to its end."
              }
            },
            "required": [
              "url"
            ]
          }
        },
        "bed": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "url": {
              "type": "string",
              "format": "uri",
              "pattern": "^https?://",
              "maxLength": 4096,
              "description": "A public http or https link the renderer fetches, up to 1 GB. Keep it readable until the job has ended."
            },
            "gain_db": {
              "type": "number",
              "minimum": -60,
              "maximum": 12,
              "default": 0
            },
            "loop": {
              "type": "boolean",
              "default": true,
              "description": "true: the bed repeats to cover the whole length. false: it plays once."
            },
            "fade_seconds": {
              "type": "number",
              "minimum": 0,
              "maximum": 30,
              "default": 0,
              "description": "The bed fades in over this long at the start and out over this long at its end."
            },
            "duck_db": {
              "type": "number",
              "minimum": -60,
              "maximum": -1,
              "description": "Lower the bed under the sources with a side-chain compressor. Omit to leave it."
            }
          },
          "required": [
            "url"
          ],
          "description": "Music under the joined sources for their whole length."
        },
        "trim_silence": {
          "type": "boolean",
          "default": false,
          "description": "Remove silence at the start and the end."
        },
        "loudness_lufs": {
          "type": "number",
          "minimum": -40,
          "maximum": -5,
          "description": "Bring the result to this integrated loudness."
        },
        "max_duration_seconds": {
          "type": "number",
          "minimum": 0.01,
          "maximum": 86400,
          "description": "Cut the result to this length, keeping its start or its end as keep says."
        },
        "keep": {
          "type": "string",
          "enum": [
            "start",
            "end"
          ],
          "default": "start"
        },
        "output": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "format": {
              "type": "string",
              "enum": [
                "wav",
                "mp3",
                "m4a"
              ],
              "default": "wav"
            },
            "sample_rate": {
              "type": "integer",
              "minimum": 8000,
              "maximum": 96000,
              "description": "Omit for the rate of the first source, or the nearest one the format takes. mp3 takes 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100 and 48000 Hz; m4a takes those and 64000, 88200 and 96000; wav takes any."
            },
            "channels": {
              "enum": [
                1,
                2
              ],
              "description": "Omit for the channels of the first source, at most 2."
            },
            "bitrate_kbps": {
              "type": "integer",
              "minimum": 32,
              "maximum": 512,
              "description": "For mp3 and m4a. Omit for 192."
            },
            "sample_format": {
              "type": "string",
              "enum": [
                "s16",
                "f32"
              ],
              "description": "For wav. Omit for s16."
            }
          },
          "required": []
        }
      },
      "required": [
        "sources"
      ],
      "description": "Input for ffmpeg.audio.v1: one WAV, MP3 or M4A. Unknown fields are refused. The job result carries duration_seconds, sample_rate, channels, integrated_lufs and true_peak_dbtp, measured on the finished file."
    },
    "FfmpegAudioMixInput": {
      "type": "object",
      "properties": {
        "input_url": {
          "type": "string",
          "format": "uri",
          "description": "Any public https link to the file, up to 1 GB, or an input_url from POST /v1/assets. The renderer fetches it with a plain GET, so keep it readable until the job has ended."
        },
        "tracks": {
          "type": "array",
          "minItems": 1,
          "maxItems": 16,
          "items": {
            "type": "object",
            "properties": {
              "input_url": {
                "type": "string",
                "format": "uri",
                "description": "Any public https link to the file, up to 1 GB, or an input_url from POST /v1/assets. The renderer fetches it with a plain GET, so keep it readable until the job has ended."
              },
              "role": {
                "type": "string",
                "enum": [
                  "dialogue",
                  "music",
                  "effect"
                ]
              },
              "start_ms": {
                "type": "integer",
                "minimum": 0,
                "maximum": 86400000,
                "default": 0
              },
              "gain_db": {
                "type": "number",
                "minimum": -60,
                "maximum": 12,
                "default": 0
              },
              "loop": {
                "type": "boolean",
                "default": false
              }
            },
            "required": [
              "input_url",
              "role"
            ]
          }
        },
        "preserve_source_audio": {
          "type": "boolean",
          "default": true
        },
        "ducking": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "default": true
            },
            "threshold_db": {
              "type": "number",
              "minimum": -60,
              "maximum": 0,
              "default": -24
            },
            "ratio": {
              "type": "number",
              "minimum": 1,
              "maximum": 20,
              "default": 8
            },
            "attack_ms": {
              "type": "number",
              "minimum": 1,
              "maximum": 2000,
              "default": 20
            },
            "release_ms": {
              "type": "number",
              "minimum": 10,
              "maximum": 5000,
              "default": 250
            }
          },
          "required": []
        },
        "output_audio_bitrate_kbps": {
          "type": "integer",
          "minimum": 64,
          "maximum": 512,
          "default": 192
        }
      },
      "required": [
        "input_url",
        "tracks"
      ]
    },
    "FfmpegCaptionBurnInput": {
      "type": "object",
      "properties": {
        "input_url": {
          "type": "string",
          "format": "uri",
          "description": "Any public https link to the file, up to 1 GB, or an input_url from POST /v1/assets. The renderer fetches it with a plain GET, so keep it readable until the job has ended."
        },
        "captions_url": {
          "type": "string",
          "format": "uri",
          "description": "Any public https link to the file, up to 1 GB, or an input_url from POST /v1/assets. The renderer fetches it with a plain GET, so keep it readable until the job has ended."
        },
        "captions_format": {
          "type": "string",
          "enum": [
            "ass",
            "srt"
          ],
          "default": "ass"
        }
      },
      "required": [
        "input_url",
        "captions_url"
      ]
    },
    "FfmpegFramesInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "cells": {
          "type": "array",
          "minItems": 1,
          "maxItems": 64,
          "items": {
            "description": "One cell of the image: a frame of a video, or an image.",
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "const": "video"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https?://",
                    "maxLength": 4096,
                    "description": "A public http or https link the renderer fetches, up to 1 GB. Keep it readable until the job has ended."
                  },
                  "at": {
                    "default": "middle",
                    "description": "Which frame: first, middle (half the length), last, or a time in seconds. A time past the end is the last frame.",
                    "oneOf": [
                      {
                        "type": "string",
                        "enum": [
                          "first",
                          "middle",
                          "last"
                        ]
                      },
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 86400
                      }
                    ]
                  },
                  "crop": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "x": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "y": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "width": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 1
                      },
                      "height": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "x",
                      "y",
                      "width",
                      "height"
                    ],
                    "description": "A part of the source, as fractions of its width and height. x plus width and y plus height are at most 1."
                  }
                },
                "required": [
                  "kind",
                  "url"
                ]
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "const": "image"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https?://",
                    "maxLength": 4096,
                    "description": "A public http or https link the renderer fetches, up to 1 GB. Keep it readable until the job has ended."
                  },
                  "crop": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "x": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "y": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "width": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 1
                      },
                      "height": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "x",
                      "y",
                      "width",
                      "height"
                    ],
                    "description": "A part of the source, as fractions of its width and height. x plus width and y plus height are at most 1."
                  }
                },
                "required": [
                  "kind",
                  "url"
                ]
              }
            ]
          },
          "description": "The cells, laid out left to right, top to bottom. One cell with no cell size is a plain frame grab."
        },
        "columns": {
          "type": "integer",
          "minimum": 1,
          "maximum": 16,
          "description": "Cells per row. Omit to put all cells in one row, at most 16 to a row. A short last row is filled with black."
        },
        "cell_width": {
          "type": "integer",
          "minimum": 16,
          "maximum": 4096,
          "description": "Each cell is scaled to fit inside cell_width by cell_height and letterboxed on black. Send both or neither; more than one cell needs both."
        },
        "cell_height": {
          "type": "integer",
          "minimum": 16,
          "maximum": 4096
        },
        "format": {
          "type": "string",
          "enum": [
            "png",
            "jpg",
            "webp"
          ],
          "default": "png"
        },
        "quality": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "description": "For jpg and webp. Omit for 85."
        },
        "max_width": {
          "type": "integer",
          "minimum": 16,
          "maximum": 8192,
          "description": "The finished image is scaled down to at most this width, never up."
        }
      },
      "required": [
        "cells"
      ],
      "description": "Input for ffmpeg.frames.v1: one PNG, JPEG or WebP made of frames. Unknown fields are refused. The grid before scaling is at most 16383 pixels on a side and 100,000,000 pixels in all. The job result carries width, height and cells, a list with the seconds of the frame grabbed for each cell (null for an image)."
    },
    "FfmpegStitchInput": {
      "type": "object",
      "properties": {
        "input_urls": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uri",
            "description": "Any public https link to the file, up to 1 GB, or an input_url from POST /v1/assets. The renderer fetches it with a plain GET, so keep it readable until the job has ended."
          },
          "minItems": 1,
          "maxItems": 64,
          "description": "Clips in playback order, joined end to end."
        },
        "video_codec": {
          "type": "string",
          "enum": [
            "copy",
            "h264_videotoolbox",
            "libx264"
          ],
          "default": "copy",
          "description": "copy joins the clips without re-encoding; they must share codec, size, frame rate and audio layout. The other values re-encode."
        },
        "audio_codec": {
          "type": "string",
          "enum": [
            "copy",
            "aac"
          ],
          "default": "copy"
        },
        "output_container": {
          "type": "string",
          "enum": [
            "mp4"
          ],
          "default": "mp4"
        }
      },
      "required": [
        "input_urls"
      ]
    },
    "FfmpegTimelineExportInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "picture": {
          "type": "string",
          "enum": [
            "encode",
            "copy"
          ],
          "default": "encode",
          "description": "encode: the picture is made from clips or picture_segments on the canvas. copy: the picture of source_url is kept untouched and only its sound is replaced or finished."
        },
        "canvas": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "aspect_ratio": {
              "type": "string",
              "enum": [
                "16:9",
                "9:16",
                "1:1",
                "4:3"
              ]
            },
            "resolution": {
              "type": "string",
              "enum": [
                "720p",
                "1080p",
                "4k",
                "proxy_480p"
              ],
              "default": "720p"
            },
            "fps": {
              "type": "integer",
              "minimum": 1,
              "maximum": 120,
              "default": 30
            },
            "crf": {
              "type": "integer",
              "minimum": 0,
              "maximum": 51,
              "description": "The quality of every picture encode in the job: lower is a better picture and a larger file. Left out, it follows resolution: 30 at proxy_480p, 23 at 720p, 18 at 1080p and 20 at 4k. It does not change the price."
            },
            "preset": {
              "type": "string",
              "enum": [
                "ultrafast",
                "superfast",
                "veryfast",
                "faster",
                "fast",
                "medium",
                "slow",
                "slower",
                "veryslow"
              ],
              "description": "The libx264 preset of every picture encode in the job. Left out, it follows resolution: fast at proxy_480p and 720p, veryfast at 1080p and 4k. It does not change the price."
            }
          },
          "required": [
            "aspect_ratio"
          ],
          "description": "The output shape, size and frame rate. Required for an encoded picture; a copied picture keeps its own size."
        },
        "duration_seconds": {
          "type": "number",
          "minimum": 0.1,
          "maximum": 3600,
          "description": "The total length of the output. Picture is padded with black and sound with silence up to it, then both are cut at it. With picture: copy it is optional: omitted, the output is as long as the picture; given, it has to be within 0.2 seconds of the length of the picture or the job fails with invalid_input."
        },
        "clips": {
          "type": "array",
          "maxItems": 240,
          "default": [],
          "description": "Clips joined in order.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https?://",
                "maxLength": 4096,
                "description": "A public http or https link the renderer fetches, up to 1 GB. Keep it readable until the job has ended."
              },
              "in_seconds": {
                "type": "number",
                "minimum": 0,
                "maximum": 86400,
                "default": 0
              },
              "out_seconds": {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 86400,
                "description": "Where the clip ends in its source. Omit to run to the end of the source."
              },
              "volume": {
                "type": "number",
                "minimum": 0,
                "maximum": 2,
                "default": 1
              },
              "audio_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https?://",
                "maxLength": 4096,
                "description": "A sound that replaces the sound of the clip, cut with the same in and out."
              },
              "fit": {
                "type": "string",
                "enum": [
                  "contain",
                  "cover"
                ],
                "default": "contain",
                "description": "contain letterboxes on black. cover scales to fill and crops to the centre."
              },
              "opening_fade": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "frames": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 600
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$",
                    "default": "#000000"
                  }
                },
                "required": [
                  "frames"
                ]
              },
              "luts": {
                "type": "array",
                "maxItems": 32,
                "default": [],
                "description": "Looks applied over parts of the clip. Times count from the in-point of the clip: start included, end excluded.",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "pattern": "^https?://",
                      "maxLength": 4096,
                      "description": "A public http or https link the renderer fetches, up to 1 GB. Keep it readable until the job has ended."
                    },
                    "start_seconds": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 3600,
                      "default": 0
                    },
                    "end_seconds": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "exclusiveMinimum": 0,
                      "maximum": 3600,
                      "default": null
                    }
                  },
                  "required": [
                    "url"
                  ]
                }
              }
            },
            "required": [
              "url"
            ]
          }
        },
        "picture_segments": {
          "type": "array",
          "maxItems": 240,
          "default": [],
          "description": "When any are given the picture is made from them and clips are not used.",
          "items": {
            "description": "One piece of the picture, by kind: a video, a still image or a plain colour.",
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "const": "video"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https?://",
                    "maxLength": 4096,
                    "description": "A public http or https link the renderer fetches, up to 1 GB. Keep it readable until the job has ended."
                  },
                  "duration_seconds": {
                    "type": "number",
                    "minimum": 0.01,
                    "maximum": 600
                  },
                  "source_in_seconds": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 86400,
                    "default": 0
                  },
                  "source_out_seconds": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 86400
                  },
                  "playback_rate": {
                    "type": "number",
                    "minimum": 0.5,
                    "maximum": 4,
                    "default": 1
                  },
                  "volume": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 8,
                    "default": 1
                  },
                  "luts": {
                    "type": "array",
                    "maxItems": 32,
                    "default": [],
                    "description": "Looks applied over parts of the segment. Times are in the source, counted from source_in_seconds, before any change of speed.",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri",
                          "pattern": "^https?://",
                          "maxLength": 4096,
                          "description": "A public http or https link the renderer fetches, up to 1 GB. Keep it readable until the job has ended."
                        },
                        "start_seconds": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 3600,
                          "default": 0
                        },
                        "end_seconds": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "maximum": 3600,
                          "default": null
                        }
                      },
                      "required": [
                        "url"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "url",
                  "duration_seconds"
                ]
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "const": "image"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https?://",
                    "maxLength": 4096,
                    "description": "A public http or https link the renderer fetches, up to 1 GB. Keep it readable until the job has ended."
                  },
                  "duration_seconds": {
                    "type": "number",
                    "minimum": 0.01,
                    "maximum": 600
                  },
                  "crop": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "x": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "y": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "width": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 1
                      },
                      "height": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "x",
                      "y",
                      "width",
                      "height"
                    ],
                    "description": "A part of the image, as fractions of its width and height. It is stretched to the canvas. Without a crop the image is scaled to cover and cropped to the centre."
                  },
                  "camera": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "from_scale": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 1.2,
                        "default": 1
                      },
                      "to_scale": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 1.2,
                        "default": 1
                      },
                      "from_x_percent": {
                        "type": "number",
                        "minimum": -3,
                        "maximum": 3,
                        "default": 0
                      },
                      "to_x_percent": {
                        "type": "number",
                        "minimum": -3,
                        "maximum": 3,
                        "default": 0
                      },
                      "from_y_percent": {
                        "type": "number",
                        "minimum": -3,
                        "maximum": 3,
                        "default": 0
                      },
                      "to_y_percent": {
                        "type": "number",
                        "minimum": -3,
                        "maximum": 3,
                        "default": 0
                      },
                      "origin_y": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1,
                        "default": 0.5
                      }
                    },
                    "required": []
                  }
                },
                "required": [
                  "kind",
                  "url",
                  "duration_seconds"
                ]
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "const": "placeholder"
                  },
                  "duration_seconds": {
                    "type": "number",
                    "minimum": 0.01,
                    "maximum": 600
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$",
                    "default": "#111827"
                  }
                },
                "required": [
                  "kind",
                  "duration_seconds"
                ]
              }
            ]
          }
        },
        "source_url": {
          "type": "string",
          "format": "uri",
          "pattern": "^https?://",
          "maxLength": 4096,
          "description": "For picture: copy. The finished video whose picture is kept. An MP4, MOV or Matroska file whose picture is H.264 or H.265 (AV1, VP9 and MPEG-4 also work); a picture an MP4 cannot carry, such as ProRes, fails the job with runner_failed, so send that video as one clip with picture: encode. A source with no sound is accepted: tracks then play over silence, and with no tracks the output has a silent sound track."
        },
        "source_audio_url": {
          "type": "string",
          "format": "uri",
          "pattern": "^https?://",
          "maxLength": 4096,
          "description": "For picture: copy. A sound file used in place of the sound of the source video, which is dropped. It plays at mix.primary_volume and tracks mix over it."
        },
        "mix": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "primary_volume": {
              "type": "number",
              "minimum": 0,
              "maximum": 8,
              "default": 1,
              "description": "Volume of the sound the clips or segments carry."
            },
            "primary_volume_under_narration": {
              "type": "number",
              "minimum": 0,
              "maximum": 8,
              "description": "Volume that sound is ducked to while narration plays. Omit to leave it."
            },
            "music_duck_db": {
              "type": "number",
              "minimum": -60,
              "maximum": 0,
              "description": "How far music is ducked under narration, in decibels below zero. Omit or 0 to leave it."
            },
            "tracks": {
              "type": "array",
              "maxItems": 512,
              "default": [],
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "overlay_video",
                      "narration",
                      "music",
                      "sound_effects",
                      "user_audio"
                    ]
                  },
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https?://",
                    "maxLength": 4096,
                    "description": "A public http or https link the renderer fetches, up to 1 GB. Keep it readable until the job has ended."
                  },
                  "sound": {
                    "type": "string",
                    "enum": [
                      "required",
                      "optional"
                    ],
                    "default": "required",
                    "description": "required: a source with no sound fails the job. optional: it is skipped."
                  },
                  "start_seconds": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 3600,
                    "default": 0
                  },
                  "duration_seconds": {
                    "type": "number",
                    "minimum": 0.01,
                    "maximum": 3600
                  },
                  "source_in_seconds": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 86400,
                    "default": 0
                  },
                  "playback_rate": {
                    "type": "number",
                    "minimum": 0.25,
                    "maximum": 4,
                    "default": 1
                  },
                  "volume": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 8,
                    "default": 1
                  },
                  "fade_in_seconds": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 30,
                    "default": 0
                  },
                  "fade_out_seconds": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 30,
                    "default": 0
                  },
                  "layout": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "picture_in_picture",
                          "full_bleed"
                        ]
                      },
                      "center_x": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1,
                        "default": 0.5
                      },
                      "center_y": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1,
                        "default": 0.5
                      },
                      "width": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 1,
                        "default": 1
                      },
                      "height": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 1,
                        "default": 1
                      },
                      "opacity": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1,
                        "default": 1
                      },
                      "fit": {
                        "type": "string",
                        "enum": [
                          "cover",
                          "contain"
                        ],
                        "default": "cover"
                      },
                      "rotation_degrees": {
                        "type": "number",
                        "minimum": -180,
                        "maximum": 180,
                        "default": 0
                      }
                    },
                    "required": [
                      "mode"
                    ],
                    "description": "How an overlay_video is drawn: its centre and size as fractions of the canvas. Required for that kind and not allowed on the others."
                  }
                },
                "required": [
                  "kind",
                  "url",
                  "duration_seconds"
                ]
              }
            }
          },
          "required": []
        },
        "captions": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "style": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "font": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9 _-]+$",
                  "maxLength": 100,
                  "default": "Arial",
                  "description": "The face captions are drawn in. Renderers have system faces such as Arial, Helvetica, Times New Roman, Georgia, Verdana and Courier New, and DejaVu Sans in regular and bold. They have no other DejaVu face, such as DejaVu Sans Oblique, DejaVu Serif or DejaVu Sans Mono, and no Liberation or Noto faces. A face a renderer lacks is drawn in a substitute the renderer chooses, Helvetica when tested; the job does not fail or say so."
                },
                "bold": {
                  "type": "boolean",
                  "default": true
                },
                "color": {
                  "type": "string",
                  "pattern": "^#[0-9a-fA-F]{6}$",
                  "default": "#ffffff"
                },
                "outline_color": {
                  "type": "string",
                  "pattern": "^#[0-9a-fA-F]{6}$",
                  "default": "#101010"
                },
                "size_percent": {
                  "type": "number",
                  "minimum": 1,
                  "maximum": 20,
                  "default": 4.2,
                  "description": "Text size as a percentage of the output height."
                },
                "min_size_px": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 400,
                  "default": 34
                },
                "outline": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 20,
                  "default": 5
                },
                "shadow": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 20,
                  "default": 1
                },
                "bottom_margin_percent": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 50,
                  "default": 12
                },
                "min_bottom_margin_px": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2000,
                  "default": 120
                },
                "side_margin_px": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2000,
                  "default": 60
                }
              },
              "required": []
            },
            "lines": {
              "type": "array",
              "maxItems": 300,
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "start_seconds": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 3600
                  },
                  "end_seconds": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 3600
                  },
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240
                  }
                },
                "required": [
                  "start_seconds",
                  "end_seconds",
                  "text"
                ]
              }
            }
          },
          "required": [
            "lines"
          ],
          "description": "Captions burned onto the picture. They need an encoded picture."
        },
        "sound": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "codec": {
              "type": "string",
              "enum": [
                "aac"
              ],
              "default": "aac"
            },
            "bitrate_kbps": {
              "type": "integer",
              "minimum": 64,
              "maximum": 512,
              "default": 256
            },
            "sample_rate": {
              "enum": [
                48000,
                44100,
                "source"
              ],
              "default": 48000,
              "description": "source keeps the rate of the mix, for a copied picture."
            },
            "channels": {
              "enum": [
                1,
                2,
                "source"
              ],
              "default": 2
            },
            "peak_ceiling_dbfs": {
              "type": [
                "number",
                "null"
              ],
              "minimum": -20,
              "maximum": 0,
              "default": -2,
              "description": "The mix is limited at this level and the encode corrected until its decoded peak is at or under 0 dBFS. null skips both."
            },
            "edit_list": {
              "type": "boolean",
              "default": true,
              "description": "false writes the file with no edit list."
            }
          },
          "required": []
        }
      },
      "required": [],
      "description": "Input for ffmpeg.timeline_export.v1: one MP4 (H.264 and AAC) made from a descriptor of an edit. Unknown fields are refused, and a refused request names each field in issues. Up to 240 clips or picture segments, 512 sound tracks, 300 caption lines and 3600 seconds of output. The job result carries the measured duration, width and height, and a sound report: codec, sample_rate, channels, bitrate_kbps, duration_seconds, true_peak_dbtp, integrated_lufs, peak_correction_db and correction_passes."
    },
    "FfmpegTranscodeInput": {
      "type": "object",
      "properties": {
        "input_url": {
          "type": "string",
          "format": "uri",
          "description": "Any public https link to the file, up to 1 GB, or an input_url from POST /v1/assets. The renderer fetches it with a plain GET, so keep it readable until the job has ended."
        },
        "video_codec": {
          "type": "string",
          "enum": [
            "h264_videotoolbox",
            "libx264"
          ],
          "description": "h264_videotoolbox encodes on the renderer hardware. libx264 encodes in software.",
          "default": "h264_videotoolbox"
        },
        "audio_codec": {
          "type": "string",
          "enum": [
            "aac",
            "copy"
          ],
          "default": "aac"
        },
        "height": {
          "type": "integer",
          "minimum": 1,
          "maximum": 2160,
          "description": "Output height in pixels. Omit to keep the source height."
        },
        "start_seconds": {
          "type": "number",
          "minimum": 0,
          "maximum": 86400,
          "description": "Keep one part of the source, from here. May be given without duration_seconds."
        },
        "duration_seconds": {
          "type": "number",
          "minimum": 0.01,
          "maximum": 86400,
          "description": "How much of the source to keep."
        },
        "fps": {
          "type": "integer",
          "minimum": 1,
          "maximum": 120,
          "description": "The output frame rate."
        },
        "keep_fps_at_least": {
          "type": "integer",
          "minimum": 1,
          "maximum": 120,
          "description": "With fps: a source whose own rate is at least this keeps its rate. Refused without fps."
        },
        "strip_audio": {
          "type": "boolean",
          "description": "The output has no sound stream."
        },
        "pad_to_duration_seconds": {
          "type": "number",
          "minimum": 0.01,
          "maximum": 86400,
          "description": "When the result is shorter, its last frame is kept on screen, with silence, up to this length. A result that is already as long is left as it is."
        },
        "overlay_image_url": {
          "type": "string",
          "format": "uri",
          "description": "One image laid over the whole picture for its whole length, stretched to the frame as it is after height. Its transparency is kept."
        },
        "replace_audio_url": {
          "type": "string",
          "format": "uri",
          "description": "A sound file that replaces the soundtrack. It is cut at the length of the picture or padded with silence up to it. Refused together with strip_audio."
        },
        "replace_audio_in_seconds": {
          "type": "number",
          "minimum": 0,
          "maximum": 86400,
          "default": 0,
          "description": "Where in replace_audio_url the new sound starts."
        }
      },
      "required": [
        "input_url"
      ],
      "description": "Input for ffmpeg.transcode.v1. audio_codec copy works with a cut, a frame rate and an overlay; it is refused with replace_audio_url, and with pad_to_duration_seconds unless strip_audio is set, because both write new sound."
    },
    "H3PresetInput": {
      "type": "object",
      "properties": {
        "prompt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2000,
          "description": "One line, sent to the model as written. Refer to the image as <Picture 1>."
        },
        "reference_jpeg_base64": {
          "type": "string",
          "maxLength": 180000,
          "description": "One JPEG, base64-encoded, at most 180,000 characters."
        },
        "public_intent": {
          "type": "boolean",
          "description": "No longer needed. Accepted and ignored."
        },
        "seed": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647,
          "description": "Omit it and every job gets a fresh random seed, so repeating a prompt gives a different clip. Pass it and the same request reproduces the same clip."
        }
      },
      "required": [
        "prompt",
        "reference_jpeg_base64"
      ],
      "additionalProperties": false,
      "description": "Input for h3.reference_480p.v1, the original published preset, kept unchanged for existing integrations: one inline JPEG and a prompt in, a fixed five-second 864×480 MP4 with stereo AAC audio out, for 25000 micros ($0.025). seed is its only addition. Use h3.video.v1 for new work."
    },
    "H3ReferenceClip": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "pattern": "^https?://",
          "maxLength": 4096,
          "description": "Any public link to the file, or an input_url from POST /v1/assets. The renderer downloads it when the job starts, so the link has to stay readable until then."
        },
        "seconds": {
          "type": "integer",
          "minimum": 2,
          "maximum": 15,
          "description": "How much of the clip is used, from its start."
        }
      },
      "required": [
        "url"
      ],
      "additionalProperties": false
    },
    "H3References": {
      "type": "object",
      "properties": {
        "images": {
          "type": "array",
          "maxItems": 9,
          "items": {
            "$ref": "#/$defs/MediaUrl"
          },
          "description": "JPEG or PNG images. Name them in the prompt in order as <Picture 1>, <Picture 2>."
        },
        "videos": {
          "type": "array",
          "maxItems": 3,
          "items": {
            "$ref": "#/$defs/H3ReferenceClip"
          },
          "description": "MP4 videos, at most 15 seconds in total. Name them in the prompt in order as <Video 1>, <Video 2>."
        },
        "audio": {
          "type": "array",
          "maxItems": 3,
          "items": {
            "$ref": "#/$defs/H3ReferenceClip"
          },
          "description": "WAV or M4A audio, at most 15 seconds in total. Name the clips in the prompt in order as <Audio 1>, <Audio 2>. Audio needs an image or video beside it."
        },
        "use_video_sound": {
          "type": "boolean",
          "default": false,
          "description": "Include the sound of the reference videos. Needs at least one reference video."
        }
      },
      "required": [],
      "additionalProperties": false,
      "description": "Reference files for the model to draw on. At least one file and at most 12 in all. Cannot be combined with first_frame_url or last_frame_url."
    },
    "H3VideoInput": {
      "type": "object",
      "properties": {
        "prompt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 10000,
          "description": "What happens in the shot, how the camera moves and what we hear. Line breaks are allowed. A plain sentence is laid out for the model automatically and gets ambient sound. To direct sound, write the model’s own fields and the prompt is sent as written: spoken lines as <d>…</d>, an overall_soundscape: line and a non_diegetic_music: line. A prompt on a request with references is always sent as written."
        },
        "public_intent": {
          "type": "boolean",
          "description": "No longer needed. Accepted and ignored."
        },
        "duration_seconds": {
          "type": "integer",
          "minimum": 4,
          "maximum": 10,
          "default": 5,
          "description": "Clip length in seconds. Output is 24 fps and the model generates in 17-frame chunks, so the delivered length is within about a third of a second of the request: 5 seconds is 124 frames, 10 is 243, 15 is 362. A 4-second request returns 107 frames. The longest clip is 10 seconds at 480p and 5 seconds at 768p."
        },
        "resolution": {
          "enum": [
            "480p",
            "768p"
          ],
          "default": "480p",
          "description": "768p is the model’s native size. 2K is not offered."
        },
        "aspect_ratio": {
          "enum": [
            "16:9",
            "9:16",
            "1:1",
            "4:3",
            "3:4",
            "21:9"
          ],
          "default": "16:9",
          "description": "Output size in pixels. 480p: 16:9 is 864×480, 9:16 is 480×864, 1:1 is 640×640, 4:3 is 736×544, 3:4 is 544×736, 21:9 is 992×416. 768p: 16:9 is 1344×768, 9:16 is 768×1344, 1:1 is 1024×1024, 4:3 is 1152×864, 3:4 is 864×1152, 21:9 is 1568×672."
        },
        "quality": {
          "enum": [
            "fast",
            "high",
            "full"
          ],
          "default": "fast",
          "description": "fast runs 4 to 5 passes with a distilled adapter; high runs 20 passes and reuses work in the middle steps; full runs 20 full passes. More passes take longer to render and cost more."
        },
        "seed": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647,
          "description": "Omit it and every job gets a fresh random seed, so repeating a prompt gives a different clip. Pass it and the same request reproduces the same clip."
        },
        "first_frame_url": {
          "type": "string",
          "format": "uri",
          "pattern": "^https?://",
          "maxLength": 4096,
          "description": "The clip starts on this JPEG or PNG image. It is scaled and centre-cropped to the output size. Any public link to the file, or an input_url from POST /v1/assets. The renderer downloads it when the job starts, so the link has to stay readable until then."
        },
        "last_frame_url": {
          "type": "string",
          "format": "uri",
          "pattern": "^https?://",
          "maxLength": 4096,
          "description": "The clip ends on this JPEG or PNG image. It is scaled and centre-cropped to the output size. Any public link to the file, or an input_url from POST /v1/assets. The renderer downloads it when the job starts, so the link has to stay readable until then."
        },
        "references": {
          "$ref": "#/$defs/H3References"
        }
      },
      "required": [
        "prompt"
      ],
      "additionalProperties": false,
      "not": {
        "anyOf": [
          {
            "required": [
              "references",
              "first_frame_url"
            ]
          },
          {
            "required": [
              "references",
              "last_frame_url"
            ]
          }
        ]
      },
      "description": "Input for h3.video.v1: text to video with optional frames or references. Unknown fields are rejected. Send no media for text to video; first_frame_url, last_frame_url or both to start or end on an image; or references. Output is an MP4 with H.264 video at 24 fps and stereo AAC audio. The price depends on length, resolution, quality and references: POST /v1/jobs/estimate returns it. A five-second 480p clip at fast quality from text, frames or one reference image costs 25000 micros ($0.025). Options that would render for more than 30 minutes are refused with invalid_request."
    },
    "MediaMeasureInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "pattern": "^https?://",
          "maxLength": 4096,
          "description": "A public http or https link the renderer fetches, up to 1 GB. Keep it readable until the job has ended."
        },
        "measures": {
          "type": "array",
          "minItems": 1,
          "maxItems": 5,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "enum": [
              "format",
              "loudness",
              "scenes",
              "black",
              "freeze"
            ]
          },
          "description": "What to measure. format: container, length, size, and the video and sound streams. loudness: integrated loudness, true peak and loudness range. scenes: the times of cuts. black: stretches of black from 0.1 seconds. freeze: stretches of frozen picture from 0.5 seconds."
        },
        "scene_threshold": {
          "type": "number",
          "minimum": 0.01,
          "maximum": 1,
          "default": 0.3,
          "description": "How different two frames must be to count as a cut."
        },
        "waveform": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "width": {
              "type": "integer",
              "minimum": 16,
              "maximum": 4096
            },
            "height": {
              "type": "integer",
              "minimum": 16,
              "maximum": 1024
            }
          },
          "required": [
            "width",
            "height"
          ],
          "description": "A picture of the sound waveform at this size in pixels. It becomes the output file."
        }
      },
      "required": [
        "url",
        "measures"
      ],
      "description": "Input for media.measure.v1: facts about one media file. Unknown fields are refused. The measurements come back as the job result, one entry per measure asked for; a list is cut at 500 entries and then carries truncated: true. The output file is the waveform PNG when one is asked for, otherwise the same measurements as a JSON file."
    },
    "MediaUrl": {
      "type": "string",
      "format": "uri",
      "pattern": "^https?://",
      "maxLength": 4096,
      "description": "Any public link to the file, or an input_url from POST /v1/assets. The renderer downloads it when the job starts, so the link has to stay readable until then."
    },
    "RemotionRenderInput": {
      "type": "object",
      "properties": {
        "serve_url": {
          "type": "string",
          "format": "uri",
          "description": "Public link to your bundled Remotion site: the index.html written by npx remotion bundle. To host it here, send the bundle’s file manifest to POST /v1/assets, PUT every returned upload, and use its serve_url on the isolated quiet-field-7f3c.buildngrowsv.workers.dev bundle origin."
        },
        "composition_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "description": "The composition to render."
        },
        "input_props": {
          "type": "object",
          "additionalProperties": true,
          "default": {},
          "description": "Props passed to the composition. Any JSON."
        },
        "input_props_url": {
          "type": "string",
          "format": "uri",
          "pattern": "^https?://",
          "description": "Public link to the props as a JSON object, up to 64 MB. Use it for props too large to send in the request. Not together with a non-empty input_props."
        },
        "still_frame": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000,
          "description": "Render this one frame as a PNG in place of a video. The output is a .png. frame_range, crf, the bitrate fields, color_space and the sound fields are refused with it."
        },
        "remote_assets": {
          "type": "array",
          "maxItems": 64,
          "default": [],
          "description": "Media the composition needs. The renderer downloads each file and writes its local path into input_props before rendering.",
          "items": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "description": "Public https link to the file, up to 1 GB."
              },
              "input_props_path": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "description": "Dot-path in input_props that receives the downloaded file, for example voiceover.src or scenes.0.backgroundUrl."
              }
            },
            "required": [
              "url",
              "input_props_path"
            ]
          }
        },
        "bundle_manifest_url": {
          "type": "string",
          "format": "uri",
          "description": "Not needed for a render: the renderer opens serve_url itself. Accepted and not used. If sent, send bundle_manifest_sha256 with it."
        },
        "bundle_manifest_sha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$",
          "description": "Not needed for a render. Accepted and not used."
        },
        "frame_range": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0
          },
          "minItems": 2,
          "maxItems": 2,
          "description": "First and last frame to render, inclusive. Omit to render every frame."
        },
        "output_container": {
          "type": "string",
          "enum": [
            "mp4",
            "webm",
            "mov"
          ],
          "default": "mp4"
        },
        "video_codec": {
          "type": "string",
          "enum": [
            "h264",
            "h265",
            "vp8",
            "vp9",
            "prores"
          ],
          "default": "h264",
          "description": "webm needs vp8 or vp9."
        },
        "image_format": {
          "type": "string",
          "enum": [
            "jpeg",
            "png"
          ],
          "default": "jpeg",
          "description": "How each frame is captured before encoding. jpeg frames are captured at quality 80."
        },
        "crf": {
          "type": "number",
          "minimum": 0,
          "maximum": 51,
          "description": "Omit for 18 with h264."
        },
        "x264_preset": {
          "type": "string",
          "enum": [
            "ultrafast",
            "superfast",
            "veryfast",
            "faster",
            "fast",
            "medium",
            "slow",
            "slower",
            "veryslow",
            "placebo"
          ],
          "description": "Only with video_codec h264. Omit for medium. Refused with still_frame."
        },
        "x264_profile": {
          "type": "string",
          "enum": [
            "baseline",
            "main",
            "high"
          ],
          "description": "Only with video_codec h264. Omit for the encoder choice, which is high with the default settings. Refused with still_frame."
        },
        "b_frames": {
          "type": "integer",
          "minimum": 0,
          "maximum": 16,
          "description": "Only with video_codec h264. 0 turns B-frames off. Omit for the encoder choice, two with the default settings. Refused with still_frame."
        },
        "jpeg_quality": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100,
          "description": "Quality of the captured frames. Only with image_format jpeg. Omit for 80. Refused with still_frame."
        },
        "video_bitrate": {
          "type": "string",
          "maxLength": 16,
          "pattern": "^[0-9]+(\\.[0-9]+)?[KkM]$",
          "description": "Video bitrate, for example 6M or 800K. Not together with crf."
        },
        "encoding_max_rate": {
          "type": "string",
          "maxLength": 16,
          "pattern": "^[0-9]+(\\.[0-9]+)?[KkM]$",
          "description": "Highest bitrate the encoder may reach. Needs encoding_buffer_size."
        },
        "encoding_buffer_size": {
          "type": "string",
          "maxLength": 16,
          "pattern": "^[0-9]+(\\.[0-9]+)?[KkM]$"
        },
        "color_space": {
          "type": "string",
          "enum": [
            "default",
            "bt709",
            "bt2020-ncl"
          ],
          "description": "Omit for default, which applies no BT.709 conversion or tag. Send bt709 for a BT.709 file."
        },
        "muted": {
          "type": "boolean",
          "description": "Render with no sound. Not together with audio_codec, audio_bitrate or enforce_audio_track."
        },
        "audio_codec": {
          "type": "string",
          "enum": [
            "aac",
            "mp3",
            "opus",
            "pcm-16"
          ],
          "description": "pcm-16 needs output_container mov. The pairing has to be one Remotion allows with the video codec."
        },
        "audio_bitrate": {
          "type": "string",
          "maxLength": 16,
          "pattern": "^[0-9]+(\\.[0-9]+)?[KkM]$",
          "description": "Sound bitrate, for example 320K."
        },
        "sample_rate": {
          "type": "integer",
          "minimum": 8000,
          "maximum": 96000,
          "description": "Sound sample rate in hertz. Omit for 48000. Refused with muted and with still_frame."
        },
        "enforce_audio_track": {
          "type": "boolean",
          "description": "Write a sound track even when the composition has no sound."
        },
        "gl": {
          "type": "string",
          "enum": [
            "angle",
            "swangle",
            "egl",
            "vulkan",
            "angle-egl",
            "swiftshader"
          ],
          "description": "How the browser draws WebGL. Omit for the browser default on a renderer with a real GPU. swangle draws in software, for a render that must not depend on the GPU."
        },
        "timeout_ms": {
          "type": "integer",
          "minimum": 7000,
          "maximum": 600000,
          "description": "How long a frame may wait on the page before the render fails."
        },
        "ignore_certificate_errors": {
          "type": "boolean"
        },
        "pixel_format": {
          "type": "string",
          "enum": [
            "yuv420p",
            "yuva420p",
            "yuv422p",
            "yuv444p"
          ],
          "default": "yuv420p"
        },
        "resolved_props": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "composition_id"
          ],
          "description": "After the render or still succeeds, select this composition in the same bundle, with the job props and browser settings, without rendering it, and return its resolved props, what its calculateMetadata returns, as result.resolved_props. With prop, only the value at that path is returned, and a missing path gives null. A value too large for the 64 KB result fails the job with invalid_input: name a smaller prop.",
          "properties": {
            "composition_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "prop": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "A dot path of names inside the resolved props."
            }
          }
        },
        "concurrency": {
          "type": "integer",
          "minimum": 1,
          "maximum": 32,
          "description": "Frames rendered at once. Omit for half the logical cores of the renderer that takes the job, between 1 and 8, so it differs between renderers."
        }
      },
      "required": [
        "serve_url",
        "composition_id"
      ],
      "description": "Input for remotion.render.v1. Build the bundle with Remotion 4.0.530, the version the renderers run; the bundle carries its own React. The renderer opens the bundle from serve_url in its own browser, so keep the bundle readable at that link until the job has ended. The page loads https media named in its props by itself; remote_assets is for media the page cannot fetch. With nothing else set, a render is H.264 in an MP4 at CRF 18 with the x264 preset medium, frames captured as JPEG at quality 80, yuv420p, and AAC sound at 320 kbps and 48,000 Hz; a composition with no sound gets no sound stream unless enforce_audio_track is true. Hardware encoding is off. Bundle every font the composition draws with: system fonts differ between renderers."
    }
  }
}