{"openapi":"3.0.2","info":{"title":"meshy/remesh","description":"The request body Comfy Router accepts for the model \"meshy/remesh\", 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":"3bc4a86abb9e"},"paths":{"/v2/models/meshy/remesh":{"post":{"operationId":"runRouterModel","summary":"Run meshy/remesh synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request body for Meshy's remesh operation (docs.meshy.ai/en/api/remesh): re-topologise or re-format an existing mesh. Supply exactly one of input_task_id or model_url; Meshy requires no single field, so the only structural narrowing is that an empty body is refused.","example":{"input_task_id":"0193abcd-0000-0000-0000-000000000000","origin_at":"bottom","resize_height":1,"target_formats":["glb","fbx"],"target_polycount":50000,"topology":"quad"},"minProperties":1,"oneOf":[{"required":["input_task_id"]},{"required":["model_url"]}],"properties":{"convert_format_only":{"default":false,"description":"If true, only changes the format of the input model file, ignoring other inputs like topology, resize_height, and target_polycount.","type":"boolean"},"input_task_id":{"description":"The ID of the completed Image to 3D or Text to 3D task you wish to remesh. Required if model_url is not provided.","type":"string"},"model_url":{"description":"A publicly accessible URL or data URI to a 3D model. Supported formats glb, gltf, obj, fbx, stl. Required if input_task_id is not provided.","type":"string"},"origin_at":{"description":"Position of the origin.","enum":["bottom","center",""],"type":"string"},"resize_height":{"default":0,"description":"Resize the model to a certain height measured in meters. 0 means no resizing.","type":"number"},"target_formats":{"default":["glb"],"description":"A list of target formats for the remeshed model.","items":{"enum":["glb","fbx","obj","usdz","blend","stl"],"type":"string"},"type":"array"},"target_polycount":{"default":30000,"description":"Specify the target number of polygons in the generated model. Valid range is 100 to 300,000.","maximum":300000,"minimum":100,"type":"integer"},"topology":{"$ref":"#/components/schemas/MeshyTopology"}},"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/MeshyRemeshTask"},{"properties":{"status":{"enum":["SUCCEEDED"],"type":"string"}},"required":["status"],"type":"object"}],"description":"Comfy Router output schema for Meshy's remesh operation: the terminal `GET /proxy/meshy/openapi/v1/remesh/{task_id}` task document, forwarded unchanged. The operation is SUBMIT-AND-POLL — `POST /proxy/meshy/openapi/v1/remesh` answers a `MeshyRemeshCreateResponse` handle whose `result` is the task id and which carries no mesh, and Router polls on the caller's behalf — so the body a caller receives is the finished task document rather than that handle.\n`meshy/remesh` names an OPERATION rather than a model version. It re-meshes a mesh the caller already has (identified in the request by a preceding task's id or by a model URL), so it consumes a 3D asset and produces a 3D asset; it is not one of the text-to-3D generations `meshy/meshy-6`, `meshy/meshy-7` and `meshy/meshy-7.1` name.\nThe remeshed model is in `model_urls`, at whichever of `glb`, `fbx`, `obj`, `usdz`, `blend` and `stl` the request's `target_formats` asked for — which of them are populated depends on the request, so read the one that is present rather than keying completion off `glb` alone. Comfy Router draws that line: a `SUCCEEDED` task carrying no mesh URL at all is answered as a Comfy Router error rather than with this document, so through Router a `200` here always carries a mesh — but not always the same one. The line is drawn by `classifyMeshy`, which is shared with the text-to-3D family and accepts a seventh leaf, `model_urls.pre_remeshed_glb`, that this operation's `MeshyRemeshModelUrls` does not declare; a task carrying only that key would be forwarded rather than refused.\n`status` is Meshy's own UPPERCASE vocabulary, forwarded unchanged and not case-folded. This operation's enum is `PENDING`, `PROCESSING`, `SUCCEEDED`, `FAILED` — note `PROCESSING` where the text-to-3D family says `IN_PROGRESS`, and no `CANCELED`. `SUCCEEDED` is the one terminal success; `FAILED` is a terminal failure and reaches a Router caller as a Comfy Router error with Meshy's own reason in `task_error.message`. `progress` runs 0..100 and is 100 on a succeeded task. `preceding_tasks` is only meaningful while `PENDING`, which a Router caller never sees.","example":{"created_at":1767225600000,"finished_at":1767225663000,"id":"018f2c7a-4b1e-7c3d-9a05-6e2f8b41d0c9","model_urls":{"fbx":"https://example.invalid/meshy/remesh/model.fbx","glb":"https://example.invalid/meshy/remesh/model.glb","obj":"https://example.invalid/meshy/remesh/model.obj"},"progress":100,"started_at":1767225601000,"status":"SUCCEEDED","type":"remesh"}}}}}}}}},"components":{"schemas":{"MeshyRemeshModelUrls":{"description":"Downloadable URLs to the remeshed 3D model files.","properties":{"blend":{"description":"Downloadable URL to the Blender file.","type":"string"},"fbx":{"description":"Downloadable URL to the FBX file.","type":"string"},"glb":{"description":"Downloadable URL to the GLB file.","type":"string"},"obj":{"description":"Downloadable URL to the OBJ file.","type":"string"},"stl":{"description":"Downloadable URL to the STL file.","type":"string"},"usdz":{"description":"Downloadable URL to the USDZ file.","type":"string"}},"type":"object"},"MeshyRemeshTask":{"properties":{"created_at":{"description":"Timestamp of when the task was created, in milliseconds.","format":"int64","type":"integer"},"finished_at":{"description":"Timestamp of when the task was finished, in milliseconds. 0 if not finished.","format":"int64","type":"integer"},"id":{"description":"Unique identifier for the task.","type":"string"},"model_urls":{"$ref":"#/components/schemas/MeshyRemeshModelUrls"},"preceding_tasks":{"description":"The count of preceding tasks. Only meaningful when status is PENDING.","type":"integer"},"progress":{"description":"Progress of the task. 0 if not started, 100 when succeeded.","maximum":100,"minimum":0,"type":"integer"},"started_at":{"description":"Timestamp of when the task was started, in milliseconds. 0 if not started.","format":"int64","type":"integer"},"status":{"$ref":"#/components/schemas/MeshyRemeshTaskStatus"},"task_error":{"allOf":[{"$ref":"#/components/schemas/MeshyTaskError"}],"nullable":true},"type":{"description":"Type of the Remesh task.","enum":["remesh"],"type":"string"}},"required":["id","status"],"type":"object"},"MeshyRemeshTaskStatus":{"description":"Status of the remesh task.","enum":["PENDING","PROCESSING","SUCCEEDED","FAILED"],"type":"string"},"MeshyTaskError":{"description":"Error object that contains the error message if the task failed.","properties":{"message":{"description":"Detailed error message.","type":"string"}},"type":"object"},"MeshyTopology":{"default":"triangle","description":"Specify the topology of the generated model.","enum":["quad","triangle"],"type":"string"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"meshy/remesh","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["3d"],"x-comfy-router-output-modalities":["3d"]}
