{
  "openapi": "3.1.0",
  "info": {
    "title": "Meshy API v2",
    "version": "2.0.0",
    "termsOfService": "https://www.meshy.ai/terms-of-use",
    "summary": "AI-powered 3D asset generation REST API, version 2.",
    "description": "Meshy API v2 gives every task one response shape (the task object), one set of task\nroutes (`/v2/tasks`), and one error format.\n\n**Authentication.** Send your API key as a Bearer token:\n`Authorization: Bearer msy_YOUR_API_KEY`. Create keys at\nhttps://www.meshy.ai/developers/keys.\n\n**Asynchronous model.** A create (`POST /v2/<endpoint>`) returns `202 Accepted` with the\ntask object (`status: PENDING`, your request in `input`, `output: null`), a `Location`\nheader (`/openapi/v2/tasks/{id}`) and a `Retry-After` header. Read the task with\n`GET /v2/tasks/{id}` until `status` is `SUCCEEDED`, `FAILED` or `CANCELED`, waiting\n`Retry-After` seconds between reads, or stream it with `GET /v2/tasks/{id}/stream`.\nOn `SUCCEEDED`, the results are in `output`, whose fields depend on the task `type`.\nText to 3D is the one exception: its create response also keeps `result` (the task ID),\nand its `Location` is `/openapi/v2/text-to-3d/{id}`. Read that task on `/v2/tasks` like\nany other.\n\n**Errors.** A request that fails returns an HTTP error with\n`{\"type\": \"...\", \"code\": \"...\", \"message\": \"...\", \"doc_url\": ...}`, where `doc_url` is a\nlink or `null` (see `Error`). Branch on `code` or `type`, not on `message`: `400` bad\ninput, `401` missing or bad API key, `402` not enough credits, a credit limit, or a plan\nthat doesn't allow the request, `403` not allowed (an IP allowlist or content\nmoderation), `404` unknown task or route, `429` too many requests (wait `Retry-After`\nseconds when the header is sent). The one exception is Text to 3D: a request it rejects\nbefore reading the API key returns only `{\"message\": \"...\"}`. A task that fails later\nhas `status: FAILED` and a `task_error` object.\n\n**Unknown parameters.** A create request with a top-level parameter the endpoint doesn't\ndefine, such as a misspelled name or a removed v1 parameter, returns `400` with code\n`parameter_unknown`. `message` names the parameter and what to send instead. Text to 3D\nrequests with `mode` ignore such a parameter.\n\n**Choosing models.** Before the first create request, find out what the user is making,\nfor example a game character, a product render, or a 3D print. If they haven't said, ask.\nThen pick the models from the \"Choose by project\" table at https://docs.meshy.ai/api/v2/models.md. Leaving `ai_model`\nout gives Meshy 7.1, a dense, detailed mesh that doesn't suit a low-poly game asset.\n`texture_model` has no default: every request for a textured model names one.\n\n**Scope.** Every v2 create, the `/v2/tasks` routes, `/v2/balance`, `/v2/usage/tasks`\nand `/v2/animations/library`. Not included: Creative Lab (v1 only) and the legacy\nText to 3D read routes under `/v2/text-to-3d/{id}` (read every task on `/v2/tasks`).",
    "contact": {
      "name": "Meshy API Support",
      "url": "https://docs.meshy.ai"
    }
  },
  "externalDocs": {
    "description": "Meshy API v2 documentation",
    "url": "https://docs.meshy.ai/api/v2"
  },
  "servers": [
    {
      "url": "https://api.meshy.ai/openapi",
      "description": "Production"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Text to 3D",
      "description": "Generate a 3D model from a text prompt."
    },
    {
      "name": "Image to 3D",
      "description": "Generate a 3D model from a single image."
    },
    {
      "name": "Multi-Image to 3D",
      "description": "Generate a 3D model from up to four images of one object."
    },
    {
      "name": "Remesh",
      "description": "Rebuild a model's mesh with a new topology and face count."
    },
    {
      "name": "Convert",
      "description": "Convert a model to other file formats."
    },
    {
      "name": "Resize",
      "description": "Scale a model to a real-world size."
    },
    {
      "name": "UV Unwrap",
      "description": "Generate a UV layout for a model."
    },
    {
      "name": "Retexture",
      "description": "Generate new textures for an existing model."
    },
    {
      "name": "Rigging",
      "description": "Rig a character model with a skeleton."
    },
    {
      "name": "Rigging Check",
      "description": "Find out before rigging whether Meshy can rig and animate a model."
    },
    {
      "name": "Animation",
      "description": "Apply library animations or a Text to Motion clip to a rigged character."
    },
    {
      "name": "Text to Motion",
      "description": "Generate a character animation from a text prompt."
    },
    {
      "name": "Text to Image",
      "description": "Generate an image from a text prompt."
    },
    {
      "name": "Image to Image",
      "description": "Generate an image from reference images and a prompt."
    },
    {
      "name": "3D Print",
      "description": "Prepare, repair, analyze and split models for 3D printing, and make reliefs from photos."
    },
    {
      "name": "Tasks",
      "description": "Get, list, stream and delete tasks of every type."
    },
    {
      "name": "Account",
      "description": "Credit balance and usage."
    }
  ],
  "paths": {
    "/v2/text-to-3d": {
      "post": {
        "tags": [
          "Text to 3D"
        ],
        "operationId": "createTextTo3DTask",
        "summary": "Create a Text to 3D task",
        "description": "Creates a Text to 3D task and returns the task object with `202`. The task runs in the\nbackground: read its result with `GET /v2/tasks/{id}`, stream it, or get it by webhook.\n\nOne route makes three kinds of task, picked by `mode` and `should_texture`:\n\n- Omit `mode` for a one-call task, `type` `text-to-3d`. `should_texture` (default `true`)\n  picks a textured model, which needs `texture_model`, or the mesh only (`false`).\n- `mode: preview` makes an untextured mesh, `type` `text-to-3d-preview`.\n- `mode: refine` with `preview_task_id` textures a preview's mesh, `type` `text-to-3d-refine`.\n\n`mode` is deprecated and stops working on March 15, 2027: make new models in one call.\n\nThe `type` filter `text-to-3d` on `GET /v2/tasks` lists all three kinds; `text-to-3d-preview`\nand `text-to-3d-refine` list one kind each.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TextTo3DRequest"
              },
              "examples": {
                "oneCall": {
                  "summary": "One call, a textured model in one task",
                  "value": {
                    "prompt": "a small wooden treasure chest with iron bands",
                    "should_texture": true,
                    "texture_model": "meshy-7",
                    "target_formats": [
                      "glb",
                      "fbx"
                    ]
                  }
                },
                "preview": {
                  "summary": "Two steps, 1. a preview mesh",
                  "value": {
                    "mode": "preview",
                    "prompt": "a small wooden treasure chest with iron bands",
                    "target_formats": [
                      "glb"
                    ]
                  }
                },
                "refine": {
                  "summary": "Two steps, 2. texture a succeeded preview",
                  "value": {
                    "mode": "refine",
                    "preview_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578",
                    "texture_prompt": "dark oak planks, rusted iron, worn edges",
                    "enable_pbr": true,
                    "target_formats": [
                      "glb"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in\n`input`, `output` null, and `result`, which repeats the task ID for clients written\nbefore v2. `Retry-After` says how many seconds to wait before you first read the task.",
            "headers": {
              "Location": {
                "description": "`/openapi/v2/text-to-3d/{id}`, the legacy Text to 3D read route for this task (a\nrelative path that echoes the request path). Read the task through\n`GET /v2/tasks/{id}` instead.",
                "schema": {
                  "type": "string"
                },
                "example": "/openapi/v2/text-to-3d/018a210d-8ba4-705c-b111-1f1776f7f578"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TextTo3DCreated"
                },
                "examples": {
                  "oneCall": {
                    "summary": "A one-call task, just created",
                    "value": {
                      "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
                      "type": "text-to-3d",
                      "status": "PENDING",
                      "progress": 0,
                      "created_at": 1790640079880,
                      "started_at": null,
                      "finished_at": null,
                      "expires_at": null,
                      "preceding_tasks": 3,
                      "consumed_credits": 30,
                      "task_error": null,
                      "input": {
                        "prompt": "a small wooden treasure chest with iron bands",
                        "should_texture": true,
                        "texture_model": "meshy-7",
                        "target_formats": [
                          "glb",
                          "fbx"
                        ]
                      },
                      "output": null,
                      "result": "018a210d-8ba4-705c-b111-1f1776f7f578"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/image-to-3d": {
      "post": {
        "tags": [
          "Image to 3D"
        ],
        "operationId": "createImageTo3DTask",
        "summary": "Create an Image to 3D task",
        "description": "Turns one image into a 3D model, textured or untextured, in the formats you choose. Returns the task object with `202 Accepted`; its `type` is `image-to-3d`. The task runs in the background: read its result with `GET /v2/tasks/{id}`, stream it with `GET /v2/tasks/{id}/stream`, or get it by webhook.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageTo3DRequest"
              },
              "examples": {
                "default": {
                  "summary": "One image, textured with Meshy 7 (a GLB)",
                  "value": {
                    "image_url": "https://docs.meshy.ai/images/api/quick-start/source-photo.webp",
                    "texture_model": "meshy-7"
                  }
                },
                "smartTopology": {
                  "summary": "Smart Topology at 8,000 faces, 4K textures, GLB and FBX",
                  "value": {
                    "image_url": "https://docs.meshy.ai/images/api/quick-start/source-photo.webp",
                    "ai_model": "meshy-t2",
                    "target_polycount": 8000,
                    "texture_model": "meshy-7",
                    "texture_resolution": "4k",
                    "target_formats": [
                      "glb",
                      "fbx"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageTo3DTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/multi-image-to-3d": {
      "post": {
        "tags": [
          "Multi-Image to 3D"
        ],
        "operationId": "createMultiImageTo3DTask",
        "summary": "Create a Multi-Image to 3D task",
        "description": "Turns one to four images of the same object, taken from different angles, into one 3D model. Returns the task object with `202 Accepted`; its `type` is `multi-image-to-3d`. The task runs in the background: read its result with `GET /v2/tasks/{id}`, stream it with `GET /v2/tasks/{id}/stream`, or get it by webhook.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MultiImageTo3DRequest"
              },
              "examples": {
                "default": {
                  "summary": "Three views, textured with Meshy 7 (a GLB)",
                  "value": {
                    "image_urls": [
                      "https://example.com/front.png",
                      "https://example.com/side.png",
                      "https://example.com/back.png"
                    ],
                    "texture_model": "meshy-7"
                  }
                },
                "ultra": {
                  "summary": "Ultra geometry, PBR maps, GLB and USDZ",
                  "value": {
                    "image_urls": [
                      "https://example.com/front.png",
                      "https://example.com/side.png"
                    ],
                    "geometry_resolution": "2k",
                    "texture_model": "meshy-7",
                    "enable_pbr": true,
                    "target_formats": [
                      "glb",
                      "usdz"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MultiImageTo3DTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/remesh": {
      "post": {
        "tags": [
          "Remesh"
        ],
        "operationId": "createRemeshTask",
        "summary": "Create a Remesh task",
        "description": "Rebuilds a model's mesh with a new topology and face count, from a Meshy task (`input_task_id`) or your own model file (`model_url`), and returns it in the formats listed in `target_formats` (GLB by default). A `quad` mesh keeps its quads in OBJ and FBX files. For a real-world size, run Resize on the result. The v1 keys `resize_height`, `resize_longest_side`, `origin_at`, `auto_size` and `convert_format_only` were removed: a body that contains any of them returns 400, even when the value is `null` or `false`. Returns the task object (`type: remesh`) with 202; read the result with `GET /v2/tasks/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemeshRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemeshTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/convert": {
      "post": {
        "tags": [
          "Convert"
        ],
        "operationId": "createConvertTask",
        "summary": "Create a Convert task",
        "description": "Converts a 3D model to other file formats, from a Meshy task (`input_task_id`) or your own model file (`model_url`). On v2, a `model_url` upload keeps its size, and STL and 3MF files are scaled down to at most 150 mm on the longest side for a model Meshy generated (see `target_formats`). Returns the task object (`type: convert`) with 202; read the result with `GET /v2/tasks/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConvertRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConvertTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/resize": {
      "post": {
        "tags": [
          "Resize"
        ],
        "operationId": "createResizeTask",
        "summary": "Create a Resize task",
        "description": "Scales a 3D model to a real-world size, in meters, and sets where its origin goes, from a Meshy task (`input_task_id`) or your own model file (`model_url`). Returns the task object (`type: resize`) with 202; read the result with `GET /v2/tasks/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResizeRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResizeTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/uv-unwrap": {
      "post": {
        "tags": [
          "UV Unwrap"
        ],
        "operationId": "createUVUnwrapTask",
        "summary": "Create a UV Unwrap task",
        "description": "Generates a fresh UV layout for a 3D model, ready to texture. UV Unwrap works on meshes up to a maximum face count: when the face count is known up front, a larger mesh returns 400 with the limit in the message; otherwise the task fails. Run Remesh first to lower the face count. Returns the task object (`type: uv-unwrap`) with 202; read the result with `GET /v2/tasks/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UVUnwrapRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UVUnwrapTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/retexture": {
      "post": {
        "tags": [
          "Retexture"
        ],
        "operationId": "createRetextureTask",
        "summary": "Create a Retexture task",
        "description": "Generates new textures for an existing 3D model from a text prompt, a reference image, or up to four views of the object. Returns the task object with `202 Accepted`; its `type` is `retexture`. The task runs in the background: read its result with `GET /v2/tasks/{id}`, stream it with `GET /v2/tasks/{id}/stream`, or get it by webhook.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetextureRequest"
              },
              "examples": {
                "prompt": {
                  "summary": "Retexture an earlier task from a text prompt",
                  "value": {
                    "input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578",
                    "texture_model": "meshy-7",
                    "texture_prompt": "weathered bronze statue with green patina"
                  }
                },
                "image": {
                  "summary": "Retexture an uploaded model from a reference image, as GLB and FBX",
                  "value": {
                    "model_url": "https://example.com/model.glb",
                    "texture_model": "meshy-7",
                    "texture_image_url": "https://example.com/style.png",
                    "target_formats": [
                      "glb",
                      "fbx"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetextureTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/rigging": {
      "post": {
        "tags": [
          "Rigging"
        ],
        "operationId": "createRiggingTask",
        "summary": "Create a Rigging task",
        "description": "Adds a skeleton to a character model so it can be animated. Every rigged character also comes with a walking and a running animation. To animate the rig, pass the task's `id` to `POST /v2/animations`. Returns 422 when the model can't be rigged, for example when no character is found in it. Returns the task object (`type: rig`) with 202; read the result with `GET /v2/tasks/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RiggingRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RigTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/rigging/check": {
      "post": {
        "tags": [
          "Rigging Check"
        ],
        "operationId": "createRiggingCheckTask",
        "summary": "Create a Rigging Check task",
        "description": "Creates a task that checks whether Meshy can rig and animate the model of one of your tasks, and which `animation_type` it fits, from the task's preview image. Returns `202` with the task object (`type` `rig-check`); read the answer in `output` with `GET /v2/tasks/{id}` when the task is SUCCEEDED. The check is optional: a Rigging task doesn't read it.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RiggingCheckRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with your request in `input`. `Location` is always set, and `Retry-After` says when to read the task first while it hasn't finished.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RiggingCheckTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/v2/animations": {
      "post": {
        "tags": [
          "Animation"
        ],
        "operationId": "createAnimationTask",
        "summary": "Create an Animation task",
        "description": "Makes a rigged character move: applies one animation from the library (`action_id`), several of them joined into one file (`action_ids`), or a clip from Text to Motion (`motion_task_id`). Find library IDs with `GET /v2/animations/library`. Each animation in a task is charged, so a task with `action_ids` costs more than one with `action_id` or `motion_task_id`. Returns the task object (`type: animate`) with 202; read the result with `GET /v2/tasks/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnimationRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnimateTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/animations/library": {
      "get": {
        "tags": [
          "Animation"
        ],
        "operationId": "listAnimationLibrary",
        "summary": "List library animations",
        "description": "Returns the animations in the library, with the `action_id` to send when you create an Animation task. The filters combine; without any, you get the whole library. The response is a bare array ordered by `action_id`, not a page: there is no `data` wrapper and no pagination. Calling it is free.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Animations whose `name` or `key` contains this text, ignoring case.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Animations in this category, an exact match, such as `DailyActions`, `WalkAndRun`, `Fighting`, `BodyMovements` or `Dancing`. An unknown category returns an empty list.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sub_category",
            "in": "query",
            "required": false,
            "description": "Animations in this subcategory, an exact match, such as `Walking` or `Interacting`. Works without `category`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "action_ids",
            "in": "query",
            "required": false,
            "description": "Only these animations: up to 200 comma-separated integer IDs, such as `28,92`. Unknown IDs are left out of the response. More than 200 items, or an item that isn't an integer, returns `400`.",
            "schema": {
              "type": "string"
            },
            "example": "28,92"
          }
        ],
        "responses": {
          "200": {
            "description": "The matching library animations, ordered by `action_id`.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AnimationLibraryEntry"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/text-to-motion": {
      "post": {
        "tags": [
          "Text to Motion"
        ],
        "operationId": "createTextToMotionTask",
        "summary": "Create a Text to Motion task",
        "description": "Generates a character animation clip from a text prompt. To play it on a `biped` rig, pass the task's `id` as `motion_task_id` to `POST /v2/animations`. A prompt blocked by content moderation returns 403. Returns the task object (`type: text-to-motion`) with 202; read the result with `GET /v2/tasks/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TextToMotionRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TextToMotionTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/text-to-image": {
      "post": {
        "tags": [
          "Text to Image"
        ],
        "operationId": "createTextToImageTask",
        "summary": "Create a Text to Image task",
        "description": "Generates an image from a text prompt. By default a single image comes back as a PNG with a transparent background; send `background: opaque` to keep the generated background. Sending v1's `remove_background` returns `400`. Returns `202` with the task object (`type` `text-to-image`, also for multi-view tasks). Read the result with `GET /v2/tasks/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TextToImageRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TextToImageTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/image-to-image": {
      "post": {
        "tags": [
          "Image to Image"
        ],
        "operationId": "createImageToImageTask",
        "summary": "Create an Image to Image task",
        "description": "Generates a new image from one to five reference images and a prompt. By default a single image comes back as a PNG with a transparent background; send `background: opaque` to keep the generated background. Sending v1's `remove_background` returns `400`. Returns `202` with the task object (`type` `image-to-image`, also for multi-view tasks). Read the result with `GET /v2/tasks/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageToImageRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageToImageTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/print/multi-color": {
      "post": {
        "tags": [
          "3D Print"
        ],
        "operationId": "createPrintMultiColorTask",
        "summary": "Create a Multi-Color Print task",
        "description": "Turns a textured 3D model into a multi-color 3MF file, with the model's colors reduced to a filament palette and a slicer preset for your printer brand. The model must have color: a base color texture, or vertex colors for the `cartoon` style. Most inputs are checked when you create the task and return `400` if they lack the color that `style` needs; some, such as an `.fbx` upload, are only checked once the task runs, and the task then fails with `model_missing_texture`. The 3MF file has its origin at the bottom. For a model Meshy generated, it's scaled down to at most 150 mm on the longest side; uploaded and resized models keep their own size. Returns `202` with the task object (`type` `print-multi-color`). Read the result with `GET /v2/tasks/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrintMultiColorRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintMultiColorTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/print/analyze": {
      "post": {
        "tags": [
          "3D Print"
        ],
        "operationId": "createPrintAnalyzeTask",
        "summary": "Create an Analyze Printability task",
        "description": "Checks whether a 3D model is ready to print: holes, non-manifold edges, degenerate faces, and walls too thin for your printer. Wall thickness is always checked, by default for an FDM print 150 mm tall (see `PrintAnalyzeRequest`). It never changes the model. The endpoint is free (`consumed_credits` is 0) and works on every plan, including the free plan, so it never returns `402`. Returns `202` with the task object (`type` `print-analyze`). If `input_task_id` names a task Meshy has already analyzed at the same printer type and print size, the task is created already SUCCEEDED, the `202` body has the result in `output` and there is no `Retry-After` header; a webhook is still sent. Check `status` before you poll `GET /v2/tasks/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrintAnalyzeRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with your request in `input` and `consumed_credits` 0. Usually `status` is PENDING, `output` is null and `Retry-After` says when to read the task first. On a cached result (an `input_task_id` Meshy has already analyzed at the same printer type and print size), `status` is SUCCEEDED, `progress` is 100, `output.printability` holds the result and there is no `Retry-After` header. `Location` is always set.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintAnalyzeTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "Forbidden. The request came from an address outside the API key's IP allowlist, or `input_task_id` is a bas-relief task (`This model type does not support this operation`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/print/repair": {
      "post": {
        "tags": [
          "3D Print"
        ],
        "operationId": "createPrintRepairTask",
        "summary": "Create a Repair Printability task",
        "description": "Repairs a 3D model for printing: closes holes, fixes broken geometry, and thickens walls too thin for your printer. Wall thickness is always checked, by default for an FDM print 150 mm tall (see `PrintRepairRequest`). The model is never scaled. A repair takes about 20 seconds, or about 100 seconds when walls are thickened. Returns `202` with the task object (`type` `print-repair`); the top-level `intended_print` is already in that response. Read the result with `GET /v2/tasks/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrintRepairRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintRepairTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/print/split": {
      "post": {
        "tags": [
          "3D Print"
        ],
        "operationId": "createPrintSplitTask",
        "summary": "Create an Auto Split task",
        "description": "Cuts a generated model into parts you can print separately, either where Meshy chooses or along the parts or colors you name, with optional connectors so the pieces fit back together. By default the parts come back as flat-colored geometry, without the input's texture; `keep_texture: true` keeps a textured input's texture on every part. With `mode` `by_parts` or `by_color`, Meshy reads your prompt before it answers, so the create request can take up to about a minute. Returns `202` with the task object (`type` `print-split`), plus top-level `prompt_ignored: true` when Meshy used the parts it identified instead of your prompt. Read the result with `GET /v2/tasks/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrintSplitRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintSplitTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "description": "`Prompt parsing is busy right now; retry shortly`. Only for `mode` `by_parts` or `by_color`, when reading the prompt timed out. Nothing is charged. Retry later, or use `mode` `auto`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v2/relief": {
      "post": {
        "tags": [
          "3D Print"
        ],
        "operationId": "createReliefTask",
        "summary": "Create a Relief task",
        "description": "Turns one photo into a bas-relief model (by default a GLB in meters; `target_formats` picks the formats, and `color_mapping` colors the GLB, OBJ, FBX, and USDZ with the photo) and a 16-bit grayscale depth map (PNG), for 3D printing, laser engraving and CNC carving. With `should_generate_model` `false`, the task makes the depth map only. Returns `202` with the task object (`type` `relief`). A Relief task can't be canceled, and endpoints that take a model as input (Remesh, Convert, Auto Split and others) refuse its ID with `403`. Read the result with `GET /v2/tasks/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Metadata"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReliefRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task created. The body is the task object with `status` PENDING, your request in `input` and `output` null.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/TaskLocation"
              },
              "Retry-After": {
                "$ref": "#/components/headers/CreateRetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReliefTask"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/v2/tasks": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "operationId": "listTasks",
        "summary": "List tasks",
        "description": "Returns one page of your API tasks of every type, newest first by default, as `{\"data\": [...], \"has_more\": ...}`. Each item is a full task object, the same one `GET /v2/tasks/{id}` returns, except that `preceding_tasks` is always `0`. Tasks created on v1 are included. Creative Lab tasks are not, and neither are tasks whose files a team content check already withheld. There is no total count: request the next page while `has_more` is `true`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/TaskTypeFilter"
          },
          {
            "$ref": "#/components/parameters/PageNum"
          },
          {
            "$ref": "#/components/parameters/PageSize"
          },
          {
            "$ref": "#/components/parameters/SortBy"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of tasks.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskList"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/tasks/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/TaskId"
        }
      ],
      "get": {
        "tags": [
          "Tasks"
        ],
        "operationId": "getTask",
        "summary": "Get a task",
        "description": "Returns one task of any type, including tasks created on v1. Read every v2 task here: there are no per-endpoint read routes on v2. While the task is `PENDING` or `IN_PROGRESS`, the `Retry-After` header says how many seconds to wait before you get it again. Creative Lab tasks, and tasks that were not created through the API, return `404`.",
        "responses": {
          "200": {
            "description": "The task object. `output` is shaped by `type`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/PollRetryAfter"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      },
      "delete": {
        "tags": [
          "Tasks"
        ],
        "operationId": "deleteTask",
        "summary": "Delete a task",
        "description": "Deletes a task. This can't be undone, and the task then returns `404` on every route. Deleting a `PENDING` task refunds its credits. An `IN_PROGRESS` task can't be deleted (`409`): wait for a final status, then delete it. Creative Lab tasks can't be deleted here and return `404`. Returns `200` with an empty body.",
        "responses": {
          "200": {
            "$ref": "#/components/responses/TaskDeleted"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "No task with this ID belongs to your account, it is already deleted, or it is a Creative Lab task (`task_not_found`). `message` is `Task \"<id>\" not found`, with the ID in quotes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "taskNotFound": {
                    "value": {
                      "type": "not_found",
                      "code": "task_not_found",
                      "message": "Task \"018a210d-8ba4-705c-b111-1f1776f7f578\" not found",
                      "doc_url": "https://docs.meshy.ai/en/api/v2/asset-retention"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/tasks/{id}/stream": {
      "parameters": [
        {
          "$ref": "#/components/parameters/TaskId"
        }
      ],
      "get": {
        "tags": [
          "Tasks"
        ],
        "operationId": "streamTask",
        "summary": "Stream a task",
        "description": "Streams a task's updates as Server-Sent Events until it reaches a final status. Each `message` event carries the full task object, the same JSON `GET /v2/tasks/{id}` returns. Once the stream is open the HTTP status stays `200`, and a problem with the task (such as an unknown ID) arrives as an `error` event, not as an HTTP error. Errors before the stream opens, such as a missing API key, are ordinary HTTP errors.",
        "responses": {
          "200": {
            "$ref": "#/components/responses/TaskStream"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/balance": {
      "get": {
        "tags": [
          "Account"
        ],
        "operationId": "getBalance",
        "summary": "Get your credit balance",
        "description": "Returns the credit balance of the account that owns the API key. On a team with a shared credit pool, the values are the pool's. Calling it is free.",
        "responses": {
          "200": {
            "description": "The credit balance.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Balance"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v2/usage/tasks": {
      "get": {
        "tags": [
          "Account"
        ],
        "operationId": "listUsageTasks",
        "summary": "List usage records",
        "description": "Returns one page of your team's finished API tasks and the credits each one used, newest first by default, for billing exports and cost reports. Calling it is free. The API key must belong to an active member of a Studio or Enterprise team (any member, not only owners and admins); other keys get `403`.\nListed: tasks that finished as `SUCCEEDED` or `FAILED` and were created inside the window, by everyone who is a member of the team now, from any of their API keys, including deleted and expired tasks. Not listed: `PENDING`, `IN_PROGRESS` and `CANCELED` tasks, Creative Lab tasks, tasks run by Meshy's AI agents, and work done in the Meshy web app. If the team has a data retention period, the window starts no earlier than that period allows.",
        "parameters": [
          {
            "name": "start_time",
            "in": "query",
            "required": false,
            "description": "The start of the window, as an RFC 3339 timestamp such as `2026-09-01T00:00:00Z`. Tasks created at or after this time are included. Defaults to 30 days before `end_time`. The window can span at most 366 days. In a URL, encode the `+` of an offset such as `+08:00` as `%2B`, or use `Z`.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "end_time",
            "in": "query",
            "required": false,
            "description": "The end of the window, as an RFC 3339 timestamp. Tasks created before this time are included. Defaults to now. Must be after `start_time`.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "endpoints",
            "in": "query",
            "required": false,
            "description": "A comma-separated list of the endpoints to include, by the same names as the `type` values (see `TaskType`), for example `text-to-3d,image-to-3d`. `text-to-3d` covers preview, refine and one-call Text to 3D tasks. Leave it out to include every endpoint. An unknown name returns `400`.",
            "schema": {
              "type": "string"
            },
            "example": "text-to-3d,image-to-3d"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only tasks that finished with this status. Leave it out to include both.",
            "schema": {
              "type": "string",
              "enum": [
                "SUCCEEDED",
                "FAILED"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/PageNum"
          },
          {
            "$ref": "#/components/parameters/PageSize"
          },
          {
            "$ref": "#/components/parameters/SortBy"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of usage records.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageList"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "The key's account is not an active member of a Studio or Enterprise team (`plan_upgrade_required`), or the request came from an address outside the API key's IP allowlist (`ip_not_authorized`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "plan": {
                    "value": {
                      "type": "permission_denied",
                      "code": "plan_upgrade_required",
                      "message": "This endpoint is available on Studio and Enterprise plans",
                      "doc_url": null
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Send your API key as a Bearer token: `Authorization: Bearer msy_YOUR_API_KEY`. Create keys at https://www.meshy.ai/developers/keys. The access token of a Meshy CLI login is accepted the same way."
      }
    },
    "parameters": {
      "TaskId": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "The task ID from the create response.",
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      "Metadata": {
        "name": "X-Meshy-Metadata",
        "in": "header",
        "required": false,
        "description": "Your own key-value pairs to store with the task, as comma-separated `key=value` pairs in the W3C Baggage format, for example `user=alex@example.com,team=fab`. At most 64 pairs and 8,192 bytes. Meshy reads it only from API keys of Studio and Enterprise teams and ignores it on other plans. On those teams, a malformed or oversized header returns `400` with the code `metadata_invalid` and creates no task. Returned as `metadata` on usage records.",
        "schema": {
          "type": "string",
          "maxLength": 8192
        }
      },
      "PageNum": {
        "name": "page_num",
        "in": "query",
        "required": false,
        "description": "The page to return, from 1 to 255. `0` means the first page.",
        "schema": {
          "type": "integer",
          "minimum": 0,
          "maximum": 255,
          "default": 1
        }
      },
      "PageSize": {
        "name": "page_size",
        "in": "query",
        "required": false,
        "description": "Items per page, up to 100. A larger value, up to 255, returns 100 items, and `0` means the default.",
        "schema": {
          "type": "integer",
          "minimum": 0,
          "maximum": 255,
          "default": 10
        }
      },
      "SortBy": {
        "name": "sort_by",
        "in": "query",
        "required": false,
        "description": "`-created_at` (newest first) or `+created_at` (oldest first). In a URL, encode `+` as `%2B`; otherwise it is read as a space and returns `400`.",
        "schema": {
          "type": "string",
          "enum": [
            "-created_at",
            "+created_at"
          ],
          "default": "-created_at"
        }
      },
      "TaskTypeFilter": {
        "name": "type",
        "in": "query",
        "required": false,
        "description": "Only tasks of this type. `text-to-3d` matches all three Text to 3D types (`text-to-3d`, `text-to-3d-preview` and `text-to-3d-refine`). Leave it out to include every type. An unknown value returns `400` with the list of valid values.",
        "schema": {
          "$ref": "#/components/schemas/TaskType"
        }
      }
    },
    "headers": {
      "TaskLocation": {
        "description": "The path to read the new task from, `/openapi/v2/tasks/{id}`.",
        "schema": {
          "type": "string"
        },
        "example": "/openapi/v2/tasks/018a210d-8ba4-705c-b111-1f1776f7f578"
      },
      "CreateRetryAfter": {
        "description": "Seconds to wait before the first poll of the new task. A hint, not a promise, based on its place in the queue: `5` when it starts next, `10` with up to 5 tasks ahead, `15` beyond that. Absent when the task is already final, for example when Analyze Printability returns a result Meshy already had. Use 5 seconds when it's missing.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "PollRetryAfter": {
        "description": "Seconds to wait before polling again, sent while the task is `PENDING` or `IN_PROGRESS`. A hint, not a promise: `5`, `10` or `15` while `PENDING`, by queue position; `5` while `IN_PROGRESS`, and `2` once `progress` reaches 90. Absent once the task is final. Use 5 seconds when it's missing.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "RetryAfter": {
        "description": "Seconds to wait before retrying. Sent with a rate-limit `429`. Never below 1.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "XRateLimitLimit": {
        "description": "Requests allowed per second for your account.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "XRateLimitRemaining": {
        "description": "Requests left in the current window.",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "XRateLimitReset": {
        "description": "Seconds until the request budget is full again. `0` when it already is.",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "responses": {
      "TaskDeleted": {
        "description": "Task deleted. The body is empty."
      },
      "TaskStream": {
        "description": "A Server-Sent Events stream. The HTTP status is `200` and stays `200` once the stream opens; read errors from the events.\n`message`: `data` is the full task object (see `Task`). The first event comes right away, then one each time the task changes, and the latest state repeats every 10 seconds so a quiet connection still sees events. The stream closes after the event with a final status (`SUCCEEDED`, `FAILED` or `CANCELED`).\n`error`: `data` is the error object (see `Error`) plus `status_code`, the HTTP status the same problem has on a JSON route, and the stream closes after it. For example `400` `request_invalid` for a task ID that isn't a UUID, `404` `task_not_found` (an unknown, deleted, Creative Lab or non-API task, also when the task is deleted while the stream is open), `403` `moderation_blocked_ip_filtering` when your organization's IP filtering withholds a succeeded task's files, or `500` `internal_error`.\nA stream closes after about 21 minutes even if the task hasn't finished, and a network drop can close it sooner. If it closes without a final status, open it again or get the task.",
        "content": {
          "text/event-stream": {
            "schema": {
              "type": "string",
              "description": "Events in the SSE wire format, each an `event:` line (`message` or `error`) and a `data:` line holding one JSON object, separated by a blank line."
            },
            "examples": {
              "progress": {
                "summary": "A task finishing",
                "value": "event:message\ndata:{\"id\":\"018a210d-8ba4-705c-b111-1f1776f7f578\",\"type\":\"image-to-3d\",\"status\":\"IN_PROGRESS\",\"progress\":42,\"output\":null}\n\nevent:message\ndata:{\"id\":\"018a210d-8ba4-705c-b111-1f1776f7f578\",\"type\":\"image-to-3d\",\"status\":\"SUCCEEDED\",\"progress\":100,\"output\":{\"model_urls\":{\"glb\":\"https://assets.meshy.ai/...\"}}}\n"
              },
              "notFound": {
                "summary": "An unknown task",
                "value": "event:error\ndata:{\"type\":\"not_found\",\"code\":\"task_not_found\",\"message\":\"Task not found\",\"doc_url\":\"https://docs.meshy.ai/en/api/v2/asset-retention\",\"status_code\":404}\n"
              }
            }
          }
        }
      },
      "BadRequest": {
        "description": "A parameter is missing, unknown, malformed, or not allowed with another one. `code` names the kind of problem, for example `parameter_missing` or `parameters_conflict`, and `message` names the parameter.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "The API key is missing (`api_key_missing`) or not valid (`api_key_invalid`). Text to 3D returns only `{\"message\": \"...\"}` for these.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "PaymentRequired": {
        "description": "Your account can't pay for the task (`insufficient_credits`), or it reached a credit limit (`credit_limit_reached`). On the free plan, most create requests return `402` with `plan_upgrade_required`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Forbidden": {
        "description": "You aren't allowed to make this request. For example, the request came from an address outside the API key's IP allowlist (`ip_not_authorized`), content moderation blocked the input or a task's files (a `moderation_blocked` code), or the endpoint isn't available on your plan (`plan_upgrade_required`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "The task or route doesn't exist. `task_not_found` means no task with this ID belongs to your account (deleted tasks, tasks past their retention period and Creative Lab tasks included). `route_not_found` means the path or method doesn't exist on v2.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Conflict": {
        "description": "The task's state doesn't allow the operation (`task_in_progress`). Deleting an `IN_PROGRESS` task returns `409`, because credits for a task a worker has started can't be refunded. Wait for a final status, then delete it.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "inProgress": {
                "value": {
                  "type": "conflict",
                  "code": "task_in_progress",
                  "message": "Task is IN_PROGRESS and cannot be deleted. Credits for a task the worker has already started are not refundable; wait for it to reach SUCCEEDED, FAILED or CANCELED, then delete it.",
                  "doc_url": null
                }
              }
            }
          }
        }
      },
      "UnprocessableEntity": {
        "description": "The request was well-formed, but its input couldn't be processed. `code` names the problem, for example `input_file_invalid` or `model_not_riggable`, and `message` says why.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "You sent too many requests too quickly (`rate_limit_exceeded`). Wait the number of seconds in `Retry-After`, then retry. On a create, too many of your tasks can also be queued or running (`pending_task_limit_reached` or `concurrent_task_limit_reached`). Wait for some to finish.",
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/RetryAfter"
          },
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/XRateLimitLimit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/XRateLimitRemaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/XRateLimitReset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "An internal error (`internal_error`). Retry the request later; if it keeps failing, contact support.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "ServiceUnavailable": {
        "description": "A service the request needs is temporarily unavailable (`service_unavailable`). Wait a moment, then retry.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "description": "The body of a request error. Text to 3D returns only `message` when it rejects a request before it reads the API key.",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "invalid_input",
              "authentication_error",
              "insufficient_credits",
              "permission_denied",
              "not_found",
              "conflict",
              "rate_limited",
              "server_error",
              "service_unavailable"
            ],
            "description": "The error category, never `null`. It follows `code`, not the HTTP status, and tells you what to do next. For example, the free-plan refusal is a `402` with the type `permission_denied`."
          },
          "code": {
            "type": "string",
            "description": "The specific problem, never `null`. When several parameters are wrong, it describes the first one. Meshy never renames or reuses a code. Documented codes: `request_body_invalid`, `parameter_missing`, `parameter_unknown`, `parameter_invalid_type`, `parameter_invalid_value`, `parameter_out_of_range`, `parameters_conflict`, `input_task_not_found`, `input_task_not_ready`, `input_task_expired`, `input_task_unsupported`, `input_download_failed`, `input_file_invalid`, `metadata_invalid`, `model_not_available`, `model_not_riggable`, `moderation_blocked` and the more specific `moderation_blocked_nsfw`, `moderation_blocked_ip`, `moderation_blocked_public_figure` and `moderation_blocked_ip_filtering`, `request_invalid`, `api_key_missing`, `api_key_invalid`, `insufficient_credits`, `credit_limit_reached`, `plan_upgrade_required`, `ip_not_authorized`, `team_access_denied`, `access_denied`, `task_not_found`, `route_not_found`, `task_in_progress`, `rate_limit_exceeded`, `pending_task_limit_reached`, `concurrent_task_limit_reached`, `internal_error`, `service_unavailable`. New codes can appear, so handle a code you don't recognize by its `type`."
          },
          "message": {
            "type": "string",
            "description": "A description you can show to people. When several parameters are wrong, it lists them all. Don't branch on it; the wording can change."
          },
          "doc_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "A link to the docs that explain the fix, when it needs more than `message` can hold. For example, `pending_task_limit_reached` links the queue limit of each plan, and `moderation_blocked` links its entry in the error reference. `null` when `message` already says what to change."
          }
        },
        "required": [
          "type",
          "code",
          "message"
        ]
      },
      "TaskStatus": {
        "type": "string",
        "description": "Where the task is. `SUCCEEDED`, `FAILED` and `CANCELED` are final and never change. No v2 task type uses `CANCELED` today, but treat it as final.",
        "enum": [
          "PENDING",
          "IN_PROGRESS",
          "SUCCEEDED",
          "FAILED",
          "CANCELED"
        ]
      },
      "TaskType": {
        "type": "string",
        "description": "The kind of task, set by the endpoint that created it. Text to 3D has three: `text-to-3d-preview`, `text-to-3d-refine`, and `text-to-3d` for a one-call task. The `type` filter of `GET /v2/tasks` and the `endpoints` filter of `GET /v2/usage/tasks` take the same values.",
        "enum": [
          "text-to-3d-preview",
          "text-to-3d-refine",
          "text-to-3d",
          "image-to-3d",
          "multi-image-to-3d",
          "remesh",
          "convert",
          "resize",
          "uv-unwrap",
          "rig",
          "rig-check",
          "animate",
          "text-to-motion",
          "retexture",
          "text-to-image",
          "image-to-image",
          "print-multi-color",
          "print-analyze",
          "print-repair",
          "print-split",
          "relief"
        ]
      },
      "TaskError": {
        "type": "object",
        "description": "Why a task failed. A failed task always has all four keys; for every other status the task's `task_error` is `null`.",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "invalid_input",
              "timeout",
              "service_unavailable",
              "server_error"
            ],
            "description": "The error category, never `null`. Branch on it to decide whether to retry: fix the input for `invalid_input`, create the task again for the others."
          },
          "code": {
            "type": [
              "string",
              "null"
            ],
            "description": "A specific, documented problem you can act on, or `null` for errors with no public code (every `service_unavailable` error, most `server_error` errors, and some `invalid_input` errors). Documented codes: `image_too_complex`, `model_missing_uv`, `model_insufficient_uv`, `model_missing_texture`, `textured_split_refused`, `invalid_input`, `provider_content_refused`, `moderation_blocked` and the more specific `moderation_blocked_nsfw`, `moderation_blocked_ip` and `moderation_blocked_public_figure`, `moderation_unavailable`, `timeout`, `queue_timeout`, `format_conversion_failed`, `recovery_expired`. New codes can appear."
          },
          "message": {
            "type": "string",
            "description": "A description you can show to people. Don't branch on it; the wording can change."
          },
          "doc_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "A link to the code's entry in the error reference, for example `https://docs.meshy.ai/en/api/v2/errors#timeout`. `null` when `code` is `null`."
          }
        },
        "required": [
          "type",
          "code",
          "message",
          "doc_url"
        ]
      },
      "TaskBase": {
        "type": "object",
        "description": "The fields every task object has, whatever its type. Every key is always present: a value that doesn't exist yet is `null`, never `0` or `\"\"`, and arrays are never `null`. Only `input` and `output` depend on `type`. New fields can appear at any time, so ignore fields you don't use.",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The task ID."
          },
          "type": {
            "$ref": "#/components/schemas/TaskType"
          },
          "status": {
            "$ref": "#/components/schemas/TaskStatus"
          },
          "progress": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "description": "How much of the work is done, from 0 to 100. `100` once the task succeeds."
          },
          "created_at": {
            "type": "integer",
            "format": "int64",
            "description": "When the task was created, in Unix milliseconds."
          },
          "started_at": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "When a worker started the task, in Unix milliseconds. `null` until then."
          },
          "finished_at": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "When the task reached a final status, in Unix milliseconds. `null` until then."
          },
          "expires_at": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "When the links in `output` stop working, in Unix milliseconds: 3 days after `finished_at`. `null` until the task succeeds. Always `null` for the three Text to 3D types, and for Enterprise plans, which keep files indefinitely."
          },
          "preceding_tasks": {
            "type": "integer",
            "minimum": 0,
            "description": "While the task is `PENDING`, its position in the queue: `1` means it starts next. `0` once it has left the queue, and always `0` in list results."
          },
          "consumed_credits": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Credits charged for the task, after any refund. `0` for a failed task. `null` if the charge couldn't be read; get the task again."
          },
          "task_error": {
            "description": "Why the task failed. `null` unless `status` is `FAILED`.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/TaskError"
              },
              {
                "type": "null"
              }
            ]
          },
          "input": {
            "type": [
              "object",
              "null"
            ],
            "description": "The echo of the create request: the parameters you sent, as you sent them. Defaults you left out aren't filled in, and keys the endpoint doesn't accept are left out. An image or model sent as a data URI comes back as a short-lived link to Meshy's stored copy, or shortened to `data:...;base64,[omitted ~N]` when there is no copy; credentials are removed from presigned URLs. A task created on v1 keeps its v1 parameter names. `null` when Meshy has no saved copy of the request: for a moment right after the task is created (the create response always has it), and for some older tasks."
          },
          "output": {
            "type": [
              "object",
              "null"
            ],
            "description": "The results, shaped by `type`. `null` until the task succeeds."
          }
        },
        "required": [
          "id",
          "type",
          "status",
          "progress",
          "created_at",
          "started_at",
          "finished_at",
          "expires_at",
          "preceding_tasks",
          "consumed_credits",
          "task_error",
          "input",
          "output"
        ]
      },
      "ModelURLs": {
        "type": "object",
        "description": "Signed links to the model files, keyed by format. Only formats the task produced are keys; a format it didn't produce is absent, never `null`. Links stop working at the task's `expires_at`.",
        "properties": {
          "glb": {
            "type": "string",
            "format": "uri"
          },
          "fbx": {
            "type": "string",
            "format": "uri"
          },
          "gltf": {
            "type": "string",
            "format": "uri"
          },
          "usdz": {
            "type": "string",
            "format": "uri"
          },
          "obj": {
            "type": "string",
            "format": "uri"
          },
          "mtl": {
            "type": "string",
            "format": "uri",
            "description": "The material file of a textured `obj`."
          },
          "vox": {
            "type": "string",
            "format": "uri"
          },
          "blend": {
            "type": "string",
            "format": "uri"
          },
          "stl": {
            "type": "string",
            "format": "uri"
          },
          "3mf": {
            "type": "string",
            "format": "uri"
          },
          "pre_remeshed_glb": {
            "type": "string",
            "format": "uri",
            "description": "The model before remeshing, when the request asked to keep it."
          }
        }
      },
      "TextureURLs": {
        "type": "array",
        "description": "One item per texture set. Never `null` once the task has succeeded; empty for an untextured result. Each item has all six maps, and a map the task didn't produce is `null`.",
        "items": {
          "type": "object",
          "properties": {
            "base_color": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            },
            "metallic": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            },
            "roughness": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            },
            "normal": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            },
            "metallic_roughness": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            },
            "emission": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            }
          },
          "required": [
            "base_color",
            "metallic",
            "roughness",
            "normal",
            "metallic_roughness",
            "emission"
          ]
        }
      },
      "ThumbnailURLs": {
        "type": "object",
        "description": "Previews of the model from four sides. A view that failed to render is left out.",
        "properties": {
          "front": {
            "type": "string",
            "format": "uri"
          },
          "right": {
            "type": "string",
            "format": "uri"
          },
          "back": {
            "type": "string",
            "format": "uri"
          },
          "left": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "TextTo3DOutput": {
        "type": "object",
        "description": "The `output` of a Text to 3D task (`text-to-3d-preview`, `text-to-3d-refine` or `text-to-3d`).",
        "properties": {
          "model_urls": {
            "$ref": "#/components/schemas/ModelURLs"
          },
          "thumbnail_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "A preview image of the model, or `null` if none was rendered."
          },
          "alpha_thumbnail_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The preview with a transparent background, or `null` unless the request asked for it."
          },
          "texture_urls": {
            "$ref": "#/components/schemas/TextureURLs"
          }
        },
        "required": [
          "model_urls",
          "thumbnail_url",
          "alpha_thumbnail_url",
          "texture_urls"
        ]
      },
      "ImageTo3DOutput": {
        "type": "object",
        "description": "The `output` of an Image to 3D or Multi-Image to 3D task.",
        "properties": {
          "model_urls": {
            "$ref": "#/components/schemas/ModelURLs"
          },
          "thumbnail_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "A PNG preview of the model with a transparent background, or `null` if none was rendered."
          },
          "thumbnail_urls": {
            "description": "Previews from four sides, or `null` unless the request set `multi_view_thumbnails`.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ThumbnailURLs"
              },
              {
                "type": "null"
              }
            ]
          },
          "texture_urls": {
            "$ref": "#/components/schemas/TextureURLs"
          },
          "target_polycount": {
            "type": "integer",
            "description": "The face count a Smart Topology task (`meshy-t2` or `meshy-t2.5`) generated at - the one sent, the one `auto_polycount` picked, or the model default. Omitted for other tasks."
          }
        },
        "required": [
          "model_urls",
          "thumbnail_url",
          "thumbnail_urls",
          "texture_urls"
        ]
      },
      "Model3DOutput": {
        "type": "object",
        "description": "The `output` of a Retexture or Remesh task.",
        "properties": {
          "model_urls": {
            "$ref": "#/components/schemas/ModelURLs"
          },
          "thumbnail_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "A PNG preview of the model with a transparent background, or `null` if none was rendered."
          },
          "texture_urls": {
            "$ref": "#/components/schemas/TextureURLs"
          }
        },
        "required": [
          "model_urls",
          "thumbnail_url",
          "texture_urls"
        ]
      },
      "MeshOutput": {
        "type": "object",
        "description": "The `output` of a Convert or Resize task. These tasks have no preview image. `texture_urls` lists the input task's texture maps (empty for `model_url`), and a textured `obj` comes with an `mtl`.",
        "properties": {
          "model_urls": {
            "$ref": "#/components/schemas/ModelURLs"
          },
          "texture_urls": {
            "$ref": "#/components/schemas/TextureURLs"
          }
        },
        "required": [
          "model_urls",
          "texture_urls"
        ]
      },
      "ModelWithThumbnailOutput": {
        "type": "object",
        "description": "The `output` of a UV Unwrap task.",
        "properties": {
          "model_urls": {
            "$ref": "#/components/schemas/ModelURLs"
          },
          "thumbnail_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "A preview image of the model, or `null` if none was rendered."
          }
        },
        "required": [
          "model_urls",
          "thumbnail_url"
        ]
      },
      "ModelOnlyOutput": {
        "type": "object",
        "description": "The `output` of a Multi-Color Print task. It has no preview image.",
        "properties": {
          "model_urls": {
            "$ref": "#/components/schemas/ModelURLs"
          }
        },
        "required": [
          "model_urls"
        ]
      },
      "PrintRepairOutput": {
        "type": "object",
        "description": "The `output` of a Repair Printability task.",
        "properties": {
          "model_urls": {
            "$ref": "#/components/schemas/ModelURLs"
          },
          "thumbnail_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "A PNG preview of the repaired model with a transparent background, or `null` if none was rendered."
          },
          "print_repair_report": {
            "description": "What the thin-wall check found and did, or `null` for a task created on v1 without a printer type or print size.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PrintRepairOutputReport"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "model_urls",
          "thumbnail_url",
          "print_repair_report"
        ]
      },
      "PrintRepairOutputReport": {
        "type": "object",
        "description": "The before and after record of a size-aware print repair.",
        "properties": {
          "route": {
            "type": "string",
            "enum": [
              "thin_wall",
              "topology",
              "topology_unmeasured"
            ],
            "description": "Which repair ran: `thin_wall` when the input measured thin enough to rebuild its walls, `topology` when only the geometry was repaired, or `topology_unmeasured` when the thin walls couldn't be measured."
          },
          "applied": {
            "type": "boolean",
            "description": "Only on the `thin_wall` route. `false` when thickening changed nothing."
          },
          "faces_before": {
            "type": "integer",
            "format": "int64",
            "description": "Only on the `thin_wall` route. The face count before the repair."
          },
          "faces_after": {
            "type": "integer",
            "format": "int64",
            "description": "Only on the `thin_wall` route. The face count after the repair."
          },
          "thin_area_ratio_before": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "The share of the input's surface thinner than the wall limit. Absent when it couldn't be measured."
          },
          "thin_area_ratio_after": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "The same share on the repaired model. Absent when it couldn't be measured."
          }
        },
        "required": [
          "route"
        ]
      },
      "PrintSplitOutput": {
        "type": "object",
        "description": "The `output` of an Auto Split task.",
        "properties": {
          "model_urls": {
            "$ref": "#/components/schemas/ModelURLs"
          },
          "thumbnail_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "A preview in the requested `layout`, showing the texture when the parts kept it and each part in its own color otherwise, or `null` if none was rendered."
          },
          "texture_urls": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextureURLs"
              }
            ],
            "description": "The texture maps all the parts share, as one item. Present only when `keep_texture` was `true` and the input model is textured; absent otherwise. A textured `obj` also gets an `mtl` key in `model_urls`."
          },
          "part_count": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "description": "How many printable parts the model was split into, or `null` if unknown."
          }
        },
        "required": [
          "model_urls",
          "thumbnail_url",
          "part_count"
        ]
      },
      "ReliefOutput": {
        "type": "object",
        "description": "The `output` of a Relief task.",
        "properties": {
          "model_urls": {
            "$ref": "#/components/schemas/ModelURLs",
            "description": "The relief model, one key per format in `target_formats`; an `obj` comes with an `mtl`. The GLB is in meters and the STL binary in millimeters, Z up. The files can be large; `mesh_resolution` lists typical sizes. `{}` for a task created with `should_generate_model` `false`."
          },
          "depth_map_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The depth map the relief is built from, as a 16-bit grayscale PNG, or `null` if there is none. Brighter is higher; the values are relative heights for this image, not millimeters. The file is about 1 to 2 MB."
          },
          "thumbnail_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "A preview image of the relief model, or `null` if none was rendered, as for a task created with `should_generate_model` `false`."
          },
          "texture_urls": {
            "$ref": "#/components/schemas/TextureURLs",
            "description": "The texture of a colored model, one item with its `base_color` map. Present only with `color_mapping` `true`."
          }
        },
        "required": [
          "model_urls",
          "depth_map_url",
          "thumbnail_url"
        ]
      },
      "PrintAnalyzeOutput": {
        "type": "object",
        "description": "The `output` of an Analyze Printability task. It has no file links.",
        "properties": {
          "printability": {
            "description": "The verdict, or `null` if there is none.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PrintAnalyzeOutputPrintability"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "printability"
        ]
      },
      "PrintAnalyzeOutputPrintability": {
        "type": "object",
        "description": "A printability verdict. Every key is always present, except that a task created on v1 without a printer type or print size has no `intended_print` or `thin_walls`.",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "healthy",
              "warning",
              "error",
              "unknown"
            ],
            "description": "The verdict, or `unknown` when the model couldn't be evaluated. It's the worse of the mesh checks and `thin_walls.status`."
          },
          "issue_count": {
            "type": "integer",
            "minimum": 0,
            "description": "`error_count` plus `warning_count`."
          },
          "error_count": {
            "type": "integer",
            "minimum": 0,
            "description": "How many checks failed."
          },
          "warning_count": {
            "type": "integer",
            "minimum": 0,
            "description": "How many checks warned."
          },
          "metrics": {
            "description": "The measurements, or `null` if they couldn't be computed.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PrintAnalyzeOutputMetrics"
              },
              {
                "type": "null"
              }
            ]
          },
          "intended_print": {
            "$ref": "#/components/schemas/PrintIntendedPrint"
          },
          "thin_walls": {
            "$ref": "#/components/schemas/PrintAnalyzeOutputThinWalls"
          },
          "evaluated_at": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "When the model was evaluated, in Unix milliseconds, or `null` if unknown. For a result Meshy already had, the time of that earlier evaluation."
          }
        },
        "required": [
          "status",
          "issue_count",
          "error_count",
          "warning_count",
          "metrics",
          "evaluated_at"
        ]
      },
      "PrintAnalyzeOutputMetrics": {
        "type": "object",
        "description": "The mesh measurements behind a printability verdict.",
        "properties": {
          "is_watertight": {
            "type": "boolean",
            "description": "Whether the model is a closed surface."
          },
          "volume": {
            "type": "number",
            "description": "The model's volume, in its own units cubed."
          },
          "non_manifold_edges": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "description": "The number of non-manifold edges."
          },
          "degenerate_faces": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "description": "The number of degenerate faces."
          },
          "holes": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "description": "The number of holes."
          }
        },
        "required": [
          "is_watertight",
          "volume",
          "non_manifold_edges",
          "degenerate_faces",
          "holes"
        ]
      },
      "PrintAnalyzeOutputThinWalls": {
        "type": "object",
        "description": "The wall-thickness reading at the requested print size.",
        "properties": {
          "thin_area_ratio": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 1,
            "description": "The share of the surface thinner than `wall_thickness_mm`, from 0 to 1, or `null` if it couldn't be measured."
          },
          "has_thin_walls": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "`true` if any spot is thinner, even a sharp corner on a model that prints fine, so go by `status`. `null` if it couldn't be measured."
          },
          "status": {
            "type": "string",
            "enum": [
              "healthy",
              "error",
              "unknown"
            ],
            "description": "`healthy` up to a ratio of 0.05, `error` above it, `unknown` if it couldn't be measured."
          }
        },
        "required": [
          "thin_area_ratio",
          "has_thin_walls",
          "status"
        ]
      },
      "PrintIntendedPrint": {
        "type": "object",
        "description": "The print Meshy checked, in millimeters: the one the request described, or the default. Every key is always present, `null` where the value isn't known yet. It describes a measurement, not a change: the model keeps its size.",
        "properties": {
          "printer_type": {
            "type": "string",
            "enum": [
              "fdm",
              "sla",
              "full_color"
            ],
            "description": "The printer type the request named or implied."
          },
          "height_mm": {
            "type": [
              "number",
              "null"
            ],
            "description": "The print height you asked for, or `null` when you sized it by its longest side."
          },
          "longest_side_mm": {
            "type": [
              "number",
              "null"
            ],
            "description": "The print's longest side. When you sized it by height, `null` until the model has been measured."
          },
          "wall_thickness_mm": {
            "type": "number",
            "description": "The thinnest wall that prints on `printer_type`. Set by Meshy, never by the request."
          },
          "dimensions_mm": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "number"
            },
            "minItems": 3,
            "maxItems": 3,
            "description": "The print's `[width, depth, height]` in millimeters, or `null` until the model has been measured and for inputs other than GLB."
          }
        },
        "required": [
          "printer_type",
          "height_mm",
          "longest_side_mm",
          "wall_thickness_mm",
          "dimensions_mm"
        ]
      },
      "RigOutput": {
        "type": "object",
        "description": "The `output` of a Rigging task. It has no preview image or texture links.",
        "properties": {
          "rigged_character_glb_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The rigged character as a GLB file."
          },
          "rigged_character_fbx_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The rigged character as an FBX file."
          },
          "basic_animations": {
            "description": "Walking and running clips of the rigged character, or `null` if none were made.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/RigOutputBasicAnimations"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "rigged_character_glb_url",
          "rigged_character_fbx_url",
          "basic_animations"
        ]
      },
      "RigOutputBasicAnimations": {
        "type": "object",
        "description": "Walking and running clips made by rigging. Each link is `null` if that file wasn't produced.",
        "properties": {
          "walking_glb_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The walking animation with the character's mesh, as GLB."
          },
          "walking_fbx_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The walking animation with the character's mesh, as FBX."
          },
          "walking_armature_glb_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The walking animation, skeleton only, as GLB."
          },
          "running_glb_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The running animation with the character's mesh, as GLB."
          },
          "running_fbx_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The running animation with the character's mesh, as FBX."
          },
          "running_armature_glb_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The running animation, skeleton only, as GLB."
          }
        },
        "required": [
          "walking_glb_url",
          "walking_fbx_url",
          "walking_armature_glb_url",
          "running_glb_url",
          "running_fbx_url",
          "running_armature_glb_url"
        ]
      },
      "AnimateOutput": {
        "type": "object",
        "description": "The `output` of an Animation task. A file that wasn't produced is `null`.",
        "properties": {
          "animation_glb_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The animated character as a GLB file."
          },
          "animation_fbx_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The animated character as an FBX file."
          },
          "processed_usdz_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The animation as a USDZ file, after the `fbx2usdz` operation. `null` otherwise."
          },
          "processed_armature_fbx_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The skeleton and its animation without the mesh, after the `extract_armature` operation. `null` otherwise."
          },
          "processed_animation_fps_fbx_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The FBX at the requested frame rate, after the `change_fps` operation. `null` otherwise."
          }
        },
        "required": [
          "animation_glb_url",
          "animation_fbx_url",
          "processed_usdz_url",
          "processed_armature_fbx_url",
          "processed_animation_fps_fbx_url"
        ]
      },
      "TextToMotionOutput": {
        "type": "object",
        "description": "The `output` of a Text to Motion task.",
        "properties": {
          "motion_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The motion clip, as an FBX file for `prime` or a BVH file for `swift`."
          },
          "motion_format": {
            "type": "string",
            "enum": [
              "fbx",
              "bvh"
            ],
            "description": "The clip's file format."
          },
          "duration_ms": {
            "type": "integer",
            "description": "The clip length, in milliseconds."
          },
          "mode": {
            "type": "string",
            "enum": [
              "prime",
              "swift"
            ],
            "description": "The mode the clip was made with."
          }
        },
        "required": [
          "motion_url",
          "motion_format",
          "duration_ms",
          "mode"
        ]
      },
      "ImageGenOutput": {
        "type": "object",
        "description": "The `output` of a Text to Image or Image to Image task.",
        "properties": {
          "image_urls": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            },
            "description": "Links to the generated images. Never `null`."
          }
        },
        "required": [
          "image_urls"
        ]
      },
      "TextTo3DTask": {
        "description": "A Text to 3D task. `type` is `text-to-3d-preview` or `text-to-3d-refine` for the two-step flow, or `text-to-3d` for a one-call task.",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "text-to-3d",
                  "text-to-3d-preview",
                  "text-to-3d-refine"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/TextTo3DOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "ImageTo3DTask": {
        "description": "An Image to 3D task (`type` is `image-to-3d`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "image-to-3d"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ImageTo3DOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "MultiImageTo3DTask": {
        "description": "A Multi-Image to 3D task (`type` is `multi-image-to-3d`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "multi-image-to-3d"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ImageTo3DOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "RetextureTask": {
        "description": "A Retexture task (`type` is `retexture`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "retexture"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Model3DOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "RemeshTask": {
        "description": "A Remesh task (`type` is `remesh`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "remesh"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Model3DOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "ConvertTask": {
        "description": "A Convert task (`type` is `convert`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "convert"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/MeshOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "ResizeTask": {
        "description": "A Resize task (`type` is `resize`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "resize"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/MeshOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "UVUnwrapTask": {
        "description": "A UV Unwrap task (`type` is `uv-unwrap`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "uv-unwrap"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ModelWithThumbnailOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "RigTask": {
        "description": "A Rigging task (`type` is `rig`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "rig"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/RigOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "AnimateTask": {
        "description": "An Animation task (`type` is `animate`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "animate"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AnimateOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "TextToMotionTask": {
        "description": "A Text to Motion task (`type` is `text-to-motion`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "text-to-motion"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/TextToMotionOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "TextToImageTask": {
        "description": "A Text to Image task (`type` is `text-to-image`), single image or multi-view.",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "text-to-image"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ImageGenOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "ImageToImageTask": {
        "description": "An Image to Image task (`type` is `image-to-image`), single image or multi-view.",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "image-to-image"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ImageGenOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "PrintMultiColorTask": {
        "description": "A Multi-Color Print task (`type` is `print-multi-color`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "print-multi-color"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ModelOnlyOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "PrintRepairTask": {
        "description": "A Repair Printability task (`type` is `print-repair`). It has one more top-level field, `intended_print`.",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "print-repair"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/PrintRepairOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "intended_print": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PrintIntendedPrint"
                  }
                ],
                "description": "The print Meshy checks, present from the create response on and in every status. Absent only on a task created on v1 without a printer type or print size."
              }
            }
          }
        ]
      },
      "PrintAnalyzeTask": {
        "description": "An Analyze Printability task (`type` is `print-analyze`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "print-analyze"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/PrintAnalyzeOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "RiggingCheckTask": {
        "description": "A Rigging Check task (`type` is `rig-check`). It fails with `task_error.code` `moderation_blocked` when content moderation blocks the model's preview image, and with `task_error.type` `service_unavailable` when Meshy couldn't check the model. Meshy refunds the credit of a failed task.",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "rig-check"
                ]
              },
              "output": {
                "description": "The answer, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/RiggingCheckOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "PrintSplitTask": {
        "description": "An Auto Split task (`type` is `print-split`). It can carry one more top-level field, `prompt_ignored`.",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "print-split"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/PrintSplitOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "prompt_ignored": {
                "type": "boolean",
                "const": true,
                "description": "Present, and `true`, when the prompt named no parts and Meshy split the model into the parts it identified instead. Known at create time, so it is reported from the create response on and in every status. Absent otherwise."
              }
            }
          }
        ]
      },
      "ReliefTask": {
        "description": "A Relief task (`type` is `relief`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/TaskBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "relief"
                ]
              },
              "output": {
                "description": "The results, or `null` until the task succeeds.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ReliefOutput"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "Task": {
        "description": "A task object of any type. `type` selects the shape of `output`.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/TextTo3DTask"
          },
          {
            "$ref": "#/components/schemas/ImageTo3DTask"
          },
          {
            "$ref": "#/components/schemas/MultiImageTo3DTask"
          },
          {
            "$ref": "#/components/schemas/RetextureTask"
          },
          {
            "$ref": "#/components/schemas/RemeshTask"
          },
          {
            "$ref": "#/components/schemas/ConvertTask"
          },
          {
            "$ref": "#/components/schemas/ResizeTask"
          },
          {
            "$ref": "#/components/schemas/UVUnwrapTask"
          },
          {
            "$ref": "#/components/schemas/RigTask"
          },
          {
            "$ref": "#/components/schemas/AnimateTask"
          },
          {
            "$ref": "#/components/schemas/TextToMotionTask"
          },
          {
            "$ref": "#/components/schemas/TextToImageTask"
          },
          {
            "$ref": "#/components/schemas/ImageToImageTask"
          },
          {
            "$ref": "#/components/schemas/PrintMultiColorTask"
          },
          {
            "$ref": "#/components/schemas/PrintRepairTask"
          },
          {
            "$ref": "#/components/schemas/PrintAnalyzeTask"
          },
          {
            "$ref": "#/components/schemas/PrintSplitTask"
          },
          {
            "$ref": "#/components/schemas/RiggingCheckTask"
          },
          {
            "$ref": "#/components/schemas/ReliefTask"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "text-to-3d": "#/components/schemas/TextTo3DTask",
            "text-to-3d-preview": "#/components/schemas/TextTo3DTask",
            "text-to-3d-refine": "#/components/schemas/TextTo3DTask",
            "image-to-3d": "#/components/schemas/ImageTo3DTask",
            "multi-image-to-3d": "#/components/schemas/MultiImageTo3DTask",
            "retexture": "#/components/schemas/RetextureTask",
            "remesh": "#/components/schemas/RemeshTask",
            "convert": "#/components/schemas/ConvertTask",
            "resize": "#/components/schemas/ResizeTask",
            "uv-unwrap": "#/components/schemas/UVUnwrapTask",
            "rig": "#/components/schemas/RigTask",
            "rig-check": "#/components/schemas/RiggingCheckTask",
            "animate": "#/components/schemas/AnimateTask",
            "text-to-motion": "#/components/schemas/TextToMotionTask",
            "text-to-image": "#/components/schemas/TextToImageTask",
            "image-to-image": "#/components/schemas/ImageToImageTask",
            "print-multi-color": "#/components/schemas/PrintMultiColorTask",
            "print-repair": "#/components/schemas/PrintRepairTask",
            "print-analyze": "#/components/schemas/PrintAnalyzeTask",
            "print-split": "#/components/schemas/PrintSplitTask",
            "relief": "#/components/schemas/ReliefTask"
          }
        }
      },
      "TaskList": {
        "type": "object",
        "description": "One page of tasks.",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Task"
            },
            "description": "The tasks on this page. Empty, never `null`, when there are none."
          },
          "has_more": {
            "type": "boolean",
            "description": "`true` if there's another page. Request it with `page_num` plus one."
          }
        },
        "required": [
          "data",
          "has_more"
        ]
      },
      "Balance": {
        "type": "object",
        "description": "A credit balance.",
        "properties": {
          "balance": {
            "type": "integer",
            "format": "int32",
            "description": "The credits you can spend right now. Usually `monthly_credits` plus `permanent_credits`; lower when a member credit limit or an Enterprise workspace credit limit applies to you. An API key credit limit isn't counted here."
          },
          "monthly_credits": {
            "type": "integer",
            "format": "int32",
            "description": "Credits from your plan's monthly allowance. Unused ones are cleared at the next monthly refresh, at `monthly_resets_at`."
          },
          "permanent_credits": {
            "type": "integer",
            "format": "int32",
            "description": "Credits that don't expire, such as purchased credit packs and rewards."
          },
          "monthly_resets_at": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The next monthly refresh, in Unix milliseconds. `null` when the account has no refresh date. On an account that doesn't refresh monthly, it can be a time in the past."
          }
        },
        "required": [
          "balance",
          "monthly_credits",
          "permanent_credits",
          "monthly_resets_at"
        ]
      },
      "UsageRecord": {
        "type": "object",
        "description": "One finished API task and the credits it used. Metadata only, with no file links.",
        "properties": {
          "task_id": {
            "type": "string",
            "format": "uuid",
            "description": "The task's ID. A task you created can be read with `GET /v2/tasks/{id}` until it's deleted or expires; a teammate's task returns `404` there."
          },
          "endpoint": {
            "type": "string",
            "description": "The task's type, such as `image-to-3d`, `rig` or `print-repair` (see `TaskType`). Text to 3D tasks show `text-to-3d-preview`, `text-to-3d-refine` or `text-to-3d`. Older records can carry names of retired endpoints, which the `endpoints` filter doesn't accept."
          },
          "status": {
            "type": "string",
            "enum": [
              "SUCCEEDED",
              "FAILED"
            ],
            "description": "How the task finished."
          },
          "created_at": {
            "type": "integer",
            "format": "int64",
            "description": "When the task was created, in Unix milliseconds."
          },
          "finished_at": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "When the task finished, in Unix milliseconds. `null` if the task has no finish time."
          },
          "consumed_credits": {
            "type": "integer",
            "description": "Credits the task used, after refunds. `0` for a failed task and for free tasks such as Analyze Printability."
          },
          "api_key_name": {
            "type": "string",
            "description": "The name of the API key that ran the task, or `Meshy CLI` for a task run with a Meshy CLI login. An empty string when the task was never charged, when the key has been deleted, or when the task ran through another app's login."
          },
          "api_key_suffix": {
            "type": "string",
            "maxLength": 4,
            "description": "The last four characters of that API key, to tell keys with the same name apart. An empty string whenever `api_key_name` is empty, and for Meshy CLI logins."
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "The tags sent in the `X-Meshy-Metadata` header when the task was created. `{}` if none."
          }
        },
        "required": [
          "task_id",
          "endpoint",
          "status",
          "created_at",
          "finished_at",
          "consumed_credits",
          "api_key_name",
          "api_key_suffix",
          "metadata"
        ]
      },
      "UsageList": {
        "type": "object",
        "description": "One page of usage records.",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageRecord"
            },
            "description": "The usage records on this page. Empty, never `null`, when there are none."
          },
          "has_more": {
            "type": "boolean",
            "description": "`true` when there's another page. There's no total count."
          }
        },
        "required": [
          "data",
          "has_more"
        ]
      },
      "AnimationLibraryEntry": {
        "type": "object",
        "description": "One animation in the library.",
        "properties": {
          "action_id": {
            "type": "integer",
            "minimum": 0,
            "description": "The ID to send as `action_id` or in `action_ids` when you create an Animation task. Stable and unique, but not contiguous."
          },
          "name": {
            "type": "string",
            "description": "The animation's display name. Not unique; use `action_id` or `key` as the identity."
          },
          "key": {
            "type": "string",
            "description": "The animation's unique key, such as `Big_Wave_Hello`."
          },
          "category": {
            "type": "string",
            "description": "The animation's category, such as `DailyActions`. For a `quadruped` animation, an animal, such as `dog`."
          },
          "sub_category": {
            "type": "string",
            "description": "The animation's subcategory, such as `Interacting`."
          },
          "preview_url": {
            "type": "string",
            "format": "uri",
            "description": "An animated GIF preview."
          },
          "rig_type": {
            "type": "string",
            "enum": [
              "biped",
              "quadruped"
            ],
            "description": "The kind of rig the animation plays on. A rig takes only animations of its own type."
          }
        },
        "required": [
          "action_id",
          "name",
          "key",
          "category",
          "sub_category",
          "preview_url",
          "rig_type"
        ]
      },
      "TextTo3DRequest": {
        "type": "object",
        "description": "One body for three kinds of task. `mode` and `should_texture` pick one:\n\n- One call: omit `mode`. `prompt` is required. `should_texture` (default `true`) picks a\n  textured model, which needs `texture_model`, or the mesh only (`false`).\n- Preview: `mode: preview`. `prompt` is required.\n- Refine: `mode: refine`. `preview_task_id` is required.\n\nA textured one-call request without `texture_model` returns `400` (`parameter_missing`).\n`should_texture` and `texture_model` sent with `mode` are ignored. On a refine or one-call\ntask, sending both `texture_prompt` and `texture_image_url` returns `400`.\n\nEach field says which kinds of task use it. A field another kind doesn't use is\nignored, except where its description says it returns `400`. A one-call request\nwith a field Text to 3D doesn't define returns `400` (`parameter_unknown`). With\n`mode`, such a field is ignored.",
        "properties": {
          "should_texture": {
            "type": [
              "boolean",
              "null"
            ],
            "default": true,
            "description": "One-call tasks: `true` for a textured model, `false` for the mesh only. With `false`,\n`texture_model` and the other texture fields are ignored. Ignored with `mode`."
          },
          "texture_model": {
            "type": "string",
            "enum": [
              "meshy-7",
              "meshy-n1",
              "meshy-6-lite"
            ],
            "description": "The texture model of a one-call task. Required unless `should_texture` is `false`, and\nignored with `mode` (a refine picks its texture model with `ai_model`). Every `ai_model`\ntakes each value. `meshy-7` makes PBR maps and textures up to 8K. `meshy-n1` makes a 2K\nbase color texture from reference images only: `texture_prompt`, `enable_pbr: true`,\n`4k` or `8k`, and a `quad` remesh return `400` with it, and with `meshy-6` or\n`meshy-6-lite` it needs `texture_image_url`. `meshy-6-lite` makes a 2K texture: `4k`\nand `8k` return `400` with it."
          },
          "mode": {
            "type": "string",
            "deprecated": true,
            "enum": [
              "preview",
              "refine"
            ],
            "description": "Deprecated: stops working on March 15, 2027. Leave it out to make the model in one call.\nSend it without `should_texture` for a two-step task: `preview` makes an untextured\nmesh, and `refine` textures a preview's mesh."
          },
          "prompt": {
            "type": "string",
            "maxLength": 800,
            "description": "What to make, up to 800 characters. Required for one-call and preview tasks. A refine\nignores it and uses its preview's prompt."
          },
          "preview_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "Required for a refine: the `id` of a `SUCCEEDED` preview task of yours. Any other ID,\nsuch as a one-call task, a teammate's preview or a deleted preview, returns `400`."
          },
          "ai_model": {
            "type": "string",
            "enum": [
              "latest",
              "meshy-7.1",
              "meshy-6",
              "meshy-6-lite",
              "meshy-t2.5",
              "meshy-t2",
              "meshy-standard-latest",
              "meshy-smart-topology-latest"
            ],
            "default": "latest",
            "description": "Pick the model from what the user is making. See the \"Choose by project\" table at https://docs.meshy.ai/api/v2/models.md. For a game asset, a character to rig, or a face-count budget, send `meshy-t2.5` (or `meshy-t2`) with `target_polycount`.\n\nThe model to use:\n\n- `latest` (Meshy 7.1), `meshy-7.1`, `meshy-6`, `meshy-6-lite`.\n- `meshy-standard-latest`: works like `latest`.\n- `meshy-t2.5` and `meshy-t2`: Smart Topology, a clean triangle mesh at the face count\n  you set with `target_polycount`. `meshy-t2.5` has sharper detail for game assets.\n- `meshy-smart-topology-latest`: Meshy T2.5, the newest Smart Topology model. Its\n  results can change; send `meshy-t2.5` for results that don't.\n\nThe `latest` default applies to one-call and preview tasks. On a refine, leave it out\nto texture with the model that matches the preview; a Smart Topology preview is then\ntextured with Meshy 7.\n\nOn a refine, `ai_model` picks the texture model only, because the mesh comes from the\npreview. It takes `meshy-7`, `latest` (the newest texture model, now Meshy 7),\n`meshy-6`, `meshy-6-lite` and `meshy-n1`. Meshy ignores `texture_model` on a refine.\n\nA Smart Topology preview (`meshy-t2`, `meshy-t2.5`) has no Meshy 6 Lite texturing: a\nrefine of one with `meshy-6-lite` textures with Meshy 6, so with `enable_pbr: true` it\nalso returns an emission map. A `meshy-6-lite` refine of a Meshy 6, Meshy 6 Lite or\nMeshy 7 preview returns none, and neither does a refine of a Smart Topology preview\nthat doesn't set `ai_model`.\n\nA refine also takes `meshy-n1`, which this list leaves out because a one-call or\npreview task with it returns `400`. It makes a 2K base color texture from\n`texture_image_url`, or from the reference image a `meshy-7.1` or `latest` preview\nstores. Any other preview returns `400` unless you send `texture_image_url`. With `meshy-n1`, `texture_prompt`, `enable_pbr: true`,\n`remove_lighting: true`, `texture_resolution` `4k` or `8k`, a preview remeshed to quads, and a preview of\nmore than 7,999,999 triangles return `400`.\n\nA one-call task with `meshy-7` returns `400`: send `meshy-7.1`."
          },
          "model_type": {
            "type": "string",
            "deprecated": true,
            "enum": [
              "standard",
              "smart-topology"
            ],
            "description": "Leave it out: `ai_model` picks the model. Still accepted for backward compatibility:\n`standard`, or `smart-topology` with a Smart Topology `ai_model`. With\n`smart-topology` and no `ai_model`, the model `meshy-smart-topology-latest` points to\n(Meshy T2.5) is used. `standard` with a Smart Topology `ai_model`, or `smart-topology`\nwith any other `ai_model`, returns `400`. One-call and preview tasks only."
          },
          "geometry_resolution": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "standard",
              "2k",
              "4k",
              null
            ],
            "default": "standard",
            "description": "Geometry detail. `2k` adds the Ultra pass, and `4k` adds a super-resolution pass\nafter it. Both need `meshy-7.1` or `latest`; another model returns `400`. One-call and\npreview tasks only: a refine returns `400` for any value, `standard` included."
          },
          "should_remesh": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether to remesh the mesh after generation. Defaults to `true` for `meshy-6-lite` and\n`false` for every other model. `topology` and `decimation_mode` apply only when the\nremesh runs. One-call and preview tasks only. Ignored with Smart Topology."
          },
          "topology": {
            "type": "string",
            "enum": [
              "triangle",
              "quad"
            ],
            "default": "triangle",
            "description": "The remesh's faces: `triangle` or `quad`. Smart Topology makes triangles only, so\n`quad` with a Smart Topology model returns `400`. One-call and preview tasks only."
          },
          "decimation_mode": {
            "type": "integer",
            "enum": [
              1,
              2,
              3,
              4
            ],
            "description": "Adaptive face count for the remesh, from `1` (ultra) to `4` (low). Replaces\n`target_polycount` when set. One-call and preview tasks only. Ignored with Smart\nTopology."
          },
          "target_polycount": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 100,
            "maximum": 300000,
            "description": "For a game asset at a set face count, use a Smart Topology model (`meshy-t2.5` or `meshy-t2`) instead of a remesh of a standard model.\n\nTarget face count. With a remesh: 100 to 300,000, default 30,000. With `meshy-t2.5` or\n`meshy-smart-topology-latest`: 100 to 30,000, default 15,000. With `meshy-t2`: 100 to\n15,000, default 4,000. A value out of the model's range returns `400`. One-call and\npreview tasks only."
          },
          "pose_mode": {
            "type": "string",
            "enum": [
              "a-pose",
              "t-pose"
            ],
            "description": "Generate a character in a pose. Leave it out for no pose. One-call and preview tasks\nonly."
          },
          "texture_prompt": {
            "type": "string",
            "maxLength": 800,
            "description": "Text that guides the texture, up to 800 characters. Refine and textured one-call\ntasks. Send it or `texture_image_url`, not both: both returns `400`."
          },
          "texture_image_url": {
            "type": "string",
            "description": "An image that guides the texture, as a public URL or a data URI\n(`data:image/png;base64,...`). JPEG, PNG or WebP, up to 20 MB and at least 32 pixels on\neach side and at most 178,956,970 pixels (width x height). Refine and textured one-call tasks. Send it or `texture_prompt`, not both:\nboth returns `400`."
          },
          "enable_pbr": {
            "type": "boolean",
            "default": false,
            "description": "Also generate metallic, roughness, and normal maps. Refine and textured one-call\ntasks."
          },
          "texture_resolution": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "2k",
              "4k",
              "8k",
              null
            ],
            "default": "2k",
            "description": "Base color texture size. `4k` and `8k` aren't available with `meshy-6-lite` (`400`).\n`8k` on a `quad` mesh that wasn't remeshed returns `400`. Refine and textured one-call\ntasks; a preview returns `400` for any value."
          },
          "remove_lighting": {
            "type": [
              "boolean",
              "null"
            ],
            "default": true,
            "description": "Remove highlights and shadows from the base color texture. Applies to `meshy-6`, is\nignored with Meshy 7 (`latest`, `meshy-7.1`) and Smart Topology models, and returns\n`400` with `meshy-6-lite` for any value. Refine and textured one-call tasks."
          },
          "target_formats": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "glb",
                "obj",
                "fbx",
                "stl",
                "usdz",
                "3mf"
              ]
            },
            "default": [
              "glb",
              "obj",
              "fbx",
              "stl",
              "usdz"
            ],
            "description": "The files to produce. Unlike other v2 endpoints, Text to 3D produces every format but\n`3mf` by default, and doesn't apply the 150 mm print cap: STL files keep the model's\nsize, and a `3mf` file is scaled to 75 mm tall."
          },
          "alpha_thumbnail": {
            "type": "boolean",
            "default": false,
            "description": "Also render a preview with a transparent background, as `output.alpha_thumbnail_url`."
          },
          "thumbnail_resolution": {
            "type": "integer",
            "enum": [
              512,
              1024
            ],
            "default": 512,
            "description": "The width and height, in pixels, of the task's preview images: `512` or `1024`. It applies to `output.thumbnail_url` and to any optional preview you request. Any other value returns `400`."
          },
          "moderation": {
            "type": "boolean",
            "default": false,
            "description": "Screen `prompt`, `texture_prompt`, and `texture_image_url` for harmful content before\ngenerating. Flagged input returns `400`."
          },
          "auto_size": {
            "type": "boolean",
            "default": false,
            "description": "Estimate the object's real-world height and scale the model to it."
          },
          "origin_at": {
            "type": "string",
            "enum": [
              "bottom",
              "center"
            ],
            "default": "bottom",
            "description": "Where the origin goes when `auto_size` is `true`."
          }
        }
      },
      "TextTo3DCreated": {
        "description": "The `202` body of `POST /v2/text-to-3d`: the Text to 3D task object plus `result`.",
        "allOf": [
          {
            "$ref": "#/components/schemas/TextTo3DTask"
          },
          {
            "type": "object",
            "required": [
              "result"
            ],
            "properties": {
              "result": {
                "type": "string",
                "format": "uuid",
                "description": "The task ID, the same as `id`. Kept for clients written before v2."
              }
            }
          }
        ]
      },
      "ImageTo3DRequest": {
        "type": "object",
        "description": "Image to 3D request. Send `image_url` or `input_task_id`. If you send both, `input_task_id` is used; if you send neither, the request returns `400`.",
        "properties": {
          "image_url": {
            "type": "string",
            "description": "The image to turn into a model, as a public http(s) URL or a data URI (`data:image/png;base64,...`). JPEG, PNG, or WebP, up to 20 MB and at least 32 pixels on each side and at most 178,956,970 pixels (width x height). Required unless you send `input_task_id`.",
            "examples": [
              "https://docs.meshy.ai/images/api/quick-start/source-photo.webp"
            ]
          },
          "input_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A `SUCCEEDED` Text to Image or Image to Image task of yours, created with the API, that produced exactly one image. Its image is used as the input. Multi-view image tasks return `400` here; use them with Multi-Image to 3D. An ID that doesn't match a task of yours returns `404`. Required unless you send `image_url`."
          },
          "ai_model": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "latest",
              "meshy-standard-latest",
              "meshy-7.1",
              "meshy-6",
              "meshy-6-lite",
              "meshy-t2.5",
              "meshy-t2",
              "meshy-smart-topology-latest",
              null
            ],
            "default": "latest",
            "description": "Pick the model from what the user is making. See the \"Choose by project\" table at https://docs.meshy.ai/api/v2/models.md. For a game asset, a character to rig, or a face-count budget, send `meshy-t2.5` (or `meshy-t2`) with `target_polycount`.\n\nThe model to use. It's the only model setting on v2.\n\n- `latest` (Meshy 7.1), `meshy-7.1`, `meshy-6`, `meshy-6-lite`.\n- `meshy-standard-latest`: works like `latest`.\n- `meshy-t2.5` and `meshy-t2`: Smart Topology, a clean triangle mesh at the face count\n  you set with `target_polycount`. `meshy-t2.5` has sharper detail for game assets.\n- `meshy-smart-topology-latest`: Meshy T2.5, the newest Smart Topology model. Its\n  results can change; send `meshy-t2.5` for results that don't."
          },
          "geometry_resolution": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "standard",
              "2k",
              "4k",
              null
            ],
            "default": "standard",
            "description": "Geometry detail. `2k` adds the Ultra pass, and `4k` adds a super-resolution pass after it. Both need `meshy-7.1` or `latest`; with another model they return `400`."
          },
          "should_texture": {
            "type": "boolean",
            "default": true,
            "description": "Whether to generate textures. `false` returns an untextured mesh, and `texture_model` and the other texture fields are ignored."
          },
          "texture_model": {
            "type": "string",
            "enum": [
              "meshy-7",
              "meshy-n1",
              "meshy-6-lite"
            ],
            "description": "The model that textures the 3D model, in the same task. Required unless `should_texture` is `false`: a textured request without it returns `400` (`parameter_missing`). Every `ai_model` takes each value. `meshy-7` makes PBR maps and textures up to 8K. `meshy-n1` makes a 2K base color texture from reference images only: `texture_prompt`, `enable_pbr: true`, `4k` or `8k`, and a `quad` remesh return `400` with it, and a generated model over 7,999,999 triangles fails the task. `meshy-6-lite` makes a 2K texture: `4k` and `8k` return `400` with it."
          },
          "enable_pbr": {
            "type": "boolean",
            "default": false,
            "description": "Also generate metallic, roughness, and normal maps. `true` with `texture_model: meshy-n1` returns `400`."
          },
          "texture_resolution": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "2k",
              "4k",
              "8k",
              null
            ],
            "default": "2k",
            "description": "Base color texture size. `4k` and `8k` need `texture_model: meshy-7`, and return `400` with `meshy-n1` or `meshy-6-lite`. `8k` with `topology: quad` needs `should_remesh: true`, or it returns `400`."
          },
          "texture_prompt": {
            "type": "string",
            "maxLength": 800,
            "description": "Text that guides the texture, up to 800 characters. Send either `texture_prompt` or `texture_image_url`, not both: sending both returns `400`. Returns `400` with `texture_model: meshy-n1`."
          },
          "texture_image_url": {
            "type": "string",
            "description": "An image that guides the texture, as a public http(s) URL or a data URI, in the same formats and sizes as `image_url`. Used only when `should_texture` is true. With `texture_model` `meshy-n1`, it's the front view to texture from (the input image when you leave it out)."
          },
          "target_formats": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "glb",
                "obj",
                "fbx",
                "stl",
                "usdz",
                "3mf"
              ]
            },
            "default": [
              "glb"
            ],
            "description": "The files to produce. Only these formats are generated. Leaving it out, or sending `null` or an empty list, gives `[\"glb\"]`. STL and 3MF files are scaled down to at most 150 mm on the longest side; a smaller model keeps its size."
          },
          "should_remesh": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether to remesh the model after generation. The default is `true` with `meshy-6-lite` and `false` with every other model. Ignored with Smart Topology models."
          },
          "topology": {
            "type": "string",
            "enum": [
              "triangle",
              "quad"
            ],
            "default": "triangle",
            "description": "Mesh topology of the remeshed model. Smart Topology makes triangles only, so `quad` with a Smart Topology model returns `400`. A `quad` remesh with `texture_model` `meshy-n1` also returns `400`."
          },
          "decimation_mode": {
            "type": "integer",
            "enum": [
              1,
              2,
              3,
              4
            ],
            "description": "Adaptive face count, from `1` (ultra) to `4` (low). Replaces `target_polycount` when set. Ignored with Smart Topology models."
          },
          "save_pre_remeshed_model": {
            "type": "boolean",
            "default": false,
            "description": "Also keep the GLB from before the remesh, as `output.model_urls.pre_remeshed_glb`. Needs `should_remesh: true`. Ignored with Smart Topology models."
          },
          "target_polycount": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 100,
            "maximum": 300000,
            "description": "For a game asset at a set face count, use a Smart Topology model (`meshy-t2.5` or `meshy-t2`) instead of a remesh of a standard model. Target face count. With a remesh: 100 to 300,000, default 30,000. With `meshy-t2.5` or `meshy-smart-topology-latest`: 100 to 30,000, default 15,000. With `meshy-t2`: 100 to 15,000, default 4,000. A value out of the model's range returns `400`."
          },
          "auto_polycount": {
            "type": [
              "boolean",
              "null"
            ],
            "default": false,
            "description": "Let Meshy choose the face count from the input image, within `meshy-t2.5`'s range. Only with `meshy-t2.5` or `meshy-smart-topology-latest`; any other `ai_model`, or `target_polycount` as well, returns `400` (`parameters_conflict`). Without a recommendation the task uses `meshy-t2.5`'s default face count. `output.target_polycount` shows the face count the task used."
          },
          "pose_mode": {
            "type": "string",
            "enum": [
              "a-pose",
              "t-pose"
            ],
            "description": "Generate a character in a pose. Leave it out for no pose."
          },
          "image_enhancement": {
            "type": [
              "boolean",
              "null"
            ],
            "default": true,
            "description": "Clean up the input image first. Set it to `false` to keep the image exactly as it is. Ignored with `meshy-6-lite` and Smart Topology models."
          },
          "remove_lighting": {
            "type": [
              "boolean",
              "null"
            ],
            "default": true,
            "description": "Remove highlights and shadows from the base color texture. Ignored, because the texture models that `texture_model` takes don't use it."
          },
          "moderation": {
            "type": "boolean",
            "default": false,
            "description": "Screen the input image, `texture_image_url`, and `texture_prompt` for harmful content before generating. Flagged content returns `400`."
          },
          "auto_size": {
            "type": "boolean",
            "default": false,
            "description": "Estimate the object's real-world height and scale the model to it."
          },
          "origin_at": {
            "type": "string",
            "enum": [
              "bottom",
              "center"
            ],
            "default": "bottom",
            "description": "Where the origin goes when `auto_size` is true."
          },
          "multi_view_thumbnails": {
            "type": "boolean",
            "default": false,
            "description": "Also render front, right, back, and left previews, as `output.thumbnail_urls`. Adds about 5 seconds."
          },
          "thumbnail_resolution": {
            "type": "integer",
            "enum": [
              512,
              1024
            ],
            "default": 512,
            "description": "The width and height, in pixels, of the task's preview images: `512` or `1024`. It applies to `output.thumbnail_url` and to any optional preview you request. Any other value returns `400`."
          }
        }
      },
      "MultiImageTo3DRequest": {
        "type": "object",
        "description": "Multi-Image to 3D request. Send `image_urls` or `input_task_id`. If you send both, `input_task_id` is used; if you send neither, the request returns `400`. Send at most one of `texture_prompt`, `texture_image_url`, and `texture_image_urls`.",
        "properties": {
          "image_urls": {
            "type": "array",
            "minItems": 1,
            "maxItems": 4,
            "items": {
              "type": "string",
              "description": "A public http(s) URL or a data URI."
            },
            "description": "One to four images of the same object, each a public http(s) URL or a data URI (`data:image/png;base64,...`). JPEG, PNG, or WebP, each up to 20 MB and at least 32 pixels on each side and at most 178,956,970 pixels (width x height). Required unless you send `input_task_id`."
          },
          "input_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A `SUCCEEDED` Text to Image or Image to Image task of yours, created with the API, including multi-view ones. Its images, one to four, are used as the input. An ID that doesn't match a task of yours returns `404`. Required unless you send `image_urls`."
          },
          "ai_model": {
            "type": "string",
            "enum": [
              "latest",
              "meshy-standard-latest",
              "meshy-7.1",
              "meshy-6",
              "meshy-6-lite"
            ],
            "default": "latest",
            "description": "Pick the model from what the user is making. See the \"Choose by project\" table at https://docs.meshy.ai/api/v2/models.md. The model to use: `latest` (Meshy 7.1), `meshy-7.1`, `meshy-6`, `meshy-6-lite`, or `meshy-standard-latest`, which works like `latest`. Smart Topology models aren't available for Multi-Image to 3D: `meshy-smart-topology-latest` returns `400`."
          },
          "geometry_resolution": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "standard",
              "2k",
              null
            ],
            "default": "standard",
            "description": "Geometry detail. `2k` adds the Ultra pass, and needs `meshy-7.1` or `latest`; with another model it returns `400`. `4k` isn't available for Multi-Image to 3D and returns `400`."
          },
          "should_texture": {
            "type": "boolean",
            "default": true,
            "description": "Whether to generate textures. `false` returns an untextured mesh, and `texture_model` and the other texture fields are ignored."
          },
          "texture_model": {
            "type": "string",
            "enum": [
              "meshy-7",
              "meshy-n1"
            ],
            "description": "The model that textures the 3D model, in the same task. Required unless `should_texture` is `false`: a textured request without it returns `400` (`parameter_missing`). Every `ai_model` takes both values, and any other value returns `400`. `meshy-7` makes PBR maps and textures up to 8K. `meshy-n1` makes a 2K base color texture from reference images only: `texture_prompt`, `enable_pbr: true`, `4k` or `8k`, and a `quad` remesh return `400` with it."
          },
          "enable_pbr": {
            "type": "boolean",
            "default": false,
            "description": "Also generate metallic, roughness, and normal maps. `true` with `texture_model: meshy-n1` returns `400`."
          },
          "texture_resolution": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "2k",
              "4k",
              "8k",
              null
            ],
            "default": "2k",
            "description": "Base color texture size. `4k` and `8k` need `texture_model: meshy-7`, and return `400` with `meshy-n1`. `8k` with `topology: quad` needs `should_remesh: true`, or it returns `400`."
          },
          "texture_prompt": {
            "type": "string",
            "maxLength": 800,
            "description": "Text that guides the texture, up to 800 characters. Sending it with `texture_image_url` or `texture_image_urls`, or with `texture_model` `meshy-n1`, returns `400`."
          },
          "texture_image_url": {
            "type": "string",
            "description": "One image that guides the texture, as a public http(s) URL or a data URI, in the same formats and sizes as `image_urls`. Used only when `should_texture` is true. Sending it with `texture_prompt` or `texture_image_urls` returns `400`."
          },
          "texture_image_urls": {
            "type": "array",
            "minItems": 1,
            "maxItems": 4,
            "items": {
              "type": "string",
              "description": "A public http(s) URL or a data URI."
            },
            "description": "One to four images of the object that guide the texture, in the same formats and sizes as `image_urls`. They can differ from `image_urls`. The first image is the main reference. An empty list, or sending it with `texture_prompt` or `texture_image_url`, returns `400`."
          },
          "target_formats": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "glb",
                "obj",
                "fbx",
                "stl",
                "usdz",
                "3mf"
              ]
            },
            "default": [
              "glb"
            ],
            "description": "The files to produce. Only these formats are generated. Leaving it out, or sending `null` or an empty list, gives `[\"glb\"]`. STL and 3MF files are scaled down to at most 150 mm on the longest side; a smaller model keeps its size."
          },
          "should_remesh": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether to remesh the model after generation. The default is `true` with `meshy-6-lite` and `false` with every other model."
          },
          "topology": {
            "type": "string",
            "enum": [
              "triangle",
              "quad"
            ],
            "default": "triangle",
            "description": "Mesh topology of the remeshed model."
          },
          "target_polycount": {
            "type": "integer",
            "minimum": 100,
            "maximum": 300000,
            "default": 30000,
            "description": "The face count to aim for when remeshing, from 100 to 300,000."
          },
          "decimation_mode": {
            "type": "integer",
            "enum": [
              1,
              2,
              3,
              4
            ],
            "description": "Adaptive face count, from `1` (ultra) to `4` (low). Replaces `target_polycount` when set."
          },
          "save_pre_remeshed_model": {
            "type": "boolean",
            "default": false,
            "description": "Also keep the GLB from before the remesh, as `output.model_urls.pre_remeshed_glb`. Needs `should_remesh: true`."
          },
          "pose_mode": {
            "type": "string",
            "enum": [
              "a-pose",
              "t-pose"
            ],
            "description": "Generate a character in a pose. Leave it out for no pose."
          },
          "image_enhancement": {
            "type": [
              "boolean",
              "null"
            ],
            "default": true,
            "description": "Clean up the input images first. Set it to `false` to keep the images exactly as they are. Ignored with `meshy-6-lite`."
          },
          "remove_lighting": {
            "type": [
              "boolean",
              "null"
            ],
            "default": true,
            "description": "Remove highlights and shadows from the base color texture. Ignored, because the texture models that `texture_model` takes don't use it."
          },
          "moderation": {
            "type": "boolean",
            "default": false,
            "description": "Screen the input images, the texture images, and `texture_prompt` for harmful content before generating. Flagged content returns `400`."
          },
          "auto_size": {
            "type": "boolean",
            "default": false,
            "description": "Estimate the object's real-world height and scale the model to it."
          },
          "origin_at": {
            "type": "string",
            "enum": [
              "bottom",
              "center"
            ],
            "default": "bottom",
            "description": "Where the origin goes when `auto_size` is true."
          },
          "multi_view_thumbnails": {
            "type": "boolean",
            "default": false,
            "description": "Also render front, right, back, and left previews, as `output.thumbnail_urls`. Adds about 5 seconds."
          },
          "thumbnail_resolution": {
            "type": "integer",
            "enum": [
              512,
              1024
            ],
            "default": 512,
            "description": "The width and height, in pixels, of the task's preview images: `512` or `1024`. It applies to `output.thumbnail_url` and to any optional preview you request. Any other value returns `400`."
          }
        }
      },
      "RetextureRequest": {
        "type": "object",
        "description": "Retexture request. Send `input_task_id` or `model_url`; sending both returns `400` (`parameters_conflict`). Send exactly one of `texture_prompt`, `texture_image_url`, and `multiview_image_urls`: none, or two of them, returns `400`. `texture_model` is required.",
        "required": [
          "texture_model"
        ],
        "properties": {
          "input_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A `SUCCEEDED` task you created with the API that produced a 3D model, such as Text to 3D, Image to 3D, Remesh, or another Retexture. Its GLB is the model to texture. An ID that doesn't match a task of yours returns `404`. Required unless you send `model_url`."
          },
          "model_url": {
            "type": "string",
            "description": "The model to texture, as a public http(s) URL or a data URI. Supported formats: `.glb`, `.gltf`, `.obj`, `.fbx`, and `.stl`, up to 400 MB from a URL or 100 MB as a `data:` URI. A data URI must hold a GLB or glTF file (`data:model/gltf-binary;base64,...`). A GLB, glTF, FBX, or OBJ file over 100 MB can have at most 10,000,000 faces. Faces are counted as triangles (a quad counts as 2), and a mesh drawn more than once counts once per copy. Over 100 MB, an FBX file must be binary FBX 7.1 or newer, and a GLB or glTF file must not use Draco compression. The result keeps the file's size, but not its position: it comes back as one centered mesh, without rigs or animations. Required unless you send `input_task_id`."
          },
          "texture_prompt": {
            "type": "string",
            "maxLength": 800,
            "description": "Text that describes the new texture, up to 800 characters. A prompt of only spaces counts as not sent."
          },
          "texture_image_url": {
            "type": "string",
            "description": "An image whose style the texture follows, as a public http(s) URL or a data URI (`data:image/png;base64,...`). JPEG, PNG, or WebP, up to 20 MB and at least 32 pixels on each side."
          },
          "multiview_image_urls": {
            "type": "array",
            "minItems": 1,
            "maxItems": 4,
            "items": {
              "type": "string",
              "description": "A public http(s) URL or a data URI."
            },
            "description": "One to four reference images of the same object, in the same formats and sizes as `texture_image_url`. The first image is the main reference. Needs `texture_model` `meshy-7` or `meshy-n1`: `meshy-6-lite` returns `400`. An empty list returns `400`."
          },
          "texture_model": {
            "type": "string",
            "enum": [
              "meshy-7",
              "meshy-n1",
              "meshy-6-lite"
            ],
            "description": "The model that generates the texture. A request without it, or with any other value, returns `400`. `meshy-7` makes PBR maps and textures up to 8K. `meshy-n1` makes a 2K base color texture from images only, for 3D models of up to 7,999,999 faces (counted as triangles, so a quad counts as 2). With `meshy-n1`, sending `texture_prompt`, `enable_pbr: true`, or a `texture_resolution` of `4k` or `8k` returns `400`. `meshy-6-lite` makes a 2K texture."
          },
          "uv_mode": {
            "type": "string",
            "enum": [
              "auto",
              "preserve",
              "regenerate"
            ],
            "default": "auto",
            "description": "How to handle the model's UV layout. `auto` keeps the model's UVs when they're usable and generates new ones otherwise. `preserve` keeps the model's UVs; if they all fit in a box smaller than 5% of the UV square, the task fails with `model_insufficient_uv`. `regenerate` always generates new UVs. A model with no UVs gets new ones in every mode. With `input_task_id` and kept UVs, the mesh keeps its size and position; otherwise it keeps its size but is re-centered."
          },
          "enable_pbr": {
            "type": "boolean",
            "default": false,
            "description": "Also generate metallic, roughness, and normal maps. `true` with `meshy-n1` returns `400`."
          },
          "texture_resolution": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "2k",
              "4k",
              "8k",
              null
            ],
            "default": "2k",
            "description": "Base color texture size. `4k` and `8k` aren't available with `meshy-6-lite` or `meshy-n1` and return `400`."
          },
          "remove_lighting": {
            "type": [
              "boolean",
              "null"
            ],
            "default": true,
            "description": "Remove highlights and shadows from the base color texture. Ignored, because the texture models that `texture_model` takes don't use it."
          },
          "target_formats": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "glb",
                "obj",
                "fbx",
                "stl",
                "usdz",
                "3mf"
              ]
            },
            "default": [
              "glb"
            ],
            "description": "The files to produce. Only these formats are generated. Leaving it out, or sending `null` or an empty list, gives `[\"glb\"]`. STL and 3MF files of a model Meshy generated are scaled down to at most 150 mm on the longest side; uploaded and resized models keep their own size."
          },
          "thumbnail_resolution": {
            "type": "integer",
            "enum": [
              512,
              1024
            ],
            "default": 512,
            "description": "The width and height, in pixels, of the task's preview images: `512` or `1024`. It applies to `output.thumbnail_url` and to any optional preview you request. Any other value returns `400`."
          }
        }
      },
      "RemeshRequest": {
        "type": "object",
        "description": "Send `input_task_id` or `model_url`; sending both returns `400` (`parameters_conflict`). The removed v1 keys `resize_height`, `resize_longest_side`, `origin_at`, `auto_size` and `convert_format_only` return 400 (`parameter_unknown`) when present, even as `null` or `false` (for example `resize_height is not supported on v2 remesh. Use /openapi/v2/convert or /openapi/v2/resize instead.`).",
        "properties": {
          "input_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A `SUCCEEDED` task of yours, created with the API, that produced a 3D model, such as Text to 3D, Image to 3D, Retexture or another Remesh. Remesh reads the task's GLB. Required unless `model_url` is sent."
          },
          "model_url": {
            "type": "string",
            "description": "The model to remesh, as a public http(s) URL or a data URI. Supported formats: `.glb`, `.gltf`, `.obj`, `.fbx` and `.stl`, up to 400 MB from a URL or 100 MB as a `data:` URI. A data URI must hold a GLB or glTF file (`data:model/gltf-binary;base64,...`). A GLB, glTF, FBX, or OBJ file over 100 MB can have at most 10,000,000 faces. Faces are counted as triangles (a quad counts as 2), and a mesh drawn more than once counts once per copy. Over 100 MB, an FBX file must be binary FBX 7.1 or newer, and a GLB or glTF file must not use Draco compression. The result keeps the file's size, but not its position: it comes back as one centered mesh, without rigs, animations, or morph targets. Required unless `input_task_id` is sent."
          },
          "topology": {
            "type": "string",
            "enum": [
              "triangle",
              "quad"
            ],
            "default": "triangle",
            "description": "The face type of the new mesh. GLB files store triangles only, so a `quad` mesh is saved in a GLB with each quad split into two triangles. To keep the quads, add `obj` or `fbx` to `target_formats`."
          },
          "target_polycount": {
            "type": "integer",
            "minimum": 100,
            "maximum": 300000,
            "default": 30000,
            "description": "The face count to aim for."
          },
          "decimation_mode": {
            "type": "integer",
            "enum": [
              1,
              2,
              3,
              4
            ],
            "description": "Adaptive face count, from `1` (ultra) to `4` (low): the face count follows the model's surface area. Replaces `target_polycount` when set."
          },
          "target_formats": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "glb",
                "obj",
                "fbx",
                "stl",
                "usdz",
                "blend",
                "3mf"
              ]
            },
            "default": [
              "glb"
            ],
            "description": "The files to produce. Only these formats are generated. Leaving it out, or sending `null` or an empty list, gives `[\"glb\"]`. A `quad` mesh keeps its quads in OBJ and FBX files. STL and 3MF files of a model Meshy generated are scaled down to at most 150 mm on the longest side; uploaded and resized models keep their own size."
          },
          "thumbnail_resolution": {
            "type": "integer",
            "enum": [
              512,
              1024
            ],
            "default": 512,
            "description": "The width and height, in pixels, of the task's preview images: `512` or `1024`. It applies to `output.thumbnail_url` and to any optional preview you request. Any other value returns `400`."
          }
        }
      },
      "ConvertRequest": {
        "type": "object",
        "description": "Send `input_task_id` or `model_url`; sending both returns `400` (`parameters_conflict`). `target_formats` is required.",
        "required": [
          "target_formats"
        ],
        "properties": {
          "input_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A `SUCCEEDED` task of yours, created with the API, that produced a 3D model, such as Text to 3D, Image to 3D, Remesh, Resize or Retexture. A task with quad topology (such as a `quad` remesh) keeps its quads in OBJ, FBX and Blend; other formats are triangles. Required unless `model_url` is sent."
          },
          "model_url": {
            "type": "string",
            "description": "The model to convert, as a public http(s) URL or a data URI. Supported formats: `.glb`, `.gltf`, `.obj`, `.fbx` and `.stl`, up to 400 MB from a URL or 100 MB as a `data:` URI. A data URI must hold a GLB or glTF file (`data:model/gltf-binary;base64,...`). A GLB, glTF, FBX, or OBJ file over 100 MB can have at most 10,000,000 faces. Faces are counted as triangles (a quad counts as 2), and a mesh drawn more than once counts once per copy. Over 100 MB, an FBX file must be binary FBX 7.1 or newer, and a GLB or glTF file must not use Draco compression. The result keeps the file's size, but not its position: it comes back as one centered mesh, without rigs or animations. To keep a model's exact position, convert a Meshy task with `input_task_id`. Required unless `input_task_id` is sent."
          },
          "target_formats": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "glb",
                "obj",
                "fbx",
                "stl",
                "usdz",
                "blend",
                "3mf"
              ]
            },
            "description": "The formats to produce, at least one. Every format keeps the size of the model it's converted from, except that STL and 3MF files of a model Meshy generated are scaled down to at most 150 mm on the longest side. Uploaded models, and models you resized with `resize_height` or `resize_longest_side`, keep their own size. A scaled-down STL file, and every 3MF file, has its origin at the bottom."
          }
        }
      },
      "ResizeRequest": {
        "type": "object",
        "description": "Send `input_task_id` or `model_url`; sending both returns `400` (`parameters_conflict`). To change the size, send one of `resize_height`, `resize_longest_side` or `auto_size`: two of them together, or a negative size, returns 400. To move only the origin, send `origin_at` alone: the model keeps its size. A request with no size and no `origin_at` returns 400.",
        "properties": {
          "input_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A `SUCCEEDED` task of yours, created with the API, that produced a 3D model, such as Text to 3D, Image to 3D, Remesh or Retexture. Resize returns a GLB. A quad model (such as a `quad` remesh) is resized with it, so a Convert of the Resize task keeps the quads. Required unless `model_url` is sent."
          },
          "model_url": {
            "type": "string",
            "description": "The model to resize, as a public http(s) URL or a data URI. Supported formats: `.glb`, `.gltf`, `.obj`, `.fbx` and `.stl`, up to 400 MB from a URL or 100 MB as a `data:` URI. A data URI must hold a GLB or glTF file (`data:model/gltf-binary;base64,...`). A GLB, glTF, FBX, or OBJ file over 100 MB can have at most 10,000,000 faces. Faces are counted as triangles (a quad counts as 2), and a mesh drawn more than once counts once per copy. Over 100 MB, an FBX file must be binary FBX 7.1 or newer, and a GLB or glTF file must not use Draco compression. The result has the same format as the file, except that `.gltf` files and data URIs come back as GLB. Tasks that take the Resize task as `input_task_id` use the resized model. Required unless `input_task_id` is sent."
          },
          "resize_height": {
            "type": "number",
            "format": "float",
            "exclusiveMinimum": 0,
            "description": "The model's new height in meters."
          },
          "resize_longest_side": {
            "type": "number",
            "format": "float",
            "exclusiveMinimum": 0,
            "description": "The new length of the model's longest side in meters: the largest of its bounding-box width, height and depth, such as the arm span of a character in a T-pose."
          },
          "auto_size": {
            "type": "boolean",
            "default": false,
            "description": "Estimate the object's real-world height and scale the model to it. If no estimate can be made, the task still succeeds without resizing."
          },
          "origin_at": {
            "type": "string",
            "enum": [
              "bottom",
              "center"
            ],
            "default": "bottom",
            "description": "Where the origin goes. Sent without a size, it moves only the origin and the model keeps its size (a `model_url` file its own size). The default applies only with a size."
          }
        }
      },
      "UVUnwrapRequest": {
        "type": "object",
        "description": "Send `input_task_id` or `model_url`; sending both returns `400` (`parameters_conflict`).",
        "properties": {
          "input_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A `SUCCEEDED` task of yours, created with the API, that produced a 3D model, such as Text to 3D, Image to 3D or Remesh. UV Unwrap reads the task's GLB. Required unless `model_url` is sent."
          },
          "model_url": {
            "type": "string",
            "description": "The model to unwrap, as a public http(s) URL whose path ends in `.glb`, or a data URI (`data:model/gltf-binary;base64,...`), up to 400 MB from a URL or 100 MB as a `data:` URI. A GLB over 100 MB must not use Draco compression. Only GLB files are supported; to unwrap another format, run Convert to GLB first and pass that task's `id` as `input_task_id`. Required unless `input_task_id` is sent."
          }
        }
      },
      "RiggingCheckRequest": {
        "type": "object",
        "properties": {
          "input_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A `SUCCEEDED` task of yours, created with the API, that produced a 3D model with a preview image, such as Text to 3D, Image to 3D, Remesh or Retexture. A task that isn't yours or doesn't exist returns 400 (code `input_task_not_found`). A task that hasn't succeeded returns 400 (code `input_task_not_ready`). One with no preview image, such as Convert, returns 404 (code `input_task_unsupported`), as does one whose files were deleted (code `input_task_expired`)."
          }
        },
        "required": [
          "input_task_id"
        ]
      },
      "RiggingCheckOutput": {
        "type": "object",
        "description": "The output of a succeeded Rigging Check task: whether Meshy can rig and animate the model, and why not.",
        "properties": {
          "riggable": {
            "type": "boolean",
            "description": "`true` when the model has one character, a humanoid or a four-legged animal, standing (a four-legged animal on all four legs), with its limbs clear of the body, on no base, facing the front, with at most 380,000 triangles (a quad counts as 2)."
          },
          "animation_type": {
            "type": "string",
            "enum": [
              "biped",
              "quadruped",
              "other"
            ],
            "description": "The kind of character the model is, even when `riggable` is false. `biped` and `quadruped` are the values `POST /v2/rigging` takes as `animation_type`; Rigging doesn't support `other`."
          },
          "animatable": {
            "type": "boolean",
            "description": "Whether `POST /v2/animations` can animate the model after you rig it. Never true when `riggable` is false."
          },
          "reasons": {
            "type": "array",
            "description": "Why `riggable` or `animatable` is false, in a fixed order. Empty when both are true.",
            "items": {
              "$ref": "#/components/schemas/RiggingCheckReason"
            }
          }
        },
        "required": [
          "riggable",
          "animation_type",
          "animatable",
          "reasons"
        ]
      },
      "RiggingCheckReason": {
        "type": "object",
        "description": "One reason the model doesn't fit.",
        "properties": {
          "code": {
            "type": "string",
            "description": "What's wrong, for code to act on: `not_a_character`, `unsupported_body_type`, `multiple_subjects`, `has_base`, `not_standing`, `limbs_not_separated`, `facing_away`, or `too_many_faces`. Meshy may add codes, so treat an unknown code as a reason the model doesn't fit."
          },
          "message": {
            "type": "string",
            "description": "The same reason as a sentence for a person, with how to fix the model. For `too_many_faces` it gives the triangle count and the Remesh settings to use. The wording can change."
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "RiggingRequest": {
        "type": "object",
        "description": "Send `input_task_id` or `model_url`; sending both returns `400` (`parameters_conflict`).",
        "properties": {
          "input_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A `SUCCEEDED` task of yours, created with the API, that produced a 3D model with a preview image, such as Text to 3D, Image to 3D, Remesh or Retexture. A task that isn't yours or doesn't exist returns 400 (code `input_task_not_found`). A task that hasn't succeeded returns 400 (code `input_task_not_ready`). One with no preview image, such as Convert, or Resize without `auto_size`, returns 404 (code `input_task_unsupported`), as does one whose files were deleted (code `input_task_expired`). The model can have at most 380,000 triangles (a quad counts as 2); if it has more, run Remesh with a `target_polycount` of 300,000 or less (150,000 or less with quad `topology`) first. Required unless `model_url` is sent."
          },
          "model_url": {
            "type": "string",
            "description": "The character to rig, as a public URL whose path ends in `.glb`, or a data URI of a GLB file, up to 400 MB from a URL or 100 MB as a `data:` URI. The model can have at most 380,000 triangles (a quad counts as 2), and a model with more returns `400`; run Remesh with a `target_polycount` of 300,000 or less (150,000 or less with quad `topology`) first. A file over 100 MB with more than 10,000,000 faces also returns `400`. Faces are counted as triangles, and a mesh drawn more than once counts once per copy. A GLB over 100 MB must not use Draco compression. The character must face +Z, the glTF forward direction; one that faces another axis can get a wrong skeleton even when the task succeeds, or fail with `422`. Required unless `input_task_id` is sent."
          },
          "animation_type": {
            "type": "string",
            "enum": [
              "biped",
              "quadruped"
            ],
            "default": "biped",
            "description": "The kind of character to rig, `biped` (a humanoid) or `quadruped` (a four-legged animal). A quadruped rig takes no `skeleton_template` or `include_fingers` set to `true` (each returns 400 `parameters_conflict`)."
          },
          "height_meters": {
            "type": "number",
            "format": "float",
            "minimum": 0,
            "description": "The model's height in meters. Meshy scales the rigged model to this height. Without it, or with 0, the model keeps its own size. A negative value returns 400."
          },
          "skeleton_template": {
            "type": "string",
            "enum": [
              "meshyrig",
              "mixamo",
              "ue5_mannequin",
              "max_biped",
              "unity_humanoid",
              "maya_human_ik",
              "blender_rigify_basic_human",
              "cc5_hd_neutral_base",
              "daz_genesis9"
            ],
            "default": "mixamo",
            "description": "The skeleton for the rigged character. If the model can't be rigged on it, the task fails. Animation tasks follow the rig's skeleton. Biped rigs only; a quadruped rig with it returns 400."
          },
          "include_fingers": {
            "type": "boolean",
            "default": false,
            "description": "Whether to add finger bones to the character's hands. A quadruped rig or a quad-topology input task returns 400."
          }
        }
      },
      "AnimationRequest": {
        "type": "object",
        "description": "Send `rig_task_id` and exactly one of `action_id`, `action_ids` or `motion_task_id`. Sending more than one returns 400; sending none returns 400 `action_id is required`.",
        "required": [
          "rig_task_id"
        ],
        "properties": {
          "rig_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A `SUCCEEDED` Rigging task of yours. An unknown rig returns 404 (code `input_task_not_found`); a rig that hasn't succeeded returns 400 (code `input_task_not_ready`), and another task type returns 400 (code `input_task_unsupported`)."
          },
          "action_id": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "maximum": 32767,
            "description": "One animation from the library, by its `action_id` (see `GET /v2/animations/library`). An ID that isn't in the library returns 400. The animation's `rig_type` must match the rig; another returns 400. A few library animations can't be applied to some `biped` rigs; those return 400 `This animation is no longer available`."
          },
          "action_ids": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "uniqueItems": true,
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 32767
            },
            "description": "Two to ten library animations, by `action_id`, with no repeats. They're joined into one file, in the order you send them, and each clip in it is named by the animation's `key`, such as `Big_Wave_Hello`. One ID works like `action_id`. Each animation's `rig_type` must match the rig; another returns 400."
          },
          "motion_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A `SUCCEEDED` Text to Motion task of yours, to play its clip on the character. The rig must be a `biped`. Use it within 3 days of the Text to Motion task finishing: after that its clip is deleted, like other task files, and this returns 404. Enterprise accounts keep their files."
          },
          "post_process": {
            "type": [
              "object",
              "null"
            ],
            "description": "One extra file to make from the animation's FBX, returned in the matching `output` field. With `motion_task_id`, the clip may come back as GLB only; then a `post_process` operation fails the task, and its credits are refunded.",
            "properties": {
              "operation_type": {
                "type": "string",
                "enum": [
                  "change_fps",
                  "fbx2usdz",
                  "extract_armature"
                ],
                "description": "`change_fps` makes an FBX at another frame rate (`output.processed_animation_fps_fbx_url`), `fbx2usdz` a USDZ file (`output.processed_usdz_url`), and `extract_armature` an FBX with the skeleton only (`output.processed_armature_fbx_url`). Without it, no extra file is made."
              },
              "fps": {
                "type": "integer",
                "enum": [
                  24,
                  25,
                  30,
                  60
                ],
                "default": 30,
                "description": "The frame rate for `change_fps`."
              }
            }
          }
        }
      },
      "TextToMotionRequest": {
        "type": "object",
        "required": [
          "prompt",
          "duration"
        ],
        "properties": {
          "prompt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 400,
            "description": "The motion to generate, up to 400 characters, such as `A person waves with the right hand, then takes a bow`. A prompt of only spaces returns 400 `prompt must not be empty`. Prompts in other languages are translated to English."
          },
          "duration": {
            "type": "number",
            "format": "float",
            "minimum": 2,
            "maximum": 10,
            "multipleOf": 0.5,
            "description": "The clip length in seconds, from 2 to 10 in steps of 0.5, such as `3` or `4.5`. Other values return 400 `duration must be between 2 and 10 seconds in 0.5 second steps`."
          },
          "mode": {
            "type": "string",
            "enum": [
              "prime",
              "swift"
            ],
            "default": "prime",
            "description": "The motion model: `prime` returns an FBX clip, and `swift` returns a BVH clip. The two modes cost different amounts."
          }
        }
      },
      "TextToImageRequest": {
        "type": "object",
        "description": "Text to Image request.",
        "required": [
          "ai_model",
          "prompt"
        ],
        "properties": {
          "ai_model": {
            "type": "string",
            "enum": [
              "nano-banana",
              "nano-banana-2",
              "nano-banana-2-lite",
              "nano-banana-2-1",
              "nano-banana-pro",
              "gpt-image-2",
              "gpt-image-2-5-flare",
              "gpt-image-2-5-sunburst",
              "gpt-image-2-6-flare",
              "gpt-image-2-6-sunburst"
            ],
            "description": "The image model. `nano-banana-2-1` costs 4 credits per request. `nano-banana-pro` needs a Pro plan or higher (`402` otherwise). `gpt-image-2` is OpenAI GPT Image 2; `gpt-image-2-5-flare` and `gpt-image-2-5-sunburst` are OpenAI GPT Image 2.5; `gpt-image-2-6-flare` and `gpt-image-2-6-sunburst` are OpenAI GPT Image 2.6. Names are case-sensitive; any other value returns `400`."
          },
          "prompt": {
            "type": "string",
            "minLength": 1,
            "description": "A description of the image to generate. A prompt of only whitespace returns `400`."
          },
          "aspect_ratio": {
            "type": "string",
            "enum": [
              "1:1",
              "16:9",
              "9:16",
              "4:3",
              "3:4",
              "3:2",
              "2:3"
            ],
            "default": "1:1",
            "description": "The image's shape. The `nano-banana` models take `1:1`, `16:9`, `9:16`, `4:3` and `3:4`; `3:2` and `2:3` return `400` for them. The GPT Image models take all seven. Can't be sent with `generate_multi_view: true` (`400`). With `pose_mode`, a `nano-banana` model always makes a `3:4` image, whatever this says."
          },
          "background": {
            "type": "string",
            "enum": [
              "transparent",
              "opaque"
            ],
            "default": "transparent",
            "description": "`transparent` removes the background and returns a transparent PNG; `opaque` returns the image with the background it was generated with. Multi-view images always have a transparent background: `opaque` with `generate_multi_view: true` returns `400` (`background cannot be opaque when generate_multi_view is true`)."
          },
          "generate_multi_view": {
            "type": [
              "boolean",
              "null"
            ],
            "default": false,
            "description": "Generate the subject from the front, the side and the back, returned as separate images with a transparent background in `output.image_urls`: usually three, fewer if the views can't all be separated (the task still succeeds). Leave `aspect_ratio` out when this is `true`, and don't send `background: opaque` with it."
          },
          "pose_mode": {
            "type": "string",
            "enum": [
              "a-pose",
              "t-pose"
            ],
            "description": "Generate a character standing in an A pose or a T pose. Leave it out for no pose. With any `nano-banana` model the image is always `3:4`, whatever `aspect_ratio` says; the GPT Image models keep your `aspect_ratio`. `nano-banana` then runs on `nano-banana-pro`, so a pose with `nano-banana` or `nano-banana-pro` needs a Pro plan or higher (`402` otherwise)."
          }
        }
      },
      "ImageToImageRequest": {
        "type": "object",
        "description": "Image to Image request. Send `reference_image_urls` or `input_task_id`; sending neither returns `400` (`Either reference_image_urls or input_task_id must be provided`). If you send both, `input_task_id` is used and `reference_image_urls` is ignored.",
        "required": [
          "ai_model",
          "prompt"
        ],
        "properties": {
          "reference_image_urls": {
            "type": "array",
            "minItems": 1,
            "maxItems": 5,
            "items": {
              "type": "string",
              "description": "A public http(s) URL or a base64 data URI (`data:image/png;base64,...`)."
            },
            "description": "One to five images to work from, used in order. Each must be a JPEG, PNG or WebP file (read from the content, not the extension) of up to 20 MB (20,000,000 bytes), at least 32 pixels on each side. An image that can't be downloaded or isn't supported returns `400` (code `input_download_failed` or `input_file_invalid`; the message names the image and why). An empty array also returns `400`."
          },
          "input_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A SUCCEEDED Text to Image or Image to Image task of yours, created with the API, whose images become the references. Every image it produced is used: one, or up to three for a multi-view task. A task that isn't yours or was deleted returns `404` (code `input_task_not_found`), and one past its retention period returns `404` (code `input_task_expired`); another task type, or a task that hasn't succeeded, returns `400`."
          },
          "ai_model": {
            "type": "string",
            "enum": [
              "nano-banana",
              "nano-banana-2",
              "nano-banana-2-lite",
              "nano-banana-2-1",
              "nano-banana-pro",
              "gpt-image-2",
              "gpt-image-2-5-flare",
              "gpt-image-2-5-sunburst",
              "gpt-image-2-6-flare",
              "gpt-image-2-6-sunburst"
            ],
            "description": "The image model. `nano-banana-2-1` costs 4 credits per request. `nano-banana-pro` needs a Pro plan or higher (`402` otherwise). `gpt-image-2` is OpenAI GPT Image 2; `gpt-image-2-5-flare` and `gpt-image-2-5-sunburst` are OpenAI GPT Image 2.5; `gpt-image-2-6-flare` and `gpt-image-2-6-sunburst` are OpenAI GPT Image 2.6. Names are case-sensitive; any other value returns `400`."
          },
          "prompt": {
            "type": "string",
            "minLength": 1,
            "description": "What to make from the reference images, such as `turn it into a clay figurine`. A prompt of only whitespace returns `400`."
          },
          "aspect_ratio": {
            "type": "string",
            "enum": [
              "1:1",
              "16:9",
              "9:16",
              "4:3",
              "3:4",
              "3:2",
              "2:3"
            ],
            "default": "1:1",
            "description": "The image's shape. The `nano-banana` models take `1:1`, `16:9`, `9:16`, `4:3` and `3:4`; `3:2` and `2:3` return `400` for them. The GPT Image models take all seven. Can't be sent with `generate_multi_view: true` (`400`). The result doesn't follow the shape of the reference images, so set this to match them if you need to."
          },
          "background": {
            "type": "string",
            "enum": [
              "transparent",
              "opaque"
            ],
            "default": "transparent",
            "description": "`transparent` removes the background and returns a transparent PNG; `opaque` returns the image with the background it was generated with. Multi-view images always have a transparent background: `opaque` with `generate_multi_view: true` returns `400` (`background cannot be opaque when generate_multi_view is true`)."
          },
          "generate_multi_view": {
            "type": [
              "boolean",
              "null"
            ],
            "default": false,
            "description": "Generate the subject from the front, the side and the back, returned as separate images with a transparent background in `output.image_urls`: usually three, fewer if the views can't all be separated (the task still succeeds). Leave `aspect_ratio` out when this is `true`, and don't send `background: opaque` with it."
          }
        }
      },
      "PrintMultiColorRequest": {
        "type": "object",
        "description": "Multi-Color Print request. Send `input_task_id` or `model_url`. Sending both returns `400` (`parameters_conflict`). Sending neither returns `400` with code `parameter_missing`.",
        "properties": {
          "input_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A SUCCEEDED task of yours, created with the API, that produced a 3D model, such as Text to 3D, Image to 3D, Retexture or Remesh. Multi-Color Print reads the task's GLB, which can have at most 8,000,000 faces. A task that isn't yours or doesn't exist returns `404` (code `input_task_not_found`); a bas-relief task returns `403`; a task not created with the API, not succeeded, without a GLB, or whose GLB was deleted returns `400`."
          },
          "model_url": {
            "type": "string",
            "description": "The model to print, as a public URL of a `.glb` or `.fbx` file, or a base64 data URI of a GLB file (`data:model/gltf-binary;base64,...`), up to 400 MB from a URL or 100 MB as a `data:` URI. A file over 100 MB can have at most 8,000,000 faces, counted as triangles (a quad counts as 2, and a mesh drawn more than once counts once per copy); over 100 MB, an FBX file must be binary FBX 7.1 or newer, and a GLB file must not use Draco compression. Any other extension, a file that can't be downloaded, or one that's too large, has too many faces, or has a header that can't be read or is too complex to check returns `400`. The 3MF file keeps the upload's size."
          },
          "max_colors": {
            "type": "integer",
            "minimum": 1,
            "maximum": 16,
            "default": 4,
            "description": "The most colors in the printed model."
          },
          "style": {
            "type": "string",
            "enum": [
              "realistic",
              "cartoon"
            ],
            "default": "realistic",
            "description": "How colors are placed on the model. `realistic` samples the texture for fine detail and makes a larger file; it needs one base color texture, with UVs, on every part of the model. `cartoon` makes flat, uniform color regions and a smaller file, and also works with vertex colors."
          },
          "max_depth": {
            "type": "integer",
            "minimum": 3,
            "maximum": 6,
            "default": 4,
            "description": "How finely the texture is sampled onto the mesh. Higher values keep finer color detail and make a larger file. Only used with `realistic`."
          },
          "printer_brand": {
            "type": "string",
            "enum": [
              "bambu",
              "anycubic",
              "creality",
              "flashforge",
              "snapmaker",
              "elegoo",
              "prusa",
              "qidi",
              "ankermake"
            ],
            "default": "bambu",
            "description": "The printer brand whose slicer preset is saved in the 3MF, so the file opens with a matching printer, filament and process profile. Each brand uses its default printer with a 0.4 mm nozzle. Left out, the 3MF carries the Bambu Lab preset."
          }
        }
      },
      "PrintRepairRequest": {
        "type": "object",
        "description": "Repair Printability request. Send `input_task_id` or `model_url`; sending neither returns `400` (`Either input_task_id or model_url is required`). Sending both returns `400` (`parameters_conflict`). Every repair checks for thin walls: when more than 5% of the surface is thinner than the printer's thinnest printable wall, the walls are thickened and the repaired model has about 1,000,000 faces; otherwise only the geometry is repaired. Send `printer_type`, a size, or both to judge walls at your own print. The size only sets how big the print will be; the model isn't scaled. To scale the repaired model, send the repair task as `input_task_id` to `POST /openapi/v2/resize`, which takes sizes in meters (100 mm is `0.1`). With no size, the print is checked at 150 mm tall for a task or a `.glb` file, at 150 mm on the longest side for `.obj`, `.fbx` and `.gltf` files, and at an `.stl` file's own size read in millimeters, or 150 mm on the longest side if that size can't be read or is outside 1 to 1000 mm. When a 150 mm tall print can't be worked out (the model can't be measured, or its longest side would be over 1000 mm), 150 mm on the longest side is used.",
        "properties": {
          "input_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A SUCCEEDED task of yours, created with the API, that has a GLB model, such as Text to 3D, Image to 3D, Remesh or Retexture. An Analyze Printability task works too, if it analyzed a task or a `.glb` or `.obj` file; the repair uses that analysis's printer type and print size unless you send your own, and the defaults if the analysis checked no print size. A task that isn't yours or doesn't exist returns `404` (code `input_task_not_found`); a bas-relief task returns `403`; a task not created with the API, not succeeded, without a GLB, or whose GLB was deleted (code `input_task_expired`) returns `400`."
          },
          "model_url": {
            "type": "string",
            "description": "The model to repair, as a public URL of a `.glb`, `.stl`, `.obj`, `.fbx` or `.gltf` file, or a base64 data URI of a GLB or glTF file (`data:model/gltf-binary;base64,...`), up to 400 MB from a URL or 100 MB as a `data:` URI. A GLB, glTF, FBX, or OBJ file over 100 MB can have at most 10,000,000 faces. Faces are counted as triangles (a quad counts as 2), and a mesh drawn more than once counts once per copy. Over 100 MB, an FBX file must be binary FBX 7.1 or newer, and a GLB or glTF file must not use Draco compression. An `.fbx` data URI returns `400`: send an `.fbx` as a URL. A Meshy download URL is signed and stops working at its task's `expires_at`; reading the task again doesn't renew it, so send that task as `input_task_id` or send your own copy."
          },
          "thumbnail_resolution": {
            "type": "integer",
            "enum": [
              512,
              1024
            ],
            "default": 512,
            "description": "The width and height, in pixels, of the task's preview images: `512` or `1024`. It applies to `output.thumbnail_url` and to any optional preview you request. Any other value returns `400`."
          },
          "printer_type": {
            "type": "string",
            "enum": [
              "fdm",
              "sla",
              "full_color"
            ],
            "default": "fdm",
            "description": "The printer, which sets the thinnest wall that prints: `fdm` (1.0 mm), `sla` (0.8 mm) or `full_color` (2.0 mm). Any other value returns `400` (`unknown printer type \"<value>\"`)."
          },
          "intended_print_height_mm": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 1,
            "maximum": 1000,
            "description": "The print's height in millimeters, rounded to a whole millimeter. Only GLB input has a known up direction (any `input_task_id`, or a `.glb` `model_url`); a height for another `model_url` format returns `400`, so use `intended_print_longest_side_mm` there. A height that puts the input task's longest side outside 1 to 1000 mm returns `400`. For a model wider or deeper than it is tall, a height near 1000 mm can fail even though it is within range; to make the longest side close to 1000 mm, use `intended_print_longest_side_mm`. Send this or `intended_print_longest_side_mm`, not both (`400`)."
          },
          "intended_print_longest_side_mm": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 1,
            "maximum": 1000,
            "description": "The print's longest side in millimeters, rounded to a whole millimeter, for any input format. Send this or `intended_print_height_mm`, not both (`400`)."
          }
        }
      },
      "PrintAnalyzeRequest": {
        "type": "object",
        "description": "Analyze Printability request. Send `input_task_id` or `model_url`; sending neither returns `400` (`Either input_task_id or model_url must be provided`). Sending both returns `400` (`parameters_conflict`). Every analysis checks for walls too thin to print. Send `printer_type`, a size, or both to judge walls at your own print. The size only sets how big the print will be; the model isn't scaled, and the analysis stays free. With no size, the print is checked at 150 mm tall for a task or a `.glb` file, at 150 mm on the longest side for `.obj`, `.fbx` and `.gltf` files, and at an `.stl` file's own size read in millimeters, or 150 mm on the longest side if that size can't be read or is outside 1 to 1000 mm. When a 150 mm tall print can't be worked out (the model can't be measured, or its longest side would be over 1000 mm), 150 mm on the longest side is used.",
        "properties": {
          "input_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A SUCCEEDED task of yours, or a task in a workspace you belong to, made with Meshy 5.3 or a newer Meshy model, including Smart Topology. That covers Text to 3D, Image to 3D, Multi-Image to 3D and Retexture tasks, and Remesh tasks of those. A Repair Printability task works too. A task with no Meshy model behind it, such as Convert, Resize, Multi-Color Print, or a Remesh of an uploaded file, returns `404` (`Printability not available for this model`). An unknown task and someone else's task outside your workspaces both return `404` (code `input_task_not_found`), a bas-relief task returns `403`, and a task that hasn't succeeded returns `400` (code `input_task_not_ready`)."
          },
          "model_url": {
            "type": "string",
            "description": "The model to analyze, as a public URL whose path ends in `.glb`, `.stl`, `.obj`, `.fbx` or `.gltf`, or a base64 data URI of a GLB or glTF file (`data:model/gltf-binary;base64,...` or `data:model/gltf+json;base64,...`; any other data URI returns `400`), up to 400 MB from a URL, downloaded within 120 seconds, or 100 MB as a `data:` URI. A GLB, glTF, FBX, or OBJ file over 100 MB can have at most 10,000,000 faces. Faces are counted as triangles (a quad counts as 2), and a mesh drawn more than once counts once per copy. Over 100 MB, an FBX file must be binary FBX 7.1 or newer, and a GLB or glTF file must not use Draco compression. A Meshy download URL is signed and stops working at its task's `expires_at`; reading the task again doesn't renew it, so send that task as `input_task_id` or send your own copy."
          },
          "printer_type": {
            "type": "string",
            "enum": [
              "fdm",
              "sla",
              "full_color"
            ],
            "default": "fdm",
            "description": "The printer, which sets the thinnest wall that prints: `fdm` (1.0 mm), `sla` (0.8 mm) or `full_color` (2.0 mm). Any other value returns `400` (`unknown printer type \"<value>\"`)."
          },
          "intended_print_height_mm": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 1,
            "maximum": 1000,
            "description": "The print's height in millimeters, rounded to a whole millimeter. Only GLB input has a known up direction (any `input_task_id`, or a `.glb` `model_url`); a height for another `model_url` format returns `400`, so use `intended_print_longest_side_mm` there. A height that puts the model's longest side outside 1 to 1000 mm returns `400`. For a model wider or deeper than it is tall, a height near 1000 mm can fail even though it is within range; to make the longest side close to 1000 mm, use `intended_print_longest_side_mm`. Send this or `intended_print_longest_side_mm`, not both (`400`)."
          },
          "intended_print_longest_side_mm": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 1,
            "maximum": 1000,
            "description": "The print's longest side in millimeters, rounded to a whole millimeter, for any input format. Send this or `intended_print_height_mm`, not both (`400`)."
          }
        }
      },
      "PrintSplitRequest": {
        "type": "object",
        "description": "Auto Split request.",
        "required": [
          "input_task_id"
        ],
        "properties": {
          "input_task_id": {
            "type": "string",
            "format": "uuid",
            "description": "A SUCCEEDED task of yours whose model to split: Image to 3D, Multi-Image to 3D, Text to 3D (a preview, refine, or one-call task), or a Retexture, Remesh, Convert or Resize of one of those. The model must be generated with Meshy 6 or Meshy 7, including `meshy-6-lite`. Smart Topology models return `400`, and so does a Retexture, Remesh, Convert or Resize of an uploaded model: pass the generation task instead. It can have at most 8,000,000 faces. A textured model is accepted; its texture stays on the parts only with `keep_texture: true`. A task that isn't yours or doesn't exist returns `404` (code `input_task_not_found`); a bas-relief task returns `403`."
          },
          "mode": {
            "type": "string",
            "enum": [
              "auto",
              "by_parts",
              "by_color"
            ],
            "default": "auto",
            "description": "How to divide the model. `auto`: Meshy chooses the cuts. `by_parts`: cut into the parts you name in `prompt`, such as head, torso and legs. `by_color`: cut along the color regions you name in `prompt`; the regions come from the image the model was generated from, so the input must come from Image to 3D or Multi-Image to 3D (the first image is used), else `400`."
          },
          "prompt": {
            "type": "string",
            "maxLength": 600,
            "description": "The parts to split into, in any language, such as `head, torso, left arm, right arm, legs`. Required when `mode` is `by_parts` or `by_color` (`400` if missing or blank); not used with `auto`, though the 600-character limit still applies. Name 1 to 10 parts. If the parts you name don't cover the whole model, the rest becomes one more part, which counts toward the 10. A prompt that asks for no split or names more than 10 parts returns `400`. If Meshy can't find any part in the prompt, it splits the model into the parts it identifies in the model's reference image instead, in the same mode, still charges the task, and sets `prompt_ignored: true`; with no reference image, or fewer than 2 parts found in it, the request returns `400` (`Could not understand the split description`). Nothing is charged for a `400`. A prompt blocked by content moderation returns `403`. Prompts are limited to 12 per minute per user, shared with splits made in the Meshy web app (`429`)."
          },
          "target_formats": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "glb",
                "obj",
                "fbx",
                "stl",
                "usdz",
                "blend",
                "3mf"
              ]
            },
            "default": [
              "glb"
            ],
            "description": "The formats to export, in addition to `glb`, which always comes back. Duplicates are dropped. In `3mf`, each part is its own object, ready for a slicer. `stl` can't hold separate objects, so it fuses the parts into one solid. An STL or 3MF file longer than 150 mm on its longest side is scaled down to 150 mm; a smaller model keeps its size."
          },
          "layout": {
            "type": "string",
            "enum": [
              "assembled",
              "on_plate"
            ],
            "default": "assembled",
            "description": "How the parts are arranged in every file and in the preview. `assembled`: the parts stay where they were in the model. `on_plate`: the parts are laid flat and spread out on a build plate, ready to slice; an `obj` file in this layout is Z-up, in millimeters, and also scaled to at most 150 mm on its longest side."
          },
          "keep_texture": {
            "type": "boolean",
            "default": false,
            "description": "Whether to keep the input model's texture on the parts. `true` gives every part the input's texture and lists the maps in `output.texture_urls`; `glb`, `fbx`, `usdz` and `blend` hold it, an `obj` comes with an `mtl`, and `stl` and `3mf` hold geometry only. It takes about twice as long, and the credit cost doesn't change. An untextured input splits as with `false`. If Meshy can't keep the texture, the task fails with `task_error.code` `textured_split_refused`. `false` gives each part a flat color."
          },
          "connectors": {
            "type": "boolean",
            "default": false,
            "description": "Add mortise-and-tenon connectors at each cut so the printed parts fit together. If Meshy can't place them, the split still succeeds without them, and the response doesn't say so."
          },
          "connector_type": {
            "type": "string",
            "enum": [
              "cube",
              "cylinder"
            ],
            "default": "cube",
            "description": "The connector's shape. Only used when `connectors` is `true`."
          },
          "connector_size": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0.1,
            "maximum": 0.8,
            "default": 0.5,
            "description": "The connector's size, as a fraction of the widest circle that fits in the cut face. Only used when `connectors` is `true`, but checked even when it is `false`."
          },
          "connector_height": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0.1,
            "maximum": 0.8,
            "default": 0.1,
            "description": "How far the connector sticks out of the cut, in the model's own units (those of the `glb`). Only used when `connectors` is `true`, but checked even when it is `false`."
          }
        }
      },
      "ReliefRequest": {
        "type": "object",
        "description": "Relief request. `base_thickness_mm` must be `0.1` to `10`, or omitted or `0` with `remove_base` `true`; anything else returns `400`.",
        "required": [
          "image_url"
        ],
        "properties": {
          "image_url": {
            "type": "string",
            "description": "The photo to turn into a relief, as a public http(s) URL or a data URI (`data:image/png;base64,...`). JPG, JPEG, PNG, or WebP, up to 20 MB and at least 32 x 32 pixels, with the longer side at most about 16 times the shorter side; any other image returns `400`. Transparent areas are filled with black."
          },
          "variant": {
            "type": "string",
            "enum": [
              "high",
              "low"
            ],
            "default": "low",
            "description": "The relief style; it shapes the depth map and sets the default `carving_depth_mm`. `high`: deeper carving, for 3D-printed pieces. `low`: shallow carving, for laser engraving, CNC carving and thin plaques. Any other non-empty value returns `400`."
          },
          "should_generate_model": {
            "type": "boolean",
            "default": true,
            "description": "Whether to build the relief model. `false` makes the depth map only, with `model_urls` `{}` and `thumbnail_url` `null`. The geometry parameters are still checked, but unused. It doesn't change the credit cost."
          },
          "size_mm": {
            "type": "number",
            "minimum": 20,
            "maximum": 250,
            "default": 60,
            "description": "The length of the photo's longer side on the model, measured flat before any bend, in millimeters. With `remove_base`, the model can be smaller."
          },
          "carving_mode": {
            "type": "string",
            "enum": [
              "emboss",
              "engrave"
            ],
            "default": "emboss",
            "description": "`emboss`: the nearer parts of the photo stand out. `engrave`: the depth is inverted, so the nearer parts are cut in. The depth map is the same in both modes."
          },
          "carving_depth_mm": {
            "type": "number",
            "minimum": 0,
            "maximum": 60,
            "description": "How deep the relief is carved, in millimeters. Defaults to `6` for `high` and `3` for `low`. With `remove_base` `true`, `0` leaves an empty model; the task still succeeds and is charged."
          },
          "remove_base": {
            "type": "boolean",
            "default": false,
            "description": "Whether to cut away the background below `removal_threshold` and build no base plate."
          },
          "removal_threshold": {
            "type": "number",
            "minimum": 0.01,
            "maximum": 1,
            "default": 0.01,
            "description": "The depth below which `remove_base` cuts the background away, where the depth map runs from `0` to `1`. Only used when `remove_base` is `true`, but checked even when it is `false`. A high value can cut away the whole relief and leave an empty model; the task still succeeds and is charged."
          },
          "base_thickness_mm": {
            "type": "number",
            "minimum": 0,
            "maximum": 10,
            "description": "The thickness of the base plate, from `0.1` to `10` millimeters. Defaults to `1`, or `0` with `remove_base` `true`. With `remove_base` `true`, leave it out or send `0`; any other value returns `400`."
          },
          "bend_mode": {
            "type": "string",
            "enum": [
              "off",
              "convex",
              "concave"
            ],
            "default": "off",
            "description": "Whether to bend the relief. `off`: flat. `convex`: the front bulges outward. `concave`: the front curves inward."
          },
          "bend_axis": {
            "type": "string",
            "enum": [
              "xz",
              "yz"
            ],
            "default": "xz",
            "description": "Which edges the bend curls. `xz`: the left and right edges. `yz`: the top and bottom edges. Only used when `bend_mode` isn't `off`, but checked even when it is `off`."
          },
          "bend_angle": {
            "type": "number",
            "minimum": 0,
            "maximum": 360,
            "default": 60,
            "description": "The arc the bend spans, in degrees. Below `1`, the relief stays flat. Only used when `bend_mode` isn't `off`, but checked even when it is `off`."
          },
          "mesh_resolution": {
            "type": "integer",
            "minimum": 512,
            "maximum": 2048,
            "default": 1024,
            "description": "The number of mesh points along the photo's longer side. A higher value keeps finer detail and makes larger files. At the default `1024`, the GLB file is about 40 to 50 MB and the STL file about 80 to 105 MB, and a square photo gives the larger sizes; at `2048`, about 150 MB and 300 MB. A bend makes them larger, and the STL file can reach about 800 MB at `2048`."
          },
          "target_formats": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "glb",
                "obj",
                "fbx",
                "stl",
                "usdz",
                "3mf"
              ]
            },
            "default": [
              "glb"
            ],
            "description": "The file formats to generate and return in `model_urls`; listing fewer can shorten the task. An `obj` comes with an `mtl`. STL and 3MF files keep the relief's real size."
          },
          "color_mapping": {
            "type": "boolean",
            "default": false,
            "description": "Whether to color the model with the photo. The GLB, OBJ, FBX, and USDZ files carry color. STL and 3MF files stay white. The texture is returned in `output.texture_urls`."
          }
        }
      }
    }
  }
}
