{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clipugc-com/json-schema/clipugc-com-clip-schema.json",
  "title": "Clip",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clipugc-com-openapi.yml#/components/schemas/Clip",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "ai_character_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "character_reference_image_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "is_owned": {
      "type": "boolean",
      "description": "True when you created this clip. Only your own clips can be retried or deleted."
    },
    "mode": {
      "type": [
        "string",
        "null"
      ],
      "description": "image_to_video, motion_control or scene_replace."
    },
    "engine": {
      "type": [
        "string",
        "null"
      ],
      "description": "Motion engine: kling or wan. Null on image to video clips."
    },
    "resolution": {
      "type": [
        "string",
        "null"
      ],
      "description": "Output tier on wan clips: 480p, 580p or 720p."
    },
    "status": {
      "type": [
        "string",
        "null"
      ],
      "description": "pending, processing, completed or failed."
    },
    "prompt": {
      "type": [
        "string",
        "null"
      ]
    },
    "duration": {
      "type": [
        "string",
        "null"
      ],
      "description": "Length in seconds. Motion clips follow the driver video."
    },
    "aspect_ratio": {
      "type": [
        "string",
        "null"
      ]
    },
    "merged_video_id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Your newest finished video made from this clip, if any. Follow it at `GET /merged-videos/{id}`."
    },
    "ai_character": {
      "type": [
        "object",
        "null"
      ],
      "description": "The character's id and display name.",
      "properties": {
        "id": {
          "type": "integer"
        },
        "display_name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "display_name"
      ]
    },
    "media": {
      "type": "object",
      "properties": {
        "clip_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "The full-quality MP4, for downloading. Signed and expires."
        },
        "preview_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "A small MP4 for playback. Signed and expires."
        },
        "clip_thumbnail_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "A still frame of the clip."
        },
        "has_clip": {
          "type": "boolean"
        }
      },
      "required": [
        "clip_url",
        "preview_url",
        "clip_thumbnail_url",
        "has_clip"
      ]
    },
    "is_ready_for_use": {
      "type": "boolean",
      "description": "Completed and has a video, so it can become a finished video."
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "ai_character_id",
    "character_reference_image_id",
    "is_owned",
    "mode",
    "engine",
    "resolution",
    "status",
    "prompt",
    "duration",
    "aspect_ratio",
    "merged_video_id",
    "media",
    "is_ready_for_use",
    "created_at",
    "updated_at"
  ]
}