> **Reading as an AI agent?** This is the Markdown version of https://docs.meshy.ai/api/repair-printability.
>
> - Full docs index: https://docs.meshy.ai/llms.txt
> - Single-fetch full content: https://docs.meshy.ai/llms-full.txt
> - Tool-calling access via MCP server: https://docs.meshy.ai/api/ai

---
# Repair Printability API

Repair a 3D model so it's ready to print. Meshy fixes non-manifold edges, degenerate faces, holes, and other topology issues. You can also thicken walls that are too thin at the size you plan to print.

---

## POST /openapi/v1/print/repair -- Create a Repair Printability task

Creates a Repair Printability task, which repairs a 3D model's topology and returns a watertight version ready to print. The task runs in the background. For how long a task usually takes, see [Processing times](/api/task-lifecycle#processing-times).

The repaired model has the same format as the input. For example, for an `.stl` file in `model_url`, `model_urls.stl` holds the repaired mesh, and `model_urls` has no other format keys. With `input_task_id`, Meshy always repairs the source task's GLB file, so the output is a `.glb` file.

Meshy removes the model's textures during repair, because the geometry changes. To add textures back, send the repaired model to the [Retexture API](/api/retexture).

### Parameters

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

  Required unless you send `model_url`. The ID of the task whose model you want to repair, for example an [Image to 3D](/api/image-to-3d), [Multi-Image to 3D](/api/multi-image-to-3d), [Text to 3D](/api/text-to-3d), [Remesh](/api/remesh), [Retexture](/api/retexture), or [Analyze Printability](/api/analyze-printability) task. The task must be one you created with the API, with the status `SUCCEEDED` and a GLB model.

  An Analyze Printability task that checked wall thickness also passes on its printer and size. The repair then checks wall thickness and thickens thin walls, even if you send neither. A `printer_type` or print size you send replaces the one from the analysis. An Analyze Printability task of an `.stl`, `.fbx`, or `.gltf` file from `model_url` doesn't work. Send that file as `model_url` instead.

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

  Required unless you send `input_task_id`. The model to repair, as a public URL or a data URI. If you send both, Meshy uses `input_task_id`.

  From an `http` or `https` URL, the model must be a `.glb`, `.gltf`, `.obj`, `.fbx`, or `.stl` file of at most 400 MB. A data URI can hold only a base64 GLB (`data:model/gltf-binary;base64,...`) or glTF (`data:model/gltf+json;base64,...`) file of at most 100 MB. Send an `.obj`, `.fbx`, or `.stl` file as an `http` or `https` URL.

  A file over 100 MB must also follow these rules:
  * A GLB, glTF, FBX, or OBJ file 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.
  * An FBX file must be binary FBX 7.1 or newer.
  * A GLB or glTF file must not use Draco compression.

  A Meshy download URL (`assets.meshy.ai/…?Expires=…&Signature=…`) is signed and stops working at its 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 while Meshy keeps the source task (see [Asset retention](/api/asset-retention)). To use the model after that, download it before `expires_at` and send your own copy.

  - `alpha_thumbnail` · *boolean* · default: `false`

  Whether to also render a preview with a transparent background (RGBA), returned in `alpha_thumbnail_url` when you get the task. `thumbnail_url` doesn't change.

To also thicken walls that are too thin at the size you plan to print, send `printer_type`, a print size, or both. Meshy thickens the walls only when more than 5% of the surface is too thin for that printer. The repaired model keeps its original scale. To scale it, use the [Resize API](/api/resize), which takes sizes in meters, so 100 mm is `0.1`.

  - `printer_type` · *string*

  The printer you plan to use. It sets the minimum wall thickness the repair aims for. If you send a print size without `printer_type`, Meshy uses `fdm`, unless an Analyze Printability task in `input_task_id` supplies the printer.

  Available values:
  * `fdm`: filament, 1.0 mm minimum wall
  * `sla`: resin, 0.8 mm minimum wall
  * `full_color`: full-color, 2.0 mm minimum wall

  Any other value returns `400`.

  - `intended_print_height_mm` · *number*

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

  It works only with GLB input. For a `model_url` that isn't a `.glb` file, send `intended_print_longest_side_mm` instead.

  - `intended_print_longest_side_mm` · *number*

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

If you send `printer_type` without a size, and Meshy reuses no size from an Analyze Printability task, Meshy uses this print size:
* `.glb` file or any `input_task_id`: 150 mm tall
* `.stl` file: the file's own longest side, read as millimeters
* `.obj`, `.fbx`, or `.gltf` file: 150 mm on the longest side

For an STL file in other units, send `intended_print_longest_side_mm`.

Meshy rounds both print sizes to the nearest millimeter.

### Returns

The `result` field of the response holds the ID of the new Repair Printability task.

### Failure modes

  - `400 - Bad Request`

  The request can't run. The error message says which problem it found. For example:
  * **Missing parameter**: Neither `input_task_id` nor `model_url` was sent.
  * **Invalid UUID**: `input_task_id` isn't a valid UUID.
  * **Invalid model URL**: `model_url` is malformed, uses an unsupported scheme, or has an unsupported file extension.
  * **Model file too large**: The `model_url` file is over 400 MB from an `http` or `https` URL, or over 100 MB as a data URI.
  * **Too many faces**: The `model_url` file is a GLB, glTF, FBX, or OBJ file over 100 MB with more than 10,000,000 faces. Reduce the face count, then send the file again.
  * **ASCII FBX over 100 MB**: The `model_url` file is an ASCII FBX over 100 MB. Send it as binary FBX or GLB.
  * **Unreadable model file**: The `model_url` file is over 100 MB, and Meshy can't read its header. For example, it's a Draco-compressed GLB or glTF, or a binary FBX older than 7.1.
  * **Model header too complex**: The `model_url` file is over 100 MB, and its header has too many meshes, nodes, or records to check. Reduce the number of objects in the file, then send it again.
  * **Model file can't be downloaded**: `model_url` returned an error, most often because a signed Meshy download URL expired. Reading the task again returns the same URL with the same expiry. Send your own copy of the file, or send `input_task_id` while Meshy keeps the source task.
  * **Task not succeeded**: The `input_task_id` task is still pending, in progress, or failed.
  * **Missing GLB**: The `input_task_id` task has no GLB model to repair.
  * **Invalid print size**: `intended_print_height_mm` or `intended_print_longest_side_mm` is outside `1` to `1000`, or the request has both.
  * **Unknown printer type**: `printer_type` isn't `fdm`, `sla`, or `full_color`.
  * **Height on a non-GLB model**: The request has `intended_print_height_mm` and a `model_url` that isn't a `.glb` file. Send `intended_print_longest_side_mm` instead.
  * **Can't size this model by height**: At the requested height, or the default 150 mm, the model's longest side would be outside 1 to 1,000 mm. It also happens when the model is flat, or when Meshy can't determine its size. Send `intended_print_longest_side_mm` instead. For a `.glb` `model_url` and some `input_task_id` tasks, Meshy finds this only after the task starts, and the task ends as `FAILED` instead.
  * **STL size unusable**: The request has `printer_type` without a size, and Meshy can't read the `.stl` file's own longest side, or it's outside 1 to 1,000 mm. Send `intended_print_longest_side_mm`.

  Fix the request, then send it again. See [Errors](/api/errors#request-errors).

  - `401 - Unauthorized`

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

  - `402 - Payment Required`

  For example:
  * **Insufficient credits**: The account doesn't have enough credits for this task, or the account reached a credit limit. Check your credit balance, then retry.
  * **Free plan**: Creating a task requires a paid plan. Upgrade your plan in your [subscription settings](https://www.meshy.ai/settings/subscription), then retry.

  - `403 - Forbidden`

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

  - `404 - Not Found`

  The `input_task_id` task doesn't exist or belongs to another user. Check the ID, and use an API key from the account that created the task.

  - `429 - Too Many Requests`

  You exceeded your rate limit, or you have too many pending tasks. Wait, then retry. See [Rate limits](/api/rate-limits).

  **cURL**

  ```bash
  # Repair an existing task
  curl https://api.meshy.ai/openapi/v1/print/repair \
  -X POST \
  -H "Authorization: Bearer ${YOUR_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
      "input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578"
    }'

  # Or repair a model URL directly
  curl https://api.meshy.ai/openapi/v1/print/repair \
  -X POST \
  -H "Authorization: Bearer ${YOUR_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
      "model_url": "https://example.com/model.stl"
    }'

  # Also thicken walls that are too thin for a 100 mm tall SLA print
  curl https://api.meshy.ai/openapi/v1/print/repair \
  -X POST \
  -H "Authorization: Bearer ${YOUR_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
      "input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578",
      "printer_type": "sla",
      "intended_print_height_mm": 100
    }'
  ```

  ```javascript
  import axios from 'axios'

  const headers = { Authorization: `Bearer ${YOUR_API_KEY}` };
  const payload = {
      input_task_id: "018a210d-8ba4-705c-b111-1f1776f7f578",
      // Optional: also thicken walls that are too thin for a 100 mm tall SLA print
      printer_type: "sla",
      intended_print_height_mm: 100
  };

  try {
      const response = await axios.post(
        'https://api.meshy.ai/openapi/v1/print/repair',
        payload,
        { headers }
      );
      console.log(response.data);
  } catch (error) {
      console.error(error);
  }
  ```

  ```python
  import requests

  payload = {
      "input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578",
      # Optional: also thicken walls that are too thin for a 100 mm tall SLA print
      "printer_type": "sla",
      "intended_print_height_mm": 100,
  }
  headers = {
      "Authorization": f"Bearer {YOUR_API_KEY}"
  }

  response = requests.post(
      "https://api.meshy.ai/openapi/v1/print/repair",
      headers=headers,
      json=payload,
  )
  response.raise_for_status()
  print(response.json())
  ```

**Response**

```json
{
  "result": "0193bfc5-ee4f-73f8-8525-44b398884ce9"
}
```

---

## GET /openapi/v1/print/repair/:id -- Get a Repair Printability task

Returns a Repair Printability task by its ID.

### Parameters

  - `id` · *path*

  The task ID from the create response.

### Returns

The [Repair Printability task object](#the-repair-printability-task-object). Its `model_urls` field is empty until the task is `SUCCEEDED`. After that, it has only the key that matches the input format. A wall-thickness repair includes `intended_print` from the start, and `print_repair_report` after the task succeeds.

  **cURL**

  ```bash
  curl https://api.meshy.ai/openapi/v1/print/repair/a43b5c6d-7e8f-901a-234b-567c890d1e2f \
  -H "Authorization: Bearer ${YOUR_API_KEY}"
  ```

  ```javascript
  import axios from 'axios'

  const taskId = 'a43b5c6d-7e8f-901a-234b-567c890d1e2f';
  const headers = { Authorization: `Bearer ${YOUR_API_KEY}` };

  try {
      const response = await axios.get(
        `https://api.meshy.ai/openapi/v1/print/repair/${taskId}`,
        { headers }
      );
      console.log(response.data);
  } catch (error) {
      console.error(error);
  }
  ```

  ```python
  import requests

  task_id = "a43b5c6d-7e8f-901a-234b-567c890d1e2f"
  headers = {
      "Authorization": f"Bearer {YOUR_API_KEY}"
  }

  response = requests.get(
      f"https://api.meshy.ai/openapi/v1/print/repair/{task_id}",
      headers=headers,
  )
  response.raise_for_status()
  print(response.json())
  ```

**Response**

```json
{
  "id": "0193bfc5-ee4f-73f8-8525-44b398884ce9",
  "type": "print-repair",
  "status": "SUCCEEDED",
  "progress": 100,
  "created_at": 1699999999000,
  "started_at": 1700000000000,
  "finished_at": 1700000030000,
  "expires_at": 1715725401000,
  "task_error": null,
  "model_urls": {
    "stl": "https://assets.meshy.ai/***/tasks/0193bfc5-ee4f-73f8-8525-44b398884ce9/output/model.stl?Expires=***"
  },
  "thumbnail_url": "https://assets.meshy.ai/***/tasks/0193bfc5-ee4f-73f8-8525-44b398884ce9/output/preview.png?Expires=***",
  "texture_urls": [],
  "consumed_credits": 10
}
```

**Response (wall thickness checked)**

```json
{
  "id": "0193bfc5-ee4f-73f8-8525-44b398884ce9",
  "type": "print-repair",
  "status": "SUCCEEDED",
  "progress": 100,
  "created_at": 1699999999000,
  "started_at": 1700000000000,
  "finished_at": 1700000090000,
  "expires_at": 1715725490000,
  "task_error": null,
  "model_urls": {
    "glb": "https://assets.meshy.ai/***/tasks/0193bfc5-ee4f-73f8-8525-44b398884ce9/output/model.glb?Expires=***"
  },
  "thumbnail_url": "https://assets.meshy.ai/***/tasks/0193bfc5-ee4f-73f8-8525-44b398884ce9/output/preview.png?Expires=***",
  "texture_urls": [],
  "consumed_credits": 10,
  "intended_print": {
    "printer_type": "sla",
    "height_mm": 100,
    "longest_side_mm": 118,
    "wall_thickness_mm": 0.8,
    "dimensions_mm": [118, 72.41, 99.87]
  },
  "print_repair_report": {
    "route": "thin_wall",
    "applied": true,
    "faces_before": 243112,
    "faces_after": 251870,
    "thin_area_ratio_before": 0.083,
    "thin_area_ratio_after": 0.004
  }
}
```

---

## DELETE /openapi/v1/print/repair/:id -- Delete a Repair Printability task

Permanently deletes a Repair Printability task, including its repaired model. You can't undo a delete.

### Path parameters

  - `id` · *path*

  The ID of the task to delete.

### Task status

Deleting a `PENDING` task refunds the credits it used when you created it.

An `IN_PROGRESS` task can't be deleted. The request returns `409 Conflict`,
and the task keeps running. Meshy doesn't refund a task that has started,
so deleting it would cost you both the credits and the result. Wait for it
to reach `SUCCEEDED`, `FAILED`, or `CANCELED`, then delete it.

Deleting a task in a final status (`SUCCEEDED`, `FAILED`, or `CANCELED`)
doesn't refund its credits.

### Returns

`200 OK` when the task is deleted, or `409 Conflict` when the task is
`IN_PROGRESS`.

  **cURL**

  ```bash
  curl --request DELETE \
    --url https://api.meshy.ai/openapi/v1/print/repair/a43b5c6d-7e8f-901a-234b-567c890d1e2f \
    -H "Authorization: Bearer ${YOUR_API_KEY}"
  ```

  ```javascript
  import axios from 'axios'

  const taskId = 'a43b5c6d-7e8f-901a-234b-567c890d1e2f'
  const headers = { Authorization: `Bearer ${YOUR_API_KEY}` }

  try {
    await axios.delete(
      `https://api.meshy.ai/openapi/v1/print/repair/${taskId}`,
      { headers }
    )
  } catch (error) {
    console.error(error)
  }
  ```

  ```python
  import requests

  task_id = "a43b5c6d-7e8f-901a-234b-567c890d1e2f"
  headers = {
      "Authorization": f"Bearer {YOUR_API_KEY}"
  }

  response = requests.delete(
      f"https://api.meshy.ai/openapi/v1/print/repair/{task_id}",
      headers=headers,
  )
  response.raise_for_status()
  ```

**Response**

```json
// 200 OK on success, with an empty body.
//
// 409 Conflict when the task is IN_PROGRESS. The task keeps running:
{
  "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."
}
```

---

## GET /openapi/v1/print/repair -- List Repair Printability tasks

Returns a list of your Repair Printability tasks.

### Parameters

  - `page_num` · *integer* · default: `1`

  The page number to return, starting at `1`.

  - `page_size` · *integer* · default: `10`

  The number of tasks per page, up to `100`.

  - `sort_by` · *string*

  The sort order.

  Available values:
  * `+created_at`: oldest first
  * `-created_at`: newest first

### Returns

A paginated list of [Repair Printability task objects](#the-repair-printability-task-object).

  **cURL**

  ```bash
  curl https://api.meshy.ai/openapi/v1/print/repair?page_size=10 \
  -H "Authorization: Bearer ${YOUR_API_KEY}"
  ```

  ```javascript
  import axios from 'axios'

  const headers = { Authorization: `Bearer ${YOUR_API_KEY}` };

  try {
    const response = await axios.get(
      `https://api.meshy.ai/openapi/v1/print/repair?page_size=10`,
      { headers }
    );
    console.log(response.data);
  } catch (error) {
    console.error(error);
  }
  ```

  ```python
  import requests

  headers = {
      "Authorization": f"Bearer {YOUR_API_KEY}"
  }

  response = requests.get(
      "https://api.meshy.ai/openapi/v1/print/repair",
      headers=headers,
      params={"page_size": 10}
  )
  response.raise_for_status()
  print(response.json())
  ```

**Response**

```json
[
  {
    "id": "0193bfc5-ee4f-73f8-8525-44b398884ce9",
    "type": "print-repair",
    "status": "SUCCEEDED",
    "progress": 100,
    "preceding_tasks": 0,
    "created_at": 1699999999000,
    "started_at": 1700000000000,
    "finished_at": 1700000030000,
    "expires_at": 1715725401000,
    "task_error": null,
    "model_urls": {
      "glb": "https://assets.meshy.ai/***/tasks/0193bfc5-ee4f-73f8-8525-44b398884ce9/output/model.glb?Expires=***"
    },
    "thumbnail_url": "https://assets.meshy.ai/***/tasks/0193bfc5-ee4f-73f8-8525-44b398884ce9/output/preview.png?Expires=***",
    "texture_urls": [],
    "consumed_credits": 10
  }
]
```

---

## GET /openapi/v1/print/repair/:id/stream -- Stream a Repair Printability task

Streams a Repair Printability task's updates as Server-Sent Events (SSE).

### Parameters

  - `id` · *path*

  The task ID from the create response.

### Returns

A stream of [Repair Printability task objects](#the-repair-printability-task-object) as Server-Sent Events.

Each event holds the full task object, in the same shape the Get endpoint
returns. While the task is `PENDING` or `IN_PROGRESS`, its output fields
are empty (`null`, `[]`, or `{}`), and `finished_at` is `0`. `model_urls`
is an empty object until the task is `SUCCEEDED`.

  **cURL**

  ```bash
  curl -N https://api.meshy.ai/openapi/v1/print/repair/a43b5c6d-7e8f-901a-234b-567c890d1e2f/stream \
  -H "Authorization: Bearer ${YOUR_API_KEY}"
  ```

  ```javascript
  const response = await fetch(
    'https://api.meshy.ai/openapi/v1/print/repair/a43b5c6d-7e8f-901a-234b-567c890d1e2f/stream',
    {
      headers: { Authorization: `Bearer ${YOUR_API_KEY}` }
    }
  );

  const reader = response.body.getReader();
  const decoder = new TextDecoder();
  let buffer = '';

  while (true) {
    const { done, value } = await reader.read();
    if (done) break;

    buffer += decoder.decode(value, { stream: true });
    const lines = buffer.split('\n');
    buffer = lines.pop();

    for (const line of lines) {
      if (line.startsWith('data:')) {
        const data = JSON.parse(line.slice(5));
        console.log(data);

        if (['SUCCEEDED', 'FAILED', 'CANCELED'].includes(data.status)) {
          reader.cancel();
        }
      }
    }
  }
  ```

  ```python
  import requests
  import json

  headers = {
      "Authorization": f"Bearer {YOUR_API_KEY}",
      "Accept": "text/event-stream"
  }

  response = requests.get(
      'https://api.meshy.ai/openapi/v1/print/repair/a43b5c6d-7e8f-901a-234b-567c890d1e2f/stream',
      headers=headers,
      stream=True
  )

  for line in response.iter_lines():
      if line:
          if line.startswith(b'data:'):
              data = json.loads(line.decode('utf-8')[5:])
              print(data)

              if data['status'] in ['SUCCEEDED', 'FAILED', 'CANCELED']:
                  break

  response.close()
  ```

  **Response Stream**

  ```javascript
  // Error event example
  event: error
  data: {
    "status_code": 404,
    "message": "Task not found"
  }

  // Message event examples illustrate task progress.
  // Every frame is the full task object; fields not yet populated are null / empty.
  // The following PENDING frame is abbreviated to the fields that change.
  event: message
  data: {
    "id": "a43b5c6d-7e8f-901a-234b-567c890d1e2f",
    "progress": 0,
    "status": "PENDING"
  }

  event: message
  data: {
    "id": "a43b5c6d-7e8f-901a-234b-567c890d1e2f",
    "type": "print-repair",
    "status": "SUCCEEDED",
    "progress": 100,
    "preceding_tasks": 0,
    "created_at": 1699999999000,
    "started_at": 1700000000000,
    "finished_at": 1700000030000,
    "expires_at": 1715725401000,
    "task_error": null,
    "model_urls": {
      "glb": "https://assets.meshy.ai/***/tasks/a43b5c6d-7e8f-901a-234b-567c890d1e2f/output/model.glb?Expires=***"
    },
    "thumbnail_url": "https://assets.meshy.ai/***/tasks/a43b5c6d-7e8f-901a-234b-567c890d1e2f/output/preview.png?Expires=***",
    "texture_urls": [],
    "consumed_credits": 10
  }
  ```

---

## The Repair Printability task object
A Repair Printability task object describes one repair of a 3D model. It holds the status, the progress, and the repaired model when the task succeeds.

  - `id` · *string*

  The task ID. Treat it as an opaque string, and don't rely on its format.

  - `type` · *string*

  The task type, always `print-repair`.

  - `status` · *string*

  The task status, one of `PENDING`, `IN_PROGRESS`, `SUCCEEDED`, `FAILED`, or `CANCELED`.

  - `progress` · *integer*

  How much of the task is done, as a percentage. It's `0` until the task starts and `100` when it succeeds.

  - `preceding_tasks` · *integer*

  The number of tasks ahead of this one in the queue. The value is meaningful only while the task is `PENDING`.

  - `created_at` · *timestamp*

  Time the task was created, in Unix milliseconds.

  - `started_at` · *timestamp*

  Time the task started, in Unix milliseconds. It's `0` until the task starts.

  - `finished_at` · *timestamp*

  Time the task finished, in Unix milliseconds. It's `0` until the task finishes.

  - `expires_at` · *timestamp*

  Time the task's result expires, in Unix milliseconds. It's `0` until the task finishes.

  - `task_error` · *object*

  The error details when the task fails. It's `null` if the task hasn't failed. See [Errors](/api/errors#task-errors).

- `message` · *string*

  A description of what went wrong.

  - `model_urls` · *object*

  Download URLs for the repaired model. **It has only the key that matches the input format.** A format the task didn't generate has no key, rather than an empty string.

- `glb` · *string*

  The repaired GLB file. Set when the input was a GLB file or you sent `input_task_id`.

- `gltf` · *string*

  The repaired glTF file. Set when the input was a glTF file.

- `fbx` · *string*

  The repaired FBX file. Set when the input was an FBX file.

- `obj` · *string*

  The repaired OBJ file. Set when the input was an OBJ file.

- `stl` · *string*

  The repaired STL file. Set when the input was an STL file.

  - `thumbnail_url` · *string*

  Download URL for a preview image of the repaired model.

  - `alpha_thumbnail_url` · *string*

  Download URL for a version of `thumbnail_url` with a transparent background (RGBA). Present only when you created the task with `alpha_thumbnail: true` and Meshy rendered the transparent preview.

  - `texture_urls` · *array*

  Always an empty array. Repair keeps only the input geometry and doesn't re-bake textures.

  - `consumed_credits` · *integer*

  The number of credits the task used. It's `10` when the task is `SUCCEEDED`, and `0` for a `FAILED` task, because Meshy refunds the credits when a task fails.

  - `intended_print` · *object*

  The printer and size the repair used, whether you sent them or Meshy reused them from an Analyze Printability task. Present on a wall-thickness repair from the start, including while the task is `PENDING`. A value Meshy doesn't know yet is `null`.

- `printer_type` · *string*

  The printer type, `fdm`, `sla`, or `full_color`.

- `height_mm` · *number*

  The print height, in millimeters, when the print is sized by height. Otherwise, it's `null`.

- `longest_side_mm` · *number*

  The length of the print's longest side, in millimeters. When the print is sized by height, Meshy calculates it from the model's proportions, and it's `null` until Meshy measures the model.

- `wall_thickness_mm` · *number*

  The minimum wall thickness for `printer_type`, in millimeters.

- `dimensions_mm` · *array*

  The print's `[width, depth, height]`, in millimeters. The height can differ from `height_mm` by a fraction of a millimeter. It's `null` until the task succeeds, and always `null` for input other than GLB.

  - `print_repair_report` · *object*

  What the wall-thickness repair did. Present after a wall-thickness repair succeeds.

- `route` · *string*

  Which repair ran, one of:
* `thin_wall`: more than 5% of the surface was too thin, so wall thickening also ran. To see whether it changed the mesh, check `applied`.
* `topology`: the walls were thick enough, so only the topology repair ran.
* `topology_unmeasured`: Meshy couldn't measure the walls, so only the topology repair ran.

- `applied` · *boolean*

  Whether the wall thickening changed the mesh. Present only when `route` is `thin_wall`.

- `faces_before` · *integer*

  The face count of the input mesh. Present only when `route` is `thin_wall`.

- `faces_after` · *integer*

  The face count of the repaired mesh. Present only when `route` is `thin_wall`.

- `thin_area_ratio_before` · *number*

  The share of the input's surface thinner than `intended_print.wall_thickness_mm`, from `0` to `1`. Left out when Meshy couldn't measure the input.

- `thin_area_ratio_after` · *number*

  The same share, measured on the repaired model. Left out when Meshy couldn't measure it. The task still succeeds.

**The Repair Printability Task Object**

```json
{
  "id": "0193bfc5-ee4f-73f8-8525-44b398884ce9",
  "type": "print-repair",
  "status": "SUCCEEDED",
  "progress": 100,
  "preceding_tasks": 0,
  "created_at": 1699999999000,
  "started_at": 1700000000000,
  "finished_at": 1700000030000,
  "expires_at": 1715725401000,
  "task_error": null,
  "model_urls": {
    "glb": "https://assets.meshy.ai/***/tasks/0193bfc5-ee4f-73f8-8525-44b398884ce9/output/model.glb?Expires=***"
  },
  "thumbnail_url": "https://assets.meshy.ai/***/tasks/0193bfc5-ee4f-73f8-8525-44b398884ce9/output/preview.png?Expires=***",
  "texture_urls": [],
  "consumed_credits": 10
}
```

**The Repair Printability Task Object (wall thickness checked)**

```json
{
  "id": "0193bfc5-ee4f-73f8-8525-44b398884ce9",
  "type": "print-repair",
  "status": "SUCCEEDED",
  "progress": 100,
  "preceding_tasks": 0,
  "created_at": 1699999999000,
  "started_at": 1700000000000,
  "finished_at": 1700000090000,
  "expires_at": 1715725490000,
  "task_error": null,
  "model_urls": {
    "glb": "https://assets.meshy.ai/***/tasks/0193bfc5-ee4f-73f8-8525-44b398884ce9/output/model.glb?Expires=***"
  },
  "thumbnail_url": "https://assets.meshy.ai/***/tasks/0193bfc5-ee4f-73f8-8525-44b398884ce9/output/preview.png?Expires=***",
  "texture_urls": [],
  "consumed_credits": 10,
  "intended_print": {
    "printer_type": "sla",
    "height_mm": 100,
    "longest_side_mm": 118,
    "wall_thickness_mm": 0.8,
    "dimensions_mm": [118, 72.41, 99.87]
  },
  "print_repair_report": {
    "route": "thin_wall",
    "applied": true,
    "faces_before": 243112,
    "faces_after": 251870,
    "thin_area_ratio_before": 0.083,
    "thin_area_ratio_after": 0.004
  }
}
```
