{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/animgen-com/json-schema/animgen-com-image-to-video-job-create-schema.json",
  "title": "ImageToVideoJobCreate",
  "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/ImageToVideoJobCreate",
  "properties": {
    "type": {
      "type": "string",
      "const": "image_to_video",
      "title": "Type"
    },
    "workspaceId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Workspaceid"
    },
    "prompt": {
      "type": "string",
      "title": "Prompt",
      "default": ""
    },
    "negativePrompt": {
      "type": "string",
      "title": "Negativeprompt",
      "default": ""
    },
    "params": {
      "$ref": "#/$defs/ImageToVideoParams"
    },
    "initImageUploadId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Initimageuploadid"
    },
    "initImageSource": {
      "anyOf": [
        {
          "$ref": "#/$defs/MediaSourceInput"
        },
        {
          "type": "null"
        }
      ]
    },
    "lastFrameUploadId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lastframeuploadid"
    },
    "lastFrameSource": {
      "anyOf": [
        {
          "$ref": "#/$defs/MediaSourceInput"
        },
        {
          "type": "null"
        }
      ]
    },
    "referenceImages": {
      "items": {
        "$ref": "#/$defs/ReferenceImageInput"
      },
      "type": "array",
      "title": "Referenceimages"
    }
  },
  "type": "object",
  "required": [
    "type",
    "params"
  ],
  "$defs": {
    "ImageInputCanvasConfig": {
      "properties": {
        "version": {
          "type": "integer",
          "const": 1,
          "title": "Version",
          "default": 1
        },
        "enabled": {
          "type": "boolean",
          "title": "Enabled",
          "default": true
        },
        "sourceScale": {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.5,
          "title": "Sourcescale",
          "default": 0.8
        },
        "positionX": {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Positionx",
          "default": 0.5
        },
        "positionY": {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Positiony",
          "default": 0.5
        },
        "aspectRatio": {
          "type": "string",
          "enum": [
            "follow_output",
            "source"
          ],
          "title": "Aspectratio",
          "default": "follow_output"
        },
        "background": {
          "type": "string",
          "enum": [
            "auto",
            "transparent",
            "solid"
          ],
          "title": "Background",
          "default": "auto"
        },
        "backgroundColor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Backgroundcolor"
        }
      },
      "type": "object",
      "title": "ImageInputCanvasConfig"
    },
    "ImageToVideoParams": {
      "properties": {
        "targetDurationSeconds": {
          "type": "number",
          "exclusiveMinimum": 0.0,
          "title": "Targetdurationseconds"
        },
        "provider": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Provider"
        },
        "model": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "generationMode": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "first_frame",
                "first_last_frame",
                "reference_images"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Generationmode"
        },
        "seed": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Seed"
        },
        "stylePreset": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Stylepreset"
        },
        "resolution": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Resolution"
        },
        "ratio": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ratio"
        },
        "watermark": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Watermark"
        },
        "transparency": {
          "$ref": "#/$defs/ImageTransparencyConfig"
        },
        "inputCanvas": {
          "anyOf": [
            {
              "$ref": "#/$defs/ImageInputCanvasConfig"
            },
            {
              "type": "null"
            }
          ]
        },
        "purchaseIntentId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Purchaseintentid"
        }
      },
      "type": "object",
      "required": [
        "targetDurationSeconds"
      ],
      "title": "ImageToVideoParams"
    },
    "ImageTransparencyConfig": {
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "alpha_key",
            "matting"
          ],
          "title": "Mode",
          "default": "matting"
        },
        "keyColor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Keycolor"
        },
        "keySelection": {
          "type": "string",
          "enum": [
            "auto",
            "manual"
          ],
          "title": "Keyselection",
          "default": "auto"
        },
        "profile": {
          "type": "string",
          "enum": [
            "generated_video_v1",
            "generated_video_v2"
          ],
          "title": "Profile",
          "default": "generated_video_v2"
        }
      },
      "type": "object",
      "title": "ImageTransparencyConfig"
    },
    "MediaSourceInput": {
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "upload",
            "asset"
          ],
          "title": "Type"
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        }
      },
      "type": "object",
      "required": [
        "type",
        "id"
      ],
      "title": "MediaSourceInput"
    },
    "ReferenceImageInput": {
      "properties": {
        "uploadId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Uploadid"
        },
        "source": {
          "anyOf": [
            {
              "$ref": "#/$defs/MediaSourceInput"
            },
            {
              "type": "null"
            }
          ]
        },
        "role": {
          "type": "string",
          "enum": [
            "character",
            "prop",
            "style",
            "other"
          ],
          "title": "Role",
          "default": "other"
        },
        "label": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 80
            },
            {
              "type": "null"
            }
          ],
          "title": "Label"
        }
      },
      "type": "object",
      "title": "ReferenceImageInput"
    }
  }
}