{"openapi":"3.0.2","info":{"title":"meshy/animations","description":"The request body Comfy Router accepts for the model \"meshy/animations\", 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":"2e6fcee4971d"},"paths":{"/v2/models/meshy/animations":{"post":{"operationId":"runRouterModel","summary":"Run meshy/animations synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request body for Meshy's animation operation (docs.meshy.ai/en/api/animation): apply an animation action to the character produced by a completed rigging task.","example":{"action_id":92,"post_process":{"fps":60,"operation_type":"change_fps"},"rig_task_id":"0193abcd-0000-0000-0000-000000000000"},"properties":{"action_id":{"description":"The identifier of the animation action to apply.","type":"integer"},"post_process":{"$ref":"#/components/schemas/MeshyAnimationPostProcess"},"rig_task_id":{"description":"The id of a successfully completed rigging task (from POST /openapi/v1/rigging). The character from this task will be animated.","type":"string"}},"required":["rig_task_id","action_id"],"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/MeshyAnimationTask"},{"properties":{"status":{"enum":["SUCCEEDED"],"type":"string"}},"required":["status"],"type":"object"}],"description":"Comfy Router output schema for Meshy's animation operation: the terminal `GET /proxy/meshy/openapi/v1/animations/{task_id}` task document, forwarded unchanged. The operation is SUBMIT-AND-POLL — `POST /proxy/meshy/openapi/v1/animations` answers a `MeshyAnimationCreateResponse` handle whose `result` is the task id and which carries no asset, 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/animations` names an OPERATION rather than a model version: it applies an animation to a RIGGED character the caller already has, so it consumes a 3D asset and produces one. It is not one of the text-to-3D generations, and its id is plural because the route is; the document's own `type` is the singular `animate`.\nThe output is under `result`, and this operation shares NO output key with rigging or remesh. `result.animation_glb_url` and `result.animation_fbx_url` are the animation itself. The three `processed_*` URLs are what the request's `post_process` operations produce — `fbx2usdz` answers `result.processed_usdz_url`, `extract_armature` answers `result.processed_armature_fbx_url`, and `change_fps` answers `result.processed_animation_fps_fbx_url` — so a caller who asked for a post-process should read the file they asked for. Which of the five are populated depends on the request. Comfy Router draws that line: a `SUCCEEDED` task carrying none of those five URLs is answered as a Comfy Router error rather than with this document.\n`status` is the shared Meshy UPPERCASE vocabulary — `PENDING`, `IN_PROGRESS`, `SUCCEEDED`, `FAILED`, `CANCELED` — forwarded unchanged. `SUCCEEDED` is the one terminal success; `FAILED` and `CANCELED` reach a Router caller as a Comfy Router error with Meshy's own reason in `task_error.message`. `progress` runs 0..100. `expires_at` is when Meshy stops serving the result URLs, so fetch them rather than storing the document.","example":{"created_at":1767225600000,"expires_at":1767830400000,"finished_at":1767225648000,"id":"018f2c7a-4b1e-7c3d-9a05-6e2f8b41d0c9","progress":100,"result":{"animation_fbx_url":"https://example.invalid/meshy/animations/animation.fbx","animation_glb_url":"https://example.invalid/meshy/animations/animation.glb"},"started_at":1767225601000,"status":"SUCCEEDED","type":"animate"}}}}}}}}},"components":{"schemas":{"MeshyAnimationPostProcess":{"description":"Parameters for post-processing animation files.","properties":{"fps":{"default":30,"description":"The target frame rate. Default is 30. Applicable only when operation_type is change_fps.","enum":[24,25,30,60],"type":"integer"},"operation_type":{"description":"The type of operation to perform.","enum":["change_fps","fbx2usdz","extract_armature"],"type":"string"}},"required":["operation_type"],"type":"object"},"MeshyAnimationResult":{"description":"Contains the output animation URLs if the task SUCCEEDED.","properties":{"animation_fbx_url":{"description":"Downloadable URL for the animation in FBX format.","type":"string"},"animation_glb_url":{"description":"Downloadable URL for the animation in GLB format.","type":"string"},"processed_animation_fps_fbx_url":{"description":"Downloadable URL for the animation with changed FPS in FBX format.","type":"string"},"processed_armature_fbx_url":{"description":"Downloadable URL for the processed armature in FBX format.","type":"string"},"processed_usdz_url":{"description":"Downloadable URL for the processed animation in USDZ format.","type":"string"}},"type":"object"},"MeshyAnimationTask":{"properties":{"created_at":{"description":"Timestamp of when the task was created, in milliseconds.","format":"int64","type":"integer"},"expires_at":{"description":"Timestamp of when the task result expires, 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"},"preceding_tasks":{"description":"The count of preceding tasks. Only meaningful when status is PENDING.","type":"integer"},"progress":{"description":"Progress of the task (0-100).","maximum":100,"minimum":0,"type":"integer"},"result":{"$ref":"#/components/schemas/MeshyAnimationResult"},"started_at":{"description":"Timestamp of when the task was started, in milliseconds. 0 if not started.","format":"int64","type":"integer"},"status":{"$ref":"#/components/schemas/MeshyTaskStatus"},"task_error":{"$ref":"#/components/schemas/MeshyTaskError"},"type":{"description":"Type of the Animation task.","enum":["animate"],"type":"string"}},"required":["id","status"],"type":"object"},"MeshyTaskError":{"description":"Error object that contains the error message if the task failed.","properties":{"message":{"description":"Detailed error message.","type":"string"}},"type":"object"},"MeshyTaskStatus":{"description":"Status of the task.","enum":["PENDING","IN_PROGRESS","SUCCEEDED","FAILED","CANCELED"],"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/animations","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["3d"],"x-comfy-router-output-modalities":["3d"]}
