{
 "openapi": "3.0.3",
 "info": {
  "title": "Parts and texturing (default): Hunyuan3D-Part",
  "version": "2026-11-21",
  "description": "Curated ZeroGPU tool from the ZeroGPU lineup catalog. Calls go straight to the upstream Space tencent/Hunyuan3D-Part; send your own HF token as a bearer token so the call uses your ZeroGPU quota."
 },
 "servers": [
  {
   "url": "https://tencent-hunyuan3d-part.hf.space"
  }
 ],
 "x-zerogpu": {
  "category": "3D and spatial",
  "slot": "Parts and texturing",
  "need": "Segment a mesh into parts, or texture an untextured mesh.",
  "role": "default",
  "space": "tencent/Hunyuan3D-Part",
  "space_url": "https://huggingface.co/spaces/tencent/Hunyuan3D-Part",
  "model": "Hunyuan3D-Part",
  "license": "Tencent Hunyuan Community",
  "license_class": "cond",
  "gpu_seconds_booked": "60",
  "notes": "Official part segmentation.",
  "caveats": "",
  "lineup_call": "/segment(mesh_path, postprocess=true, postprocess_threshold=0.95, seed=42) \u2192 segmented mesh, file",
  "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/segment": {
   "post": {
    "description": "Segment a mesh into parts, or texture an untextured mesh. Step 1 of 2: returns {\"event_id\"}; then GET /gradio_api/call/segment/{event_id} reads an SSE stream whose `event: complete` data is the JSON output array (`event: error` on failure). Upstream: https://huggingface.co/spaces/tencent/Hunyuan3D-Part. License: Tencent Hunyuan Community. \n\nUpstream description: \nReturns, in order: Segmentation Result: filepath; Face ID: filepath",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "data"
        ],
        "properties": {
         "data": {
          "type": "array",
          "minItems": 1,
          "maxItems": 4,
          "items": {},
          "description": "Positional inputs, in this order:\n0. mesh_path: filepath (required)\n1. postprocess: bool (default true)\n2. postprocess_threshold: float (default 0.95)\n3. seed: float (default 42)"
         }
        }
       }
      }
     }
    },
    "x-gradio-parameters": [
     {
      "name": "mesh_path",
      "schema": {
       "type": "object",
       "required": [
        "path",
        "meta"
       ],
       "description": "A file. Set path to a public https URL (or a path returned by POST /gradio_api/upload on the same Space) and meta to {\"_type\": \"gradio.FileData\"}.",
       "properties": {
        "path": {
         "type": "string"
        },
        "url": {
         "type": "string"
        },
        "orig_name": {
         "type": "string"
        },
        "meta": {
         "type": "object",
         "properties": {
          "_type": {
           "type": "string",
           "enum": [
            "gradio.FileData"
           ]
          }
         }
        }
       }
      },
      "required": true,
      "default": null
     },
     {
      "name": "postprocess",
      "schema": {
       "type": "boolean"
      },
      "required": false,
      "default": true
     },
     {
      "name": "postprocess_threshold",
      "schema": {
       "type": "number"
      },
      "required": false,
      "default": 0.95
     },
     {
      "name": "seed",
      "schema": {
       "type": "number"
      },
      "required": false,
      "default": 42
     }
    ],
    "operationId": "three_d_parts_and_texturing",
    "tags": [
     "3D and spatial"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ],
    "summary": "Parts and texturing (default): Hunyuan3D-Part",
    "responses": {
     "200": {
      "description": "Job accepted.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "required": [
          "event_id"
         ],
         "properties": {
          "event_id": {
           "type": "string"
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/gradio_api/call/segment/{event_id}": {
   "get": {
    "summary": "Read the result stream for /segment",
    "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_parts_and_texturing_result",
    "tags": [
     "3D and spatial"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ]
   }
  }
 }
}