{
 "openapi": "3.0.3",
 "info": {
  "title": "Reconstruction from photos or video (default): VGGT-Omega (CVPR 2026)",
  "version": "2026-11-21",
  "description": "Curated ZeroGPU tool from the ZeroGPU lineup catalog. Calls go straight to the upstream Space facebook/vggt-omega; send your own HF token as a bearer token so the call uses your ZeroGPU quota."
 },
 "servers": [
  {
   "url": "https://facebook-vggt-omega.hf.space"
  }
 ],
 "x-zerogpu": {
  "category": "3D and spatial",
  "slot": "Reconstruction from photos or video",
  "need": "Point clouds, cameras and geometry from real captures.",
  "role": "default",
  "space": "facebook/vggt-omega",
  "space_url": "https://huggingface.co/spaces/facebook/vggt-omega",
  "model": "VGGT-Omega (CVPR 2026)",
  "license": "FAIR research (non-commercial, gated)",
  "license_class": "nc",
  "gpu_seconds_booked": "60",
  "notes": "Best feed-forward reconstruction. Two calls linked by a plain string handle, not session state.",
  "caveats": "",
  "lineup_call": "/update_gallery_on_upload(input_video, input_images) \u2192 target_dir\n/gradio_demo(target_dir, conf_thres=50, show_cam=true, max_points_k=1000) \u2192 GLB point cloud + cameras",
  "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/update_gallery_on_upload": {
   "post": {
    "description": "Point clouds, cameras and geometry from real captures. Step 1 of 2: returns {\"event_id\"}; then GET /gradio_api/call/update_gallery_on_upload/{event_id} reads an SSE stream whose `event: complete` data is the JSON output array (`event: error` on failure). Upstream: https://huggingface.co/spaces/facebook/vggt-omega. License: FAIR research (non-commercial, gated). \n\nUpstream description: \nReturns, in order: value_14: filepath; Target Dir: str; Preview: list[dict(image: dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict(str, Any)), caption: str | None) | dict(video: filepath, caption: str | None)]; value_13: str",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "data"
        ],
        "properties": {
         "data": {
          "type": "array",
          "minItems": 2,
          "maxItems": 3,
          "items": {},
          "description": "Positional inputs, in this order:\n0. input_video: dict(video: filepath, subtitles: filepath | None) (required)\n1. input_images: list[filepath] (required)\n2. video_sample_fps: float (default 1.0)"
         }
        }
       }
      }
     }
    },
    "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
     },
     {
      "name": "input_images",
      "schema": {
       "items": {
        "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"
       },
       "title": "ListFiles",
       "type": "array",
       "additional_description": null
      },
      "required": true,
      "default": null
     },
     {
      "name": "video_sample_fps",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.5 and 2.0"
      },
      "required": false,
      "default": 1.0
     }
    ],
    "operationId": "three_d_reconstruction_from_photos_or_video",
    "tags": [
     "3D and spatial"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ],
    "summary": "Reconstruction from photos or video (default): VGGT-Omega (CVPR 2026)",
    "responses": {
     "200": {
      "description": "Job accepted.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "required": [
          "event_id"
         ],
         "properties": {
          "event_id": {
           "type": "string"
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/gradio_api/call/update_gallery_on_upload/{event_id}": {
   "get": {
    "summary": "Read the result stream for /update_gallery_on_upload",
    "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": "three_d_reconstruction_from_photos_or_video_result",
    "tags": [
     "3D and spatial"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ]
   }
  }
 }
}