{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vivideo-ai/json-schema/vivideo-ai-video-schema.json",
  "title": "Video",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vivideo-ai-openapi.yaml#/components/schemas/Video",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "enum": [
        "auto",
        "manual"
      ]
    },
    "model": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "processing",
        "completed",
        "failed",
        "preview"
      ]
    },
    "name": {
      "type": "string"
    },
    "folder_id": {
      "type": "string"
    },
    "created_at": {
      "type": "string"
    },
    "credits_charged": {
      "type": "number"
    },
    "poll_interval_seconds": {
      "type": "integer"
    },
    "video_url": {
      "type": "string",
      "description": "Present when status=completed."
    },
    "video_url_no_captions": {
      "type": "string"
    },
    "caption_url": {
      "type": "string"
    },
    "thumbnail_url": {
      "type": "string"
    },
    "duration_seconds": {
      "type": "number"
    },
    "progress": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string"
        },
        "queue_position": {
          "type": [
            "integer",
            "null"
          ]
        },
        "percent": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "credits_refunded": {
          "type": "boolean"
        }
      }
    },
    "preview": {
      "type": "object",
      "description": "Present when status=preview (free-account funnel).",
      "properties": {
        "image_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Low-res preview image — display blurred."
        },
        "image_note": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "upgrade_url": {
          "type": "string"
        }
      }
    }
  }
}