{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/animgen-com/json-schema/animgen-com-video-to-frames-job-create-schema.json",
  "title": "VideoToFramesJobCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/animgen-com-jobs-api-openapi.yml#/components/schemas/VideoToFramesJobCreate",
  "properties": {
    "type": {
      "type": "string",
      "const": "video_to_frames",
      "title": "Type"
    },
    "workspaceId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Workspaceid"
    },
    "params": {
      "$ref": "#/$defs/VideoToFramesParams"
    }
  },
  "type": "object",
  "required": [
    "type",
    "params"
  ],
  "$defs": {
    "AnimationCanvas": {
      "properties": {
        "width": {
          "type": "integer",
          "title": "Width"
        },
        "height": {
          "type": "integer",
          "title": "Height"
        },
        "background": {
          "type": "string",
          "enum": [
            "transparent",
            "solid"
          ],
          "title": "Background",
          "default": "transparent"
        },
        "backgroundColor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Backgroundcolor",
          "default": "#000000"
        }
      },
      "type": "object",
      "required": [
        "width",
        "height"
      ],
      "title": "AnimationCanvas"
    },
    "AnimationEditRecipeV1": {
      "properties": {
        "version": {
          "type": "integer",
          "enum": [
            1,
            2
          ],
          "title": "Version",
          "default": 1
        },
        "source": {
          "$ref": "#/$defs/AnimationRecipeSource"
        },
        "sequence": {
          "items": {
            "$ref": "#/$defs/AnimationFrameRef"
          },
          "type": "array",
          "maxItems": 240,
          "minItems": 1,
          "title": "Sequence"
        },
        "playback": {
          "$ref": "#/$defs/AnimationPlayback"
        },
        "canvas": {
          "$ref": "#/$defs/AnimationCanvas"
        },
        "transform": {
          "$ref": "#/$defs/AnimationTransform"
        },
        "pivot": {
          "$ref": "#/$defs/AnimationPivot"
        }
      },
      "type": "object",
      "required": [
        "source",
        "sequence",
        "canvas"
      ],
      "title": "AnimationEditRecipeV1"
    },
    "AnimationFrameRef": {
      "properties": {
        "id": {
          "type": "string",
          "maxLength": 80,
          "minLength": 1,
          "title": "Id"
        },
        "sourceFrameIndex": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Sourceframeindex"
        },
        "sourceTimestampUs": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Sourcetimestampus"
        },
        "durationFrames": {
          "type": "integer",
          "maximum": 240.0,
          "minimum": 1.0,
          "title": "Durationframes",
          "default": 1
        },
        "imageAssetId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Imageassetid"
        },
        "transformOverride": {
          "anyOf": [
            {
              "$ref": "#/$defs/AnimationFrameTransform"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object",
      "required": [
        "id",
        "sourceFrameIndex",
        "sourceTimestampUs"
      ],
      "title": "AnimationFrameRef"
    },
    "AnimationFrameTransform": {
      "properties": {
        "offsetX": {
          "type": "number",
          "maximum": 4096.0,
          "minimum": -4096.0,
          "title": "Offsetx",
          "default": 0
        },
        "offsetY": {
          "type": "number",
          "maximum": 4096.0,
          "minimum": -4096.0,
          "title": "Offsety",
          "default": 0
        },
        "scale": {
          "type": "number",
          "maximum": 8.0,
          "minimum": 0.05,
          "title": "Scale",
          "default": 1
        }
      },
      "type": "object",
      "title": "AnimationFrameTransform"
    },
    "AnimationPivot": {
      "properties": {
        "x": {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "X",
          "default": 0.5
        },
        "y": {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Y",
          "default": 0
        }
      },
      "type": "object",
      "title": "AnimationPivot"
    },
    "AnimationPlayback": {
      "properties": {
        "fps": {
          "type": "number",
          "maximum": 60.0,
          "minimum": 1.0,
          "title": "Fps",
          "default": 24
        },
        "loop": {
          "type": "boolean",
          "title": "Loop",
          "default": true
        }
      },
      "type": "object",
      "title": "AnimationPlayback"
    },
    "AnimationRecipeSource": {
      "properties": {
        "assetId": {
          "type": "string",
          "format": "uuid",
          "title": "Assetid"
        },
        "sourceJobId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sourcejobid"
        },
        "timebase": {
          "type": "string",
          "const": "source_pts",
          "title": "Timebase",
          "default": "source_pts"
        }
      },
      "type": "object",
      "required": [
        "assetId"
      ],
      "title": "AnimationRecipeSource"
    },
    "AnimationTransform": {
      "properties": {
        "anchor": {
          "type": "string",
          "enum": [
            "center",
            "bottom_center"
          ],
          "title": "Anchor",
          "default": "center"
        },
        "offsetX": {
          "type": "number",
          "maximum": 4096.0,
          "minimum": -4096.0,
          "title": "Offsetx",
          "default": 0
        },
        "offsetY": {
          "type": "number",
          "maximum": 4096.0,
          "minimum": -4096.0,
          "title": "Offsety",
          "default": 0
        },
        "scale": {
          "type": "number",
          "maximum": 8.0,
          "minimum": 0.05,
          "title": "Scale",
          "default": 1
        },
        "fit": {
          "type": "string",
          "enum": [
            "none",
            "contain",
            "cover"
          ],
          "title": "Fit",
          "default": "contain"
        }
      },
      "type": "object",
      "title": "AnimationTransform"
    },
    "ColorKeyTuningConfig": {
      "properties": {
        "backgroundThreshold": {
          "type": "number",
          "maximum": 128.0,
          "minimum": 0.0,
          "title": "Backgroundthreshold",
          "default": 25.92
        },
        "foregroundThreshold": {
          "type": "number",
          "maximum": 192.0,
          "minimum": 1.0,
          "title": "Foregroundthreshold",
          "default": 70.0
        },
        "edgeContraction": {
          "type": "number",
          "maximum": 8.0,
          "minimum": 0.0,
          "title": "Edgecontraction",
          "default": 0.5
        },
        "edgeFeather": {
          "type": "number",
          "maximum": 4.0,
          "minimum": 0.0,
          "title": "Edgefeather",
          "default": 0.7
        },
        "edgeDespillStrength": {
          "type": "number",
          "maximum": 3.0,
          "minimum": 0.0,
          "title": "Edgedespillstrength",
          "default": 1.2
        },
        "interiorDespillStrength": {
          "type": "number",
          "maximum": 3.0,
          "minimum": 0.0,
          "title": "Interiordespillstrength",
          "default": 0.84
        },
        "edgeDespillRadius": {
          "type": "integer",
          "maximum": 96.0,
          "minimum": 1.0,
          "title": "Edgedespillradius",
          "default": 26
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "ColorKeyTuningConfig",
      "description": "Seven direct V2 inputs; unpublished predecessor fields are rejected."
    },
    "TransparentConfig": {
      "properties": {
        "enabled": {
          "type": "boolean",
          "title": "Enabled",
          "default": false
        },
        "method": {
          "type": "string",
          "enum": [
            "matting",
            "color_key"
          ],
          "title": "Method",
          "default": "matting"
        },
        "mattingProvider": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "photoroom",
                "rembg",
                "mock"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Mattingprovider"
        },
        "alphaMatting": {
          "type": "boolean",
          "title": "Alphamatting",
          "default": false
        },
        "colorKey": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Colorkey"
        },
        "colorKeyTolerance": {
          "type": "integer",
          "title": "Colorkeytolerance",
          "default": 36
        },
        "colorKeySoftness": {
          "type": "integer",
          "title": "Colorkeysoftness",
          "default": 28
        },
        "colorKeyDespill": {
          "type": "boolean",
          "title": "Colorkeydespill",
          "default": true
        },
        "colorKeyTuning": {
          "anyOf": [
            {
              "$ref": "#/$defs/ColorKeyTuningConfig"
            },
            {
              "type": "null"
            }
          ]
        },
        "keyingProfile": {
          "type": "string",
          "enum": [
            "generated_video_v1",
            "generated_video_conservative_v1",
            "generated_video_cleanup_v1",
            "generated_video_v2",
            "generated_video_cleanup_v2"
          ],
          "title": "Keyingprofile",
          "default": "generated_video_v2"
        },
        "fallbackProvider": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "photoroom",
                "rembg",
                "mock"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Fallbackprovider",
          "default": "rembg"
        }
      },
      "type": "object",
      "title": "TransparentConfig"
    },
    "UnityConfig": {
      "properties": {
        "pixelsPerUnit": {
          "type": "integer",
          "title": "Pixelsperunit",
          "default": 100
        },
        "pivot": {
          "type": "string",
          "const": "bottom_center",
          "title": "Pivot",
          "default": "bottom_center"
        }
      },
      "type": "object",
      "title": "UnityConfig"
    },
    "VideoToFramesParams": {
      "properties": {
        "parentJobId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Parentjobid"
        },
        "sourceVideoAssetId": {
          "type": "string",
          "format": "uuid",
          "title": "Sourcevideoassetid"
        },
        "clipStartSeconds": {
          "type": "number",
          "title": "Clipstartseconds",
          "default": 0.0
        },
        "frameCount": {
          "type": "integer",
          "title": "Framecount"
        },
        "selectionMode": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "full",
                "range"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Selectionmode"
        },
        "samplingPlan": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Samplingplan"
        },
        "exportWarnings": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "title": "Exportwarnings"
        },
        "targetDurationSeconds": {
          "type": "number",
          "exclusiveMinimum": 0.0,
          "title": "Targetdurationseconds"
        },
        "outputWidth": {
          "type": "integer",
          "title": "Outputwidth"
        },
        "outputHeight": {
          "type": "integer",
          "title": "Outputheight"
        },
        "exportFormats": {
          "items": {
            "type": "string",
            "enum": [
              "clip_video",
              "webm_alpha",
              "prores_4444",
              "gif",
              "frames_zip",
              "spritesheet",
              "spritesheet_json",
              "unity_meta",
              "unity_pack",
              "godot_pack",
              "unreal_paper2d_pack",
              "cocos_creator_pack",
              "construct3_pack"
            ]
          },
          "type": "array",
          "title": "Exportformats"
        },
        "transparent": {
          "$ref": "#/$defs/TransparentConfig"
        },
        "unity": {
          "$ref": "#/$defs/UnityConfig"
        },
        "compositionId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Compositionid"
        },
        "compositionRevision": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Compositionrevision"
        },
        "editRecipe": {
          "anyOf": [
            {
              "$ref": "#/$defs/AnimationEditRecipeV1"
            },
            {
              "type": "null"
            }
          ]
        },
        "purchaseIntentId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Purchaseintentid"
        }
      },
      "type": "object",
      "required": [
        "sourceVideoAssetId",
        "frameCount",
        "targetDurationSeconds",
        "outputWidth",
        "outputHeight"
      ],
      "title": "VideoToFramesParams"
    }
  }
}