{
 "openapi": "3.0.3",
 "info": {
  "title": "Auto-rigging (default): SkinTokens (TokenRig, UniRig successor)",
  "version": "2026-11-21",
  "description": "Curated ZeroGPU tool from the ZeroGPU lineup catalog. Calls go straight to the upstream Space VAST-AI/SkinTokens; send your own HF token as a bearer token so the call uses your ZeroGPU quota."
 },
 "servers": [
  {
   "url": "https://vast-ai-skintokens.hf.space"
  }
 ],
 "x-zerogpu": {
  "category": "3D and spatial",
  "slot": "Auto-rigging",
  "need": "Add a skeleton and skin weights so a generated character can move.",
  "role": "default",
  "space": "VAST-AI/SkinTokens",
  "space_url": "https://huggingface.co/spaces/VAST-AI/SkinTokens",
  "model": "SkinTokens (TokenRig, UniRig successor)",
  "license": "MIT",
  "license_class": "open",
  "gpu_seconds_booked": "300",
  "notes": "Official, current state of the art for automatic rigging.",
  "caveats": "Books 300 s for one mesh, which a free account may not be able to admit.",
  "lineup_call": "/run_gradio(files=[mesh.glb|.obj|.fbx], top_k=5, top_p=0.95, temperature=1.0, num_beams=10) \u2192 rigged 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/run_gradio": {
   "post": {
    "description": "Add a skeleton and skin weights so a generated character can move. Step 1 of 2: returns {\"event_id\"}; then GET /gradio_api/call/run_gradio/{event_id} reads an SSE stream whose `event: complete` data is the JSON output array (`event: error` on failure). Upstream: https://huggingface.co/spaces/VAST-AI/SkinTokens. License: MIT. Caveats: Books 300 s for one mesh, which a free account may not be able to admit. \n\nUpstream description: \nReturns, in order: Status: str; Rigged GLB output: filepath",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "data"
        ],
        "properties": {
         "data": {
          "type": "array",
          "minItems": 1,
          "maxItems": 11,
          "items": {},
          "description": "Positional inputs, in this order:\n0. files: list[filepath] (required)\n1. top_k: float (default 5)\n2. top_p: float (default 0.95)\n3. temperature: float (default 1.0)\n4. repetition_penalty: float (default 2.0)\n5. num_beams: float (default 10)\n6. use_skeleton: bool (default false)\n7. use_transfer: bool (default false)\n8. use_postprocess: bool (default false)\n9. model_ckpt: Literal['experiments/articulation_xl_quantization_256_token_4/grpo_1400.ckpt'] (default \"experiments/articulation_xl_quantization_256_token_4/grpo_1400.ckpt\")\n10. hf_path: Literal['None'] (default \"None\")"
         }
        }
       }
      }
     }
    },
    "x-gradio-parameters": [
     {
      "name": "files",
      "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": "top_k",
      "schema": {
       "type": "number",
       "description": "numeric value between 1 and 200"
      },
      "required": false,
      "default": 5
     },
     {
      "name": "top_p",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.1 and 1.0"
      },
      "required": false,
      "default": 0.95
     },
     {
      "name": "temperature",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.1 and 2.0"
      },
      "required": false,
      "default": 1.0
     },
     {
      "name": "repetition_penalty",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.5 and 3.0"
      },
      "required": false,
      "default": 2.0
     },
     {
      "name": "num_beams",
      "schema": {
       "type": "number",
       "description": "numeric value between 1 and 20"
      },
      "required": false,
      "default": 10
     },
     {
      "name": "use_skeleton",
      "schema": {
       "type": "boolean"
      },
      "required": false,
      "default": false
     },
     {
      "name": "use_transfer",
      "schema": {
       "type": "boolean"
      },
      "required": false,
      "default": false
     },
     {
      "name": "use_postprocess",
      "schema": {
       "type": "boolean"
      },
      "required": false,
      "default": false
     },
     {
      "name": "model_ckpt",
      "schema": {
       "type": "string",
       "enum": [
        "experiments/articulation_xl_quantization_256_token_4/grpo_1400.ckpt"
       ]
      },
      "required": false,
      "default": "experiments/articulation_xl_quantization_256_token_4/grpo_1400.ckpt"
     },
     {
      "name": "hf_path",
      "schema": {
       "type": "string",
       "enum": [
        "None"
       ]
      },
      "required": false,
      "default": "None"
     }
    ],
    "operationId": "three_d_auto_rigging",
    "tags": [
     "3D and spatial"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ],
    "summary": "Auto-rigging (default): SkinTokens (TokenRig, UniRig successor)",
    "responses": {
     "200": {
      "description": "Job accepted.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "required": [
          "event_id"
         ],
         "properties": {
          "event_id": {
           "type": "string"
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/gradio_api/call/run_gradio/{event_id}": {
   "get": {
    "summary": "Read the result stream for /run_gradio",
    "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_auto_rigging_result",
    "tags": [
     "3D and spatial"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ]
   }
  }
 }
}