{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kling-ai/json-schema/kling-ai-video-task-response-schema.json",
  "title": "VideoTaskResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kling-ai-image-to-video-api-openapi.yml#/components/schemas/VideoTaskResponse",
  "type": "object",
  "properties": {
    "code": {
      "type": "integer"
    },
    "message": {
      "type": "string"
    },
    "request_id": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string"
        },
        "task_status": {
          "type": "string",
          "enum": [
            "submitted",
            "processing",
            "succeed",
            "failed"
          ]
        },
        "task_result": {
          "type": "object",
          "properties": {
            "videos": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "duration": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}