> **Reading as an AI agent?** This is the Markdown version of https://docs.meshy.ai/api/v2/analyze-printability, part of the Meshy API v2 docs.
>
> - v2 docs index: https://docs.meshy.ai/api/v2/llms.txt
> - All v2 pages in one file: https://docs.meshy.ai/api/v2/llms-full.txt
> - OpenAPI spec for v2: https://docs.meshy.ai/api/v2/openapi.yaml

---

# Analyze Printability API

Check a 3D model for problems that stop it from printing, such as holes, non-manifold edges, degenerate faces, and walls too thin for your printer. Analysis is free.

> **Note:** Moving from v1? The request is the same, and analysis is still free. The main changes for Analyze Printability:
>   * v2 checks wall thickness by default, for an FDM print 150 mm tall, so `printability` always has `intended_print` and `thin_walls`.
>   * `printability` is in `output`.
>   * There is no `_version` field.
>   * `metrics` and `evaluated_at` are always present.
>   * If Meshy already has the result, the create response is already `SUCCEEDED`. Check `status` before you poll.
>
>   See [what changed for the other endpoints](/api/migrate-to-v2/reference#other-endpoints).

---

## POST /openapi/v2/print/analyze -- Create an Analyze Printability task

Creates an Analyze Printability task and returns the [task object](https://docs.meshy.ai/api/v2/tasks.md#the-task-object). The task runs in the background. To read its result, see [Get the result](#get-the-result). For how long a task usually takes, see [Processing times](/api/task-lifecycle#processing-times).

Analysis is free and works on every plan.

The analysis doesn't change the model. To fix what it finds, use [Repair Printability](https://docs.meshy.ai/api/v2/repair-printability.md). If this task analyzed a task or a GLB or OBJ file, you can send its `id` to Repair Printability as `input_task_id`. The repair then uses the printer type and print size of this analysis.

When Meshy already has the result for an `input_task_id`, the create response is already `SUCCEEDED`, with the result in `output` and no `Retry-After` header. Meshy still sends the webhook. This happens only when Meshy already checked the same model at the same printer type and print size, for example in the web app's Print Check. Check `status` on every create response before you poll.

### Parameters

  - `input_task_id` · *string* · **required**

  Required unless you send `model_url`. The ID of the task whose model to analyze. The task must have the status `SUCCEEDED`, and be one of yours or in a workspace you belong to.

  The model must come from Meshy 6 or a newer Meshy model, including Smart Topology. These tasks work:
  * Text to 3D
  * Image to 3D
  * Multi-Image to 3D
  * Retexture
  * Remesh of one of the preceding tasks
  * Repair Printability

  A task without a Meshy model behind it returns `404`, for example Convert, Resize, Multi-Color Print, or a Remesh of an uploaded file.

  - `model_url` · *string* · **required**

  Required unless you send `input_task_id`. The model to analyze, as a public URL or a data URI (`data:model/gltf-binary;base64,...`). Sending both `input_task_id` and `model_url` returns `400`.

  A URL must point to a GLB, STL, OBJ, FBX, or glTF file of at most 400 MB. A data URI must hold a GLB or glTF file of at most 100 MB. A larger file returns `400`.

  A GLB, glTF, FBX, or OBJ file over 100 MB can have at most 10,000,000 faces. Meshy counts faces as triangles, so 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 file that breaks these rules returns `400`.

  A Meshy download URL, from the `output` of one of your tasks, is signed and stops working at that task's `expires_at`. Reading the task again doesn't renew it. For a model you made with Meshy, send `input_task_id` instead, which works for as long as Meshy keeps the task's files (see [Asset retention](https://docs.meshy.ai/api/v2/asset-retention.md)). To use the model after that, download it before `expires_at` and send your own copy.

Meshy also checks for walls too thin to print. To judge the walls at your own print, send a printer type, a print size, or both. Without them, Meshy uses `fdm` and a default print size that depends on the format. The size tells Meshy how big you plan to print the model. Meshy doesn't scale the model to it.

  - `printer_type` · *string* · default: `fdm`

  The printer you plan to use. It sets the thinnest wall that prints.

  Available values:
  * `fdm`: 1.0 mm
  * `sla`: 0.8 mm
  * `full_color`: 2.0 mm

  Any other value returns `400`.

  - `intended_print_height_mm` · *number*

  The height of the print, in millimeters, from `1` to `1000`. A value outside this range returns `400`. Send this or `intended_print_longest_side_mm`, not both. Sending both returns `400`.

  For `model_url`, only a GLB file has a known up direction. A height with another format returns `400`, so send `intended_print_longest_side_mm` instead.

  Meshy also checks the print's longest side. It uses the model's proportions to calculate that length at the specified height, and the result must be from 1 to 1,000 mm. If the model is wider or deeper than it is tall, a height near 1,000 mm can fail even though the height itself is within range. To make the print's longest side close to 1,000 mm, use `intended_print_longest_side_mm` instead.

  If Meshy can't convert the height for the model, send `intended_print_longest_side_mm` instead. For an `input_task_id` model whose size Meshy already knows, the request returns `400`. For a GLB `model_url`, or a model whose size Meshy doesn't know yet, Meshy converts the height while the task runs. If that fails, the task fails with `task_error.type` set to `invalid_input`.

  - `intended_print_longest_side_mm` · *number*

  The length of the print's longest side, in millimeters, from `1` to `1000`. A value outside this range returns `400`. It works with every input format.

If you send no size, Meshy uses this print size:
* 150 mm tall, for a task or a GLB file
* 150 mm on the longest side, for an OBJ, FBX, or glTF file
* The STL file's own size, read in millimeters. If Meshy can't read it, or it's outside 1 to 1,000 mm, Meshy uses 150 mm on the longest side.

If Meshy can't work out a 150 mm tall print for a model, it uses 150 mm on the longest side. This happens when Meshy can't measure the model, or when 150 mm tall would make its longest side over 1,000 mm.

Meshy rounds sizes to whole millimeters.

### Returns

`202 Accepted` with the [task object](https://docs.meshy.ai/api/v2/tasks.md#the-task-object), with your request in `input` and `consumed_credits` set to `0`.

In most cases, the task starts as `PENDING`, with `output` set to `null`. When Meshy already has the result, the task is already `SUCCEEDED`, with the result in `output`.

Two response headers help you read the task:
* `Location`: the task's URL on [Tasks](https://docs.meshy.ai/api/v2/tasks.md#how-a-task-runs), whatever the status
* `Retry-After`: how many seconds to wait before you first read the task. A task that's already `SUCCEEDED` has no `Retry-After`.

### Failure modes

  - `400 - Bad Request`

  The request can't run. For example:
  * Neither `input_task_id` nor `model_url` was sent (`Either input_task_id or model_url must be provided`).
  * Both `input_task_id` and `model_url` were sent (`Send either "input_task_id" or "model_url", not both.`).
  * The input task hasn't succeeded (code `input_task_not_ready`). Wait for it to succeed, then retry.
  * `model_url` has an unsupported extension or is too large.
  * `model_url` can't be downloaded (code `input_download_failed`), most often because it's a Meshy download URL past its `expires_at`. Reading the task again returns the same URL, so send `input_task_id` while Meshy keeps the task's files, or your own copy of the file.
  * A `model_url` file over 100 MB has too many faces (`model has too many faces: <N> faces, the limit for files over 100 MB is <limit>`). Reduce the face count, then send the file again.
  * An FBX file over 100 MB is ASCII (`ASCII FBX files over 100 MB are not supported; use binary FBX or GLB`). Send it as binary FBX or GLB.
  * A file over 100 MB has a header Meshy can't read, such as a Draco-compressed GLB or glTF, or a binary FBX older than 7.1 (`invalid model file content`).
  * A file over 100 MB has a header too complex to check (`model header is too complex to check for files over 100 MB`).
  * Both print sizes were sent.
  * `printer_type` isn't `fdm`, `sla`, or `full_color`.
  * A height was sent with a `model_url` that isn't a GLB file.
  * Meshy can't convert the height for an `input_task_id` model whose size it already knows. Send `intended_print_longest_side_mm` instead.

  The error message says which problem it found. See [Errors](https://docs.meshy.ai/api/v2/errors.md#request-errors).

  - `401 - Unauthorized`

  The API key is missing or invalid. Check the `Authorization` header.

  - `403 - Forbidden`

  `input_task_id` is a bas-relief model, which this endpoint can't analyze. The message is `This model type does not support this operation`. Send a different model.

  - `404 - Not Found`

  One of these applies:
  * `input_task_id` doesn't match any of your tasks, or any task in a workspace you belong to. The message is `input_task_id does not match any of your tasks`. Check the ID, and use an API key from the account that created the task, or one in the task's workspace.
  * Meshy can't analyze this kind of task. The message is `Printability not available for this model`. See `input_task_id` for the tasks that work.

  A task of yours past its [retention period](https://docs.meshy.ai/api/v2/asset-retention.md) returns the code `input_task_expired` instead.

  - `429 - Too Many Requests`

  One of these limits was reached:
  * You sent too many requests. Wait the number of seconds in `Retry-After`, then retry.
  * Too many of your tasks are queued or running. Wait for some to finish, then retry.
  * On an unlimited plan with no credits left, you reached the number of tasks that can run without credits. Wait for a task to finish, or add credits.

**cURL**

```bash
# Check a model file for an FDM print 150 mm tall
curl https://api.meshy.ai/openapi/v2/print/analyze \
  -X POST \
  -H "Authorization: Bearer ${MESHY_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "model_url": "https://cdn.meshy.ai/model/example_model_2.glb"
  }'

# Check a Meshy task as an 80 mm tall FDM print
curl https://api.meshy.ai/openapi/v2/print/analyze \
  -X POST \
  -H "Authorization: Bearer ${MESHY_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578",
    "printer_type": "fdm",
    "intended_print_height_mm": 80
  }'
```

```javascript
// Check a Meshy task for an FDM print 150 mm tall; it might already be done
const response = await fetch("https://api.meshy.ai/openapi/v2/print/analyze", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MESHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    input_task_id: "018a210d-8ba4-705c-b111-1f1776f7f578",
  }),
});
if (!response.ok) throw new Error(await response.text());
const task = await response.json();
if (task.status === "SUCCEEDED") {
  console.log(task.output.printability.status);
} else {
  console.log(task.id, task.status, "poll GET /openapi/v2/tasks/{id}");
}
```

```python
import os
import requests

# Check a Meshy task for an FDM print 150 mm tall; it might already be done
response = requests.post(
    "https://api.meshy.ai/openapi/v2/print/analyze",
    headers={"Authorization": f"Bearer {os.environ['MESHY_API_KEY']}"},
    json={"input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578"},
)
response.raise_for_status()
task = response.json()
if task["status"] == "SUCCEEDED":
    print(task["output"]["printability"]["status"])
else:
    print(task["id"], task["status"], "poll GET /openapi/v2/tasks/{id}")
```

**Response**

```json
{
  "id": "0199a8f6-3d27-7c2e-9b41-6e0c5d2f8a13",
  "type": "print-analyze",
  "status": "PENDING",
  "progress": 0,
  "created_at": 1790640079880,
  "started_at": null,
  "finished_at": null,
  "expires_at": null,
  "preceding_tasks": 1,
  "consumed_credits": 0,
  "task_error": null,
  "input": {
    "model_url": "https://cdn.meshy.ai/model/example_model_2.glb"
  },
  "output": null
}
```

---

## Get the result
Read Analyze Printability tasks the same way as every other v2 task, through the [Tasks](https://docs.meshy.ai/api/v2/tasks.md) routes. To list only Analyze Printability tasks, filter by `type=print-analyze`.

| To | Call |
| --- | --- |
| Get one task | [`GET /openapi/v2/tasks/{id}`](https://docs.meshy.ai/api/v2/tasks.md#get-a-task) |
| Wait for updates | [`GET /openapi/v2/tasks/{id}/stream`](https://docs.meshy.ai/api/v2/tasks.md#stream-a-task) or a [webhook](https://docs.meshy.ai/api/v2/webhooks.md) |
| List your tasks | [`GET /openapi/v2/tasks?type=print-analyze`](https://docs.meshy.ai/api/v2/tasks.md#list-tasks) |
| Delete a task | [`DELETE /openapi/v2/tasks/{id}`](https://docs.meshy.ai/api/v2/tasks.md#delete-a-task) |

---

## Analyze Printability output
When the task succeeds, `output` holds this field. The rest of the [task object](https://docs.meshy.ai/api/v2/tasks.md#the-task-object) is the same for every task type.

`output` has no file URLs. To print a repaired model, use the files of the [Repair Printability](https://docs.meshy.ai/api/v2/repair-printability.md) task.

  - `printability` · *object*

  The result of the analysis, with these fields:
  * `status`: the overall verdict. It's the worse of the mesh checks and `thin_walls.status`.
* `healthy`
* `warning`
* `error`
* `unknown`: Meshy couldn't evaluate the model
  * `error_count`: how many checks failed
  * `warning_count`: how many checks warned
  * `issue_count`: the sum of `error_count` and `warning_count`
  * `metrics`: the measurements, or `null` if Meshy couldn't compute them
* `is_watertight`: `true` if the mesh is watertight
* `volume`: the volume, in the model's own units cubed
* `non_manifold_edges`: the number of non-manifold edges
* `degenerate_faces`: the number of degenerate faces
* `holes`: the number of holes
  * `intended_print`: the print Meshy checked
* `printer_type`
* `height_mm`: `null` when the print is sized by its longest side
* `longest_side_mm`
* `wall_thickness_mm`: the thinnest wall that prints
* `dimensions_mm`: the print's `[width, depth, height]` in millimeters. `null` unless the model is a GLB.
  * `thin_walls`: the thin-wall check
* `thin_area_ratio`: the share of the surface thinner than `wall_thickness_mm`, from `0` to `1`. `null` if Meshy couldn't measure it.
* `has_thin_walls`: `true` if any spot is thinner than `wall_thickness_mm`. Even a sharp corner on a model that prints fine counts, so check `status` instead. `null` if Meshy couldn't measure it.
* `status`: `healthy` up to `0.05`, `error` above it, and `unknown` if Meshy couldn't measure it
  * `evaluated_at`: when Meshy evaluated the model, in Unix milliseconds. `null` if that wasn't recorded. For a result Meshy already had, it's the time of that earlier evaluation.

  A task created on v1 without a printer type or print size has no `intended_print` or `thin_walls`.

These checks count toward `error_count` and `warning_count`:

| Check | Warning | Error |
| --- | --- | --- |
| Holes | 1 to 8 | More than 8 |
| Not watertight | 8 holes or fewer | More than 8 holes |
| Non-manifold edges | 1 to 50 | More than 50 |
| Degenerate faces | 1 or more | |
| Volume | | 0 or less |
| Thin walls | | More than 5% of the surface |

**Succeeded Analyze Printability task, for an 80 mm tall FDM print**

```json
{
  "id": "0199a8f6-3d27-7c2e-9b41-6e0c5d2f8a13",
  "type": "print-analyze",
  "status": "SUCCEEDED",
  "progress": 100,
  "created_at": 1790640079880,
  "started_at": 1790640079884,
  "finished_at": 1790640085401,
  "expires_at": 1790899285401,
  "preceding_tasks": 0,
  "consumed_credits": 0,
  "task_error": null,
  "input": {
    "input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578",
    "printer_type": "fdm",
    "intended_print_height_mm": 80
  },
  "output": {
    "printability": {
      "status": "warning",
      "issue_count": 3,
      "error_count": 0,
      "warning_count": 3,
      "metrics": {
        "is_watertight": false,
        "volume": 0.1715,
        "non_manifold_edges": 6,
        "degenerate_faces": 4682,
        "holes": 0
      },
      "intended_print": {
        "printer_type": "fdm",
        "height_mm": 80,
        "longest_side_mm": 80,
        "wall_thickness_mm": 1,
        "dimensions_mm": [38.39, 17.32, 80]
      },
      "thin_walls": {
        "thin_area_ratio": 0.0139,
        "has_thin_walls": true,
        "status": "healthy"
      },
      "evaluated_at": 1790640085228
    }
  }
}
```
