{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/animgen-com/json-schema/animgen-com-image-to-video-quote-request-schema.json",
  "title": "ImageToVideoQuoteRequest",
  "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/ImageToVideoQuoteRequest",
  "properties": {
    "params": {
      "$ref": "#/$defs/ImageToVideoParams"
    },
    "lastFrameEnabled": {
      "type": "boolean",
      "title": "Lastframeenabled",
      "default": false
    },
    "referenceImageCount": {
      "type": "integer",
      "title": "Referenceimagecount",
      "default": 0
    }
  },
  "type": "object",
  "required": [
    "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"
    }
  }
}