{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-image-to-video-generate-payload-schema.json",
  "title": "ImageToVideoGeneratePayload",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-video-openapi.yml#/components/schemas/ImageToVideoGeneratePayload",
  "type": "object",
  "required": [
    "prompt",
    "image_asset_id"
  ],
  "properties": {
    "prompt": {
      "type": "string",
      "description": "Video description prompt."
    },
    "image_asset_id": {
      "type": "string",
      "description": "Cloudinary asset ID of the input image for image-to-video generation."
    },
    "aspect_ratio": {
      "type": "string",
      "enum": [
        "auto",
        "16:9",
        "9:16"
      ],
      "default": "auto",
      "description": "Video aspect ratio. `auto` resolves based on image dimensions (defaults to landscape). `16:9` = landscape, `9:16` = portrait."
    },
    "resolution": {
      "type": "string",
      "enum": [
        "720p",
        "1080p"
      ],
      "default": "720p",
      "description": "Video resolution. `1080p` is only supported with a duration of 8 seconds."
    },
    "duration": {
      "type": "integer",
      "enum": [
        4,
        6,
        8
      ],
      "default": 8,
      "description": "Video duration in seconds."
    },
    "generate_audio": {
      "type": "boolean",
      "default": false,
      "description": "Whether to generate audio. Enabling audio consumes twice as many credits."
    },
    "enhance_prompt": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether to let Cloudinary automatically enhance the prompt.",
      "default": true
    },
    "last_frame_image_asset_id": {
      "type": "string",
      "description": "Cloudinary asset ID of the last frame image."
    },
    "reference_image_asset_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 2,
      "description": "Cloudinary asset IDs of reference images."
    },
    "folder": {
      "type": "string",
      "default": "image-to-video",
      "description": "Path of the folder to save the generated video to, for example `campaigns/spring`. If the folder doesn't exist, it's created."
    },
    "negative_prompt": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      },
      "maxItems": 50,
      "description": "Elements the video should avoid, for example `watermark` or `flickering`. Items must not be blank. If omitted, a default list of common artifacts is applied. Send an empty array to apply none."
    }
  }
}