{
 "openapi": "3.0.3",
 "info": {
  "title": "Multi-view to 3D (default): ReconViaGen (TRELLIS + VGGT)",
  "version": "2026-11-21",
  "description": "Curated ZeroGPU tool from the ZeroGPU lineup catalog. Calls go straight to the upstream Space Stable-X/ReconViaGen; send your own HF token as a bearer token so the call uses your ZeroGPU quota."
 },
 "servers": [
  {
   "url": "https://stable-x-reconviagen.hf.space"
  }
 ],
 "x-zerogpu": {
  "category": "3D and spatial",
  "slot": "Multi-view to 3D",
  "need": "Build a model from several photos or generated turnaround views.",
  "role": "default",
  "space": "Stable-X/ReconViaGen",
  "space_url": "https://huggingface.co/spaces/Stable-X/ReconViaGen",
  "model": "ReconViaGen (TRELLIS + VGGT)",
  "license": "MIT",
  "license_class": "open",
  "gpu_seconds_booked": "120",
  "notes": "Two stateless calls give a textured GLB.",
  "caveats": "",
  "lineup_call": "/preprocess_images(images) \u2192 gallery\n/generate_and_extract_glb(multiimages, ss_sampling_steps=30, multiimage_algo=\"multidiffusion\", texture_size=1024) \u2192 video, GLB",
  "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/preprocess_images": {
   "post": {
    "description": "Build a model from several photos or generated turnaround views. Step 1 of 2: returns {\"event_id\"}; then GET /gradio_api/call/preprocess_images/{event_id} reads an SSE stream whose `event: complete` data is the JSON output array (`event: error` on failure). Upstream: https://huggingface.co/spaces/Stable-X/ReconViaGen. License: MIT. \n\nUpstream description: Preprocess a list of input images for multi-image 3D generation. This function is called when users upload multiple images in the gallery. It processes each image to prepare them for the multi-image 3D generation pipeline.\nReturns, in order: Image Prompt: 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)]",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "data"
        ],
        "properties": {
         "data": {
          "type": "array",
          "minItems": 0,
          "maxItems": 1,
          "items": {},
          "description": "Positional inputs, in this order:\n0. images: 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)] (default [])"
         }
        }
       }
      }
     }
    },
    "x-gradio-parameters": [
     {
      "name": "images",
      "schema": {
       "items": {
        "anyOf": [
         {
          "properties": {
           "image": {
            "description": "For input, either path or url must be provided. For output, path is always provided.",
            "properties": {
             "path": {
              "type": "string",
              "default": null,
              "description": "Path to a local file",
              "title": "Path",
              "nullable": true
             },
             "url": {
              "type": "string",
              "default": null,
              "description": "Publicly available url or base64 encoded image",
              "title": "Url",
              "nullable": true
             },
             "size": {
              "type": "integer",
              "default": null,
              "description": "Size of image in bytes",
              "title": "Size",
              "nullable": true
             },
             "orig_name": {
              "type": "string",
              "default": null,
              "description": "Original filename",
              "title": "Orig Name",
              "nullable": true
             },
             "mime_type": {
              "type": "string",
              "default": null,
              "description": "mime type of image",
              "title": "Mime Type",
              "nullable": true
             },
             "is_stream": {
              "default": false,
              "description": "Can always be set to False",
              "title": "Is Stream",
              "type": "boolean"
             },
             "meta": {
              "additionalProperties": true,
              "default": {
               "_type": "gradio.FileData"
              },
              "title": "Meta",
              "type": "object"
             }
            },
            "title": "ImageData",
            "type": "object"
           },
           "caption": {
            "type": "string",
            "default": null,
            "title": "Caption",
            "nullable": true
           }
          },
          "required": [
           "image"
          ],
          "title": "GalleryImage",
          "type": "object"
         },
         {
          "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"
           },
           "caption": {
            "type": "string",
            "default": null,
            "title": "Caption",
            "nullable": true
           }
          },
          "required": [
           "video"
          ],
          "title": "GalleryVideo",
          "type": "object"
         }
        ]
       },
       "title": "GalleryData",
       "type": "array",
       "additional_description": null
      },
      "required": false,
      "default": []
     }
    ],
    "operationId": "three_d_multi_view_to_3d",
    "tags": [
     "3D and spatial"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ],
    "summary": "Multi-view to 3D (default): ReconViaGen (TRELLIS + VGGT)",
    "responses": {
     "200": {
      "description": "Job accepted.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "required": [
          "event_id"
         ],
         "properties": {
          "event_id": {
           "type": "string"
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/gradio_api/call/preprocess_images/{event_id}": {
   "get": {
    "summary": "Read the result stream for /preprocess_images",
    "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_multi_view_to_3d_result",
    "tags": [
     "3D and spatial"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ]
   }
  }
 }
}