{"openapi":"3.0.2","info":{"title":"tencent/hunyuan-3d-uv","description":"The request body Comfy Router accepts for the model \"tencent/hunyuan-3d-uv\", and the response body it returns. The INPUT schema is the same schema the server validates a call against before it reaches the provider, so what is published and what is enforced cannot differ. `x-comfy-router-input-modalities` records the media kinds the model is documented to accept; the request schema is shared across sibling models and may admit media kinds this model ignores. The OUTPUT schema describes the provider's native result document exactly as Router returns it: Router does not validate, narrow or re-envelope the response, so the output schema is descriptive rather than enforced, and Comfy owns no output shape of its own.","version":"b480feca95b9"},"paths":{"/v2/models/tencent/hunyuan-3d-uv":{"post":{"operationId":"runRouterModel","summary":"Run tencent/hunyuan-3d-uv synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request body for Tencent Hunyuan 3D UV unfolding.","example":{"File":{"Type":"GLB","Url":"https://vcg-test-1258344699.cos.ap-guangzhou.myqcloud.com/test/3d/test.glb"}},"properties":{"File":{"$ref":"#/components/schemas/TencentInputFile3D"}},"type":"object"}}}},"responses":{"200":{"description":"OK - the model's native JSON output, returned unchanged; the schema describes the provider's terminal result document as Router returns it.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/TencentHunyuan3DQueryResponse"},{"properties":{"Response":{"properties":{"ErrorCode":{"description":"Tencent's error code, documented as an empty string when there is no error. Router does not read it once `Status` is present.","type":"string"},"ErrorMessage":{"description":"Tencent's error message, documented as an empty string when there is no error. Router does not read it once `Status` is present.","type":"string"},"RequestId":{"description":"Tencent's own request identifier, for troubleshooting with Tencent. It is neither the job id nor an asset.","type":"string"},"ResultFile3Ds":{"description":"The finished job's generated 3D files. Present and non-empty on the document Router returns; at least one entry carries a fetchable `Url`. The links are Tencent's own and are documented as valid for 24 hours.","items":{"$ref":"#/components/schemas/TencentFile3D"},"minItems":1,"type":"array"},"Status":{"enum":["DONE"],"type":"string"}},"required":["Status","ResultFile3Ds"],"type":"object"}},"required":["Response"],"type":"object"}],"description":"Comfy Router output schema for the Tencent Hunyuan-3D operations: the terminal `POST /proxy/tencent/hunyuan/{operation}/query` document, forwarded unchanged. All four ids are SUBMIT-AND-POLL - `routerresult/classification.go` records each `POST /proxy/tencent/hunyuan/...` submit as `ReturnModeSubmitPoll` with its own `\u003csubmit\u003e/query` poll route - and Router polls on the caller's behalf, so the body a caller receives is the finished job rather than the `{\"Response\": {\"JobId\": ...}}` handle the underlying submit answers with.\nONE document describes all four operations because Tencent answers one. Part splitting, smart retopology, texture editing and UV unwrapping are four different jobs reached through four different query routes, and every one of those routes answers this same job document. The four ids publish different `example` values because the artifact differs, not because the shape does.\nTHE ASSET IS `Response.ResultFile3Ds`, a list of file OBJECTS: read `ResultFile3Ds[].Url`, which is the generated 3D file and is documented by Tencent as valid for 24 hours. The list can carry more than one entry, so read the entries rather than assuming the first. Two neighbouring members are NOT the asset and a caller must not key completion off either: `PreviewImageUrl` is a thumbnail image rather than a mesh, and `Type` is the file format. Comfy Router draws exactly that line - a `DONE` job in which no entry carries a non-empty `Url` is answered as a Comfy Router error rather than with this document - so a `200` here always carries at least one fetchable file.\nThe URLs are Tencent's own delivery links and they EXPIRE - Tencent documents 24 hours. Router does not re-host these files onto Comfy storage, so what a caller receives is Tencent's expiring URL rather than a Comfy one - download the asset rather than storing the link.\n`Response.Status` is Tencent's own UPPERCASE vocabulary (`WAIT`, `RUN`, `FAIL`, `DONE`), compared without case folding. `DONE` is the one terminal success and the only value this document can carry: `FAIL`, a body carrying a non-empty `ErrorCode` and no `Status` at all, and a budget-exhausted `WAIT`/`RUN` all reach a Router caller as a Comfy Router error rather than as this body. Router decides on `Status` alone whenever one is present and does not read `ErrorCode` or `ErrorMessage` on a `DONE` job; Tencent documents both as empty strings when there is no error, which is what the example shows, but key completion off `Status` and the asset off `ResultFile3Ds` rather than off either of them. `RequestId` is Tencent's own troubleshooting handle rather than the job id.","example":{"Response":{"ErrorCode":"","ErrorMessage":"","RequestId":"9a1c0d4e-77b2-4e0c-8f2e-2f9a1c0d4e77","ResultFile3Ds":[{"PreviewImageUrl":"https://example.invalid/tencent/hunyuan-3d-uv/preview.png","Type":"GLB","Url":"https://example.invalid/tencent/hunyuan-3d-uv/unwrapped.glb"}],"Status":"DONE"}}}}}}}}}},"components":{"schemas":{"TencentFile3D":{"description":"3D file information","properties":{"PreviewImageUrl":{"description":"Preview image URL","format":"uri","type":"string"},"Type":{"description":"File format. A finished job can return several entries in no fixed\norder, and not every entry is a mesh: the UV and smart-topology\noperations have been observed returning OBJ, GLB and FBX meshes\nbeside an IMAGE (a PNG texture). Select an entry by `Type` rather\nthan by position. Deliberately not an enum: the values above are\nonly the ones observed, this component is shared with operations\nwhose output has never been observed (part, texture-edit), and the\noutput schema is descriptive, so an unlisted value Tencent returns\nmust not turn a healthy result into a schema violation.\n","type":"string"},"Url":{"description":"File URL (valid for 24 hours)","format":"uri","type":"string"}},"type":"object"},"TencentHunyuan3DQueryResponse":{"description":"Response from Tencent Hunyuan 3D query endpoint","properties":{"Response":{"properties":{"ErrorCode":{"description":"Error code (empty string if no error)","type":"string"},"ErrorMessage":{"description":"Error message if task failed (empty string if no error)","type":"string"},"RequestId":{"description":"Unique request ID for troubleshooting","type":"string"},"ResultFile3Ds":{"description":"Array of generated 3D files","items":{"$ref":"#/components/schemas/TencentFile3D"},"type":"array"},"Status":{"description":"Task status:\n- WAIT: waiting\n- RUN: running\n- FAIL: failed\n- DONE: successful\n","enum":["WAIT","RUN","FAIL","DONE"],"type":"string"}},"type":"object"}},"type":"object"},"TencentInputFile3D":{"description":"3D file input for UV unwrapping","properties":{"Type":{"description":"3D file format type","enum":["FBX","OBJ","GLB"],"example":"GLB","type":"string"},"Url":{"description":"URL of the 3D file that needs UV unwrapping","example":"https://example.com/model.glb","format":"uri","type":"string"}},"required":["Type","Url"],"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"tencent/hunyuan-3d-uv","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["3d"],"x-comfy-router-output-modalities":["3d"]}
