{
 "openapi": "3.0.3",
 "info": {
  "title": "Video depth (default): DVD (2026)",
  "version": "2026-11-21",
  "description": "Curated ZeroGPU tool from the ZeroGPU lineup catalog. Calls go straight to the upstream Space haodongli/DVD; send your own HF token as a bearer token so the call uses your ZeroGPU quota."
 },
 "servers": [
  {
   "url": "https://haodongli-dvd.hf.space"
  }
 ],
 "x-zerogpu": {
  "category": "Video",
  "slot": "Video depth",
  "need": "Per-frame depth for relighting, compositing and 3D effects.",
  "role": "default",
  "space": "haodongli/DVD",
  "space_url": "https://huggingface.co/spaces/haodongli/DVD",
  "model": "DVD (2026)",
  "license": "Apache-2.0",
  "license_class": "open",
  "gpu_seconds_booked": "90",
  "notes": "Official and stateless.",
  "caveats": "",
  "lineup_call": "/predict(input_video) \u2192 depth video",
  "api_style": "v1"
 },
 "components": {
  "securitySchemes": {
   "hfToken": {
    "type": "http",
    "scheme": "bearer",
    "description": "Your own Hugging Face token (read scope is enough). It is sent only to the upstream Space and bills that call to your account's ZeroGPU quota. Without it the call runs on the small anonymous quota."
   }
  },
  "schemas": {}
 },
 "paths": {
  "/gradio_api/call/predict": {
   "post": {
    "description": "Per-frame depth for relighting, compositing and 3D effects. Step 1 of 2: returns {\"event_id\"}; then GET /gradio_api/call/predict/{event_id} reads an SSE stream whose `event: complete` data is the JSON output array (`event: error` on failure). Upstream: https://huggingface.co/spaces/haodongli/DVD. License: Apache-2.0. \n\nUpstream description: \nReturns, in order: Output Video: dict(video: filepath, subtitles: filepath | None)",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "data"
        ],
        "properties": {
         "data": {
          "type": "array",
          "minItems": 1,
          "maxItems": 1,
          "items": {},
          "description": "Positional inputs, in this order:\n0. input_video: dict(video: filepath, subtitles: filepath | None) (required)"
         }
        }
       }
      }
     }
    },
    "x-gradio-parameters": [
     {
      "name": "input_video",
      "schema": {
       "properties": {
        "video": {
         "description": "The FileData class is a subclass of the GradioModel class that represents a file object within a Gradio interface. It is used to store file data and metadata when a file is uploaded.\n\nAttributes:\n    path: The server file path where the file is stored.\n    url: The normalized server URL pointing to the file.\n    size: The size of the file in bytes.\n    orig_name: The original filename before upload.\n    mime_type: The MIME type of the file.\n    is_stream: Indicates whether the file is a stream.\n    meta: Additional metadata used internally (should not be changed).",
         "properties": {
          "path": {
           "title": "Path",
           "type": "string"
          },
          "url": {
           "type": "string",
           "default": null,
           "title": "Url",
           "nullable": true
          },
          "size": {
           "type": "integer",
           "default": null,
           "title": "Size",
           "nullable": true
          },
          "orig_name": {
           "type": "string",
           "default": null,
           "title": "Orig Name",
           "nullable": true
          },
          "mime_type": {
           "type": "string",
           "default": null,
           "title": "Mime Type",
           "nullable": true
          },
          "is_stream": {
           "default": false,
           "title": "Is Stream",
           "type": "boolean"
          },
          "meta": {
           "properties": {
            "_type": {
             "title": "Type",
             "type": "string",
             "enum": [
              "gradio.FileData"
             ]
            }
           },
           "required": [
            "_type"
           ],
           "title": "FileDataMeta",
           "type": "object"
          }
         },
         "required": [
          "path"
         ],
         "title": "FileData",
         "type": "object"
        },
        "subtitles": {
         "description": "The FileData class is a subclass of the GradioModel class that represents a file object within a Gradio interface. It is used to store file data and metadata when a file is uploaded.\n\nAttributes:\n    path: The server file path where the file is stored.\n    url: The normalized server URL pointing to the file.\n    size: The size of the file in bytes.\n    orig_name: The original filename before upload.\n    mime_type: The MIME type of the file.\n    is_stream: Indicates whether the file is a stream.\n    meta: Additional metadata used internally (should not be changed).",
         "properties": {
          "path": {
           "title": "Path",
           "type": "string"
          },
          "url": {
           "type": "string",
           "default": null,
           "title": "Url",
           "nullable": true
          },
          "size": {
           "type": "integer",
           "default": null,
           "title": "Size",
           "nullable": true
          },
          "orig_name": {
           "type": "string",
           "default": null,
           "title": "Orig Name",
           "nullable": true
          },
          "mime_type": {
           "type": "string",
           "default": null,
           "title": "Mime Type",
           "nullable": true
          },
          "is_stream": {
           "default": false,
           "title": "Is Stream",
           "type": "boolean"
          },
          "meta": {
           "properties": {
            "_type": {
             "title": "Type",
             "type": "string",
             "enum": [
              "gradio.FileData"
             ]
            }
           },
           "required": [
            "_type"
           ],
           "title": "FileDataMeta",
           "type": "object"
          }
         },
         "required": [
          "path"
         ],
         "title": "FileData",
         "type": "object",
         "default": null,
         "nullable": true
        }
       },
       "required": [
        "video"
       ],
       "title": "VideoData",
       "type": "object",
       "additional_description": null
      },
      "required": true,
      "default": null
     }
    ],
    "operationId": "video_video_depth",
    "tags": [
     "Video"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ],
    "summary": "Video depth (default): DVD (2026)",
    "responses": {
     "200": {
      "description": "Job accepted.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "required": [
          "event_id"
         ],
         "properties": {
          "event_id": {
           "type": "string"
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/gradio_api/call/predict/{event_id}": {
   "get": {
    "summary": "Read the result stream for /predict",
    "description": "Server-sent events. The final `event: complete` carries a JSON array of outputs; `event: error` means the call failed.",
    "parameters": [
     {
      "name": "event_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "SSE stream",
      "content": {
       "text/event-stream": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    },
    "operationId": "video_video_depth_result",
    "tags": [
     "Video"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ]
   }
  }
 }
}