{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clipugc-com/json-schema/clipugc-com-finished-video-schema.json",
  "title": "FinishedVideo",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clipugc-com-openapi.yml#/components/schemas/FinishedVideo",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "uuid": {
      "type": "string"
    },
    "character_video_id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The clip it was made from. Null once that clip is deleted."
    },
    "ai_character_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "description": "pending, processing, completed or failed."
    },
    "hook_text": {
      "type": [
        "string",
        "null"
      ],
      "description": "The line shown on top of the video."
    },
    "has_watermark": {
      "type": "boolean",
      "description": "True when the video carries the ClipUGC watermark."
    },
    "credits_charged": {
      "type": "integer",
      "description": "Credits this video cost."
    },
    "can_retry": {
      "type": "boolean",
      "description": "A failed video can be rendered again without sending the recording again."
    },
    "media": {
      "type": "object",
      "properties": {
        "merged_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "The finished MP4. Signed and expires."
        },
        "merged_thumbnail_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "A still frame of the finished video."
        },
        "has_merged": {
          "type": "boolean"
        },
        "source_clip_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "The clip it was made from."
        }
      },
      "required": [
        "merged_url",
        "merged_thumbnail_url",
        "has_merged",
        "source_clip_url"
      ]
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "uuid",
    "character_video_id",
    "ai_character_id",
    "status",
    "hook_text",
    "has_watermark",
    "credits_charged",
    "can_retry",
    "media",
    "created_at",
    "updated_at"
  ]
}