{"openapi":"3.0.2","info":{"title":"meshy/meshy-7","description":"The request body Comfy Router accepts for the model \"meshy/meshy-7\", 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":"8463adec09a2"},"paths":{"/v2/models/meshy/meshy-7":{"post":{"operationId":"runRouterModel","summary":"Run meshy/meshy-7 synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/MeshyTextTo3DInputs"},{"properties":{"geometry_resolution":{"default":"standard","description":"Geometry resolution of the generated mesh. meshy-7 supports `standard` only; `2k` and `4k` require ai_model meshy-7.1 or latest. For the Ultra pass on meshy-7 send `ultra_mode: true`, which is equivalent to `2k`.","enum":["standard"],"type":"string"}},"type":"object"}],"description":"The Comfy Router input schema for `meshy/meshy-7` text-to-3d.\nmeshy-7 is the tier Ultra generation (`ultra_mode`, preview mode) and the full `2k`/`4k`/`8k` texture range are both available on, so it narrows only `geometry_resolution`, to `standard`: `2k` and `4k` require ai_model meshy-7.1 or latest. The Ultra pass on meshy-7 is `ultra_mode: true`, which is equivalent to `2k`. Everything else is the shared shape in MeshyTextTo3DInputs.","example":{"art_style":"realistic","mode":"preview","prompt":"a red cube"}}}}},"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/MeshyTextTo3DTask"},{"properties":{"status":{"enum":["SUCCEEDED"],"type":"string"}},"required":["status"],"type":"object"}],"description":"Comfy Router output schema for the Meshy text-to-3D models: the terminal `GET /proxy/meshy/openapi/v2/text-to-3d/{task_id}` task document, forwarded unchanged. The operation is SUBMIT-AND-POLL — `POST /proxy/meshy/openapi/v2/text-to-3d` answers with a `MeshyTextTo3DCreateResponse` handle whose `result` is the task id, and Router polls on the caller's behalf — so the body a caller receives is the finished task document rather than that handle. The family's three other operations (image-to-3d, multi-image-to-3d and retexture) stay reachable on their own `/proxy/meshy/...` routes and answer closely related task documents; a `{provider}/{model}` call settles onto the text-to-3d generation, which is the one this schema describes.\nThe generated mesh is in `model_urls`, at whichever of `glb`, `fbx`, `usdz` and `obj` the request produced — which of them are populated depends on the request, so read the one that is present rather than keying completion off `glb` alone. `glb` is the rendition a `{\"mode\": \"preview\"}` task with no format selector answers with, but it is not the only shape a success can take. Two neighbouring fields are NOT interchangeable with a mesh and a caller must not key completion off either: `mtl` is a material sidecar for `obj` rather than a mesh in its own right, and `thumbnail_url` is a preview image rather than the asset the call generated. Comfy Router draws exactly that line — a `SUCCEEDED` task carrying none of those four mesh URLs 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.\n`status` is Meshy's own UPPERCASE vocabulary — `PENDING`, `IN_PROGRESS`, `SUCCEEDED`, `FAILED`, `CANCELED` — forwarded unchanged and not case-folded. `SUCCEEDED` is the one terminal success; `FAILED` and `CANCELED` are terminal failures and reach a Router caller as a Comfy Router error rather than as this document, with the provider's own reason in `task_error.message`. `progress` runs 0..100 and is 100 on a succeeded task.\n`type` says which of the operation's two stages produced the document. `text-to-3d-preview` is the geometry stage, requested with `{\"mode\": \"preview\"}` and a prompt. `text-to-3d-refine` is the separate, dearer texturing task, requested with `{\"mode\": \"refine\"}` against a finished preview's `id` as `preview_task_id`; it is what populates `texture_urls`.\n`negative_prompt` and `texture_richness` are fields Meshy keeps for backward compatibility and does not populate meaningfully; `video_url` is likewise deprecated.","example":{"art_style":"realistic","created_at":1767225600000,"finished_at":1767225719000,"id":"018f2c7a-4b1e-7c3d-9a05-6e2f8b41d0c9","model_urls":{"fbx":"https://example.invalid/meshy/text-to-3d/model.fbx","glb":"https://example.invalid/meshy/text-to-3d/model.glb","mtl":"https://example.invalid/meshy/text-to-3d/model.mtl","obj":"https://example.invalid/meshy/text-to-3d/model.obj","usdz":"https://example.invalid/meshy/text-to-3d/model.usdz"},"progress":100,"prompt":"a red cube","started_at":1767225601000,"status":"SUCCEEDED","thumbnail_url":"https://example.invalid/meshy/text-to-3d/thumbnail.png","type":"text-to-3d-preview"}}}}}}}}},"components":{"schemas":{"MeshyArtStyle":{"default":"realistic","description":"Describe your desired art style of the object.","enum":["realistic","sculpture"],"type":"string"},"MeshyModelUrls":{"description":"Downloadable URLs to the textured 3D model files generated by Meshy.","properties":{"fbx":{"description":"Downloadable URL to the FBX file.","type":"string"},"glb":{"description":"Downloadable URL to the GLB file.","type":"string"},"mtl":{"description":"Downloadable URL to the MTL file.","type":"string"},"obj":{"description":"Downloadable URL to the OBJ file.","type":"string"},"usdz":{"description":"Downloadable URL to the USDZ file.","type":"string"}},"type":"object"},"MeshyPoseMode":{"description":"Specify the pose mode for the generated model.","enum":["a-pose","t-pose",""],"type":"string"},"MeshySymmetryMode":{"default":"auto","description":"Controls symmetry behavior during model generation.","enum":["off","auto","on"],"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"},"MeshyTaskStatus":{"description":"Status of the task.","enum":["PENDING","IN_PROGRESS","SUCCEEDED","FAILED","CANCELED"],"type":"string"},"MeshyTextTo3DInputs":{"description":"The model-agnostic Comfy Router input shape for the `meshy/*` text-to-3d models: either a PREVIEW body (`mode: preview`, which generates the untextured mesh) or a REFINE body (`mode: refine`, which textures a preview task's output).\nIt composes the same two branches the v1 `POST /proxy/meshy/openapi/v2/text-to-3d` body does, differing only in `ai_model`: on this route the model comes from the path (`/v2/models/meshy/{model}`), so `ai_model` may be omitted or sent as null and Comfy Router writes the path's model into it before the call is forwarded.","discriminator":{"mapping":{"preview":"#/components/schemas/MeshyTextTo3DPreviewInputs","refine":"#/components/schemas/MeshyTextTo3DRefineInputs"},"propertyName":"mode"},"oneOf":[{"$ref":"#/components/schemas/MeshyTextTo3DPreviewInputs"},{"$ref":"#/components/schemas/MeshyTextTo3DRefineInputs"}]},"MeshyTextTo3DPreviewInputs":{"description":"The meshy text-to-3d PREVIEW fields, shared by the `preview` branch of the v1 `POST /proxy/meshy/openapi/v2/text-to-3d` body and the `preview` branch of the Comfy Router input schema for the `meshy/*` models.\nThe two surfaces share every property and both `required` entries. They differ only in `ai_model`: the v1 body restates it as a fixed enum, because that route carries no path segment to supply the model from, while on the Comfy Router route the path supplies it.","properties":{"ai_model":{"description":"The Meshy model to run. On the Comfy Router route this is supplied by the path (`/v2/models/meshy/{model}`) and may be omitted or sent as null; Router writes the path's model here after validation. On the v1 /proxy route see MeshyTextTo3DPreviewRequest, which constrains it to MeshyAiModel.","nullable":true,"type":"string"},"art_style":{"$ref":"#/components/schemas/MeshyArtStyle"},"geometry_resolution":{"default":"standard","description":"Geometry resolution of the generated mesh. 2k and 4k run the Ultra pass for finer surface detail. 2k and 4k require ai_model meshy-7.1 or latest.","enum":["standard","2k","4k"],"type":"string"},"is_a_t_pose":{"default":false,"description":"Deprecated. Use pose_mode instead. Whether to generate the model in an A/T pose.","type":"boolean"},"mode":{"description":"This field should be set to \"preview\" when creating a preview task.","enum":["preview"],"type":"string"},"moderation":{"default":false,"description":"When true, input content will be screened for potentially harmful content.","type":"boolean"},"pose_mode":{"$ref":"#/components/schemas/MeshyPoseMode"},"prompt":{"description":"Describe what kind of object the 3D model is. Maximum 800 characters.","maxLength":800,"type":"string"},"should_remesh":{"default":false,"description":"Controls whether to enable the remesh phase. When false, returns highest-precision triangular mesh. Defaults to true for Meshy 5 and false for Meshy 6 and 7.","type":"boolean"},"symmetry_mode":{"$ref":"#/components/schemas/MeshySymmetryMode"},"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"},"ultra_mode":{"default":false,"deprecated":true,"description":"Deprecated. Use geometry_resolution instead; true is equivalent to geometry_resolution 2k. Only supported when ai_model is meshy-7, meshy-7.1 or latest. The exception is meshy-7: geometry_resolution 2k requires meshy-7.1 or latest, so on meshy-7 ultra_mode true is the way to request the Ultra pass.","type":"boolean"}},"required":["mode","prompt"],"type":"object"},"MeshyTextTo3DRefineInputs":{"description":"The meshy text-to-3d REFINE fields, shared by the `refine` branch of the v1 `POST /proxy/meshy/openapi/v2/text-to-3d` body and the `refine` branch of the Comfy Router input schema for the `meshy/*` models.\nThe two surfaces share every property and both `required` entries. They differ only in `ai_model`: the v1 body restates it as a fixed enum, because that route carries no path segment to supply the model from, while on the Comfy Router route the path supplies it.","properties":{"ai_model":{"description":"The Meshy model to run. On the Comfy Router route this is supplied by the path (`/v2/models/meshy/{model}`) and may be omitted or sent as null; Router writes the path's model here after validation. On the v1 /proxy route see MeshyTextTo3DRefineRequest, which constrains it to MeshyAiModel.","nullable":true,"type":"string"},"enable_pbr":{"default":false,"description":"Generate PBR Maps (metallic, roughness, normal) in addition to the base color. Note that enable_pbr should be set to false when using Sculpture style.","type":"boolean"},"mode":{"description":"This field should be set to \"refine\" when creating a refine task.","enum":["refine"],"type":"string"},"moderation":{"default":false,"description":"When true, input content will be screened for potentially harmful content.","type":"boolean"},"preview_task_id":{"description":"The corresponding preview task id. The status of the given preview task must be SUCCEEDED.","type":"string"},"texture_image_url":{"description":"Provide a 2d image to guide the texturing process. Supports .jpg, .jpeg, .png formats or base64-encoded data URI.","type":"string"},"texture_prompt":{"description":"Provide an additional text prompt to guide the texturing process. Maximum 800 characters.","maxLength":800,"type":"string"},"texture_resolution":{"default":"2k","description":"Texture resolution of the generated textures. One of 2k, 4k or 8k. 4k and 8k require ai_model meshy-6, meshy-7, meshy-7.1 or latest.","enum":["2k","4k","8k"],"type":"string"}},"required":["mode","preview_task_id"],"type":"object"},"MeshyTextTo3DTask":{"properties":{"art_style":{"description":"The unmodified art_style that was used to create the preview task.","type":"string"},"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/MeshyModelUrls"},"negative_prompt":{"description":"Deprecated field maintained for backward compatibility.","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 if not started, 100 when succeeded.","maximum":100,"minimum":0,"type":"integer"},"prompt":{"description":"The unmodified prompt that was used to create the task.","type":"string"},"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":{"allOf":[{"$ref":"#/components/schemas/MeshyTaskError"}],"nullable":true},"texture_image_url":{"description":"Downloadable URL to the texture image that was used to guide the texturing process.","type":"string"},"texture_prompt":{"description":"Additional text prompt provided to guide the texturing process during the refine stage.","type":"string"},"texture_richness":{"description":"Deprecated field maintained for backward compatibility.","type":"string"},"texture_urls":{"description":"An array of texture URL objects that are generated from the task.","items":{"$ref":"#/components/schemas/MeshyTextureUrls"},"type":"array"},"thumbnail_url":{"description":"Downloadable URL to the thumbnail image of the model file.","type":"string"},"type":{"description":"Type of the Text to 3D task.","enum":["text-to-3d-preview","text-to-3d-refine"],"type":"string"},"video_url":{"description":"Deprecated field returning the downloadable URL to the preview video.","type":"string"}},"required":["id","status"],"type":"object"},"MeshyTextureUrls":{"description":"Texture URL object containing PBR maps.","properties":{"base_color":{"description":"Downloadable URL to the base color map image.","type":"string"},"metallic":{"description":"Downloadable URL to the metallic map image.","type":"string"},"normal":{"description":"Downloadable URL to the normal map image.","type":"string"},"roughness":{"description":"Downloadable URL to the roughness map image.","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/meshy-7","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["text"],"x-comfy-router-output-modalities":["3d"]}
