> **Reading as an AI agent?** This is the Markdown version of https://docs.meshy.ai/api/multi-color-print.
>
> - 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

---
# Multi-Color Print API

Convert a 3D model into a multi-color 3MF file for 3D printing. Choose a palette of up to 16 colors and a slicer preset for your printer brand.

---

## POST /openapi/v1/print/multi-color -- Create a Multi-Color Print task

Creates a Multi-Color Print task, which converts a 3D model into a multi-color 3MF file for 3D printing. The task runs in the background. For how long a task usually takes, see [Processing times](/api/task-lifecycle#processing-times).

### Parameters

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

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

  Multi-Color Print reads the task's GLB file, which can have at most 8,000,000 faces. A model with more faces returns `400`. In that case, run a [Remesh](/api/remesh) task on it first, and send the Remesh task's ID instead.

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

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

  An `http` or `https` URL must point to a `.glb` or `.fbx` file of at most 400 MB. A data URI must hold a base64 GLB file of at most 100 MB. Use `data:model/gltf-binary;base64,`. Send an `.fbx` file as an `http` or `https` URL.

  A file over 100 MB must also follow these rules:
  * It can have at most 8,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 file must not use Draco compression.

  - `max_colors` · *integer* · default: `4`

  The maximum number of colors in the output palette, from `1` to `16`. To use the default, leave it out rather than sending `0`.

  - `style` · *string* · default: `realistic`

  The color style of the 3MF file.

  Available values:
  * `realistic`: samples colors directly from the model's texture for fine, photo-realistic detail, and makes a larger file.
  * `cartoon`: flattens colors into clean, uniform regions for a stylized look, and makes a smaller file.

  The model must have color. `realistic` needs a single base color texture, with UVs on every mesh part, and `cartoon` also accepts vertex colors. Meshy rejects an untextured (white) model. See [`model_missing_texture`](/api/errors#model-missing-texture).

  - `max_depth` · *integer* · default: `4`

  The subdivision depth Meshy uses to sample texture colors onto the mesh, from `3` to `6`. `0` is the same as leaving it out. Higher values capture finer color detail, and make a larger file. Only the `realistic` style uses it, and `cartoon` ignores it.

  - `printer_brand` · *string* · default: `bambu`

  The printer brand whose slicer preset Meshy writes into the 3MF file. The file then opens in that brand's slicer with a matching printer, filament, and process profile. The preset uses the brand's default printer, with a 0.4 mm nozzle.

  Available values:
  * `bambu`
  * `anycubic`
  * `creality`
  * `elegoo`
  * `flashforge`
  * `prusa`
  * `qidi`
  * `snapmaker`
  * `ankermake`

  Any other value returns `400`.

### Returns

The `result` field of the response holds the ID of the new Multi-Color Print task.

### Failure modes

  - `400 - Bad Request`

  The request can't run. The error message says which problem it found. For example:
  * **Missing parameter**: Neither `model_url` nor `input_task_id` was sent.
  * **Invalid model format**: The `model_url` file isn't a `.glb` or `.fbx` file.
  * **Unreachable URL**: Meshy can't download the `model_url` file.
  * **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 over 100 MB and has more than 8,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 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.
  * **Invalid input task**: `input_task_id` isn't a successful task.
  * **Too many faces in the input task**: The `input_task_id` model has more than 8,000,000 faces. Run a Remesh task on it, then send the Remesh task's ID instead.
  * **Invalid max_colors**: `max_colors` is negative or over `16`.
  * **Invalid style**: `style` isn't `realistic` or `cartoon`.
  * **Invalid max_depth**: `max_depth` is outside `3` to `6`, and isn't `0`.
  * **Invalid printer_brand**: `printer_brand` isn't one of its available values.
  * **No color source**: The model lacks the color that `style` needs. `realistic` needs a single base color texture, with UVs, on every mesh part. `cartoon` accepts a base color texture or vertex colors. Texture the model first, or use `cartoon` for a model with vertex colors. Meshy checks an `.fbx` upload only after the task normalizes it, so the task fails with [`model_missing_texture`](/api/errors#model-missing-texture) instead.

  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 print. The message is `This model type does not support this operation`. Send a different model.

  - `404 - Not Found`

  `input_task_id` doesn't match any of your tasks. Check the task ID, then send the request again.

  - `429 - Too Many Requests`

  You exceeded your rate limit. Wait, then retry. See [Rate limits](/api/rate-limits).

  **cURL**

  ```bash
  # Convert a 3D model to a multi-color 3MF with a Creality slicer preset
  curl https://api.meshy.ai/openapi/v1/print/multi-color \
  -X POST \
  -H "Authorization: Bearer ${YOUR_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
      "input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578",
      "max_colors": 8,
      "printer_brand": "creality"
    }'
  ```

  ```javascript
  import axios from 'axios'

  // Convert a 3D model to a multi-color 3MF with a Creality slicer preset
  const headers = { Authorization: `Bearer ${YOUR_API_KEY}` };
  const payload = {
      input_task_id: "018a210d-8ba4-705c-b111-1f1776f7f578",
      max_colors: 8,
      printer_brand: "creality"
  };

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

  ```python
  import requests

  # Convert a 3D model to a multi-color 3MF with a Creality slicer preset
  payload = {
      "input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578",
      "max_colors": 8,
      "printer_brand": "creality"
  }
  headers = {
      "Authorization": f"Bearer {YOUR_API_KEY}"
  }

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

**Response**

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

---

## GET /openapi/v1/print/multi-color/:id -- Get a Multi-Color Print task

Returns a Multi-Color Print task by its ID.

### Parameters

  - `id` · *path*

  The task ID from the create response.

### Returns

The [Multi-Color Print task object](#the-3d-print-task-object).

  **cURL**

  ```bash
  curl https://api.meshy.ai/openapi/v1/print/multi-color/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/multi-color/${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/multi-color/{task_id}",
      headers=headers,
  )
  response.raise_for_status()
  print(response.json())
  ```

**Response**

```json
{
  "id": "0193bfc5-ee4f-73f8-8525-44b398884ce9",
  "type": "print-multi-color",
  "model_urls": {
      "3mf": "https://assets.meshy.ai/***/tasks/0193bfc5-ee4f-73f8-8525-44b398884ce9/output/model.3mf?Expires=***"
},
  "progress": 100,
  "status": "SUCCEEDED",
  "created_at": 1699999999000,
  "started_at": 1700000000000,
  "finished_at": 1700000001000,
  "expires_at": 1700259201000,
  "task_error": null,
"consumed_credits": 10
}
```

---

## DELETE /openapi/v1/print/multi-color/:id -- Delete a Multi-Color Print task

Permanently deletes a Multi-Color Print task, including its models and data. 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/multi-color/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/multi-color/${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/multi-color/{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/multi-color -- List Multi-Color Print tasks

Returns a list of your Multi-Color Print tasks.

### Parameters

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

  The page number to return. Page numbers start 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 [Multi-Color Print task objects](#the-3d-print-task-object).

  **cURL**

  ```bash
  curl https://api.meshy.ai/openapi/v1/print/multi-color?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/multi-color?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/multi-color",
      headers=headers,
      params={"page_size": 10}
  )
  response.raise_for_status()
  print(response.json())
  ```

**Response**

```json
[
  {
    "id": "0193bfc5-ee4f-73f8-8525-44b398884ce9",
    "type": "print-multi-color",
    "model_urls": {
      "3mf": "https://assets.meshy.ai/***/tasks/0193bfc5-ee4f-73f8-8525-44b398884ce9/output/model.3mf?Expires=***"
    },
    "progress": 100,
    "status": "SUCCEEDED",
    "preceding_tasks": 0,
    "created_at": 1699999999000,
    "started_at": 1700000000000,
    "finished_at": 1700000001000,
    "expires_at": 1700259201000,
    "task_error": null,
  "consumed_credits": 10
  }
]
```

---

## GET /openapi/v1/print/multi-color/:id/stream -- Stream a Multi-Color Print task

Streams a Multi-Color Print task's updates as Server-Sent Events (SSE).

### Parameters

  - `id` · *path*

  The task ID from the create response.

### Returns

A stream of [Multi-Color Print task objects](#the-3d-print-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 result fields don't have values yet.

  **cURL**

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

  ```javascript
  const response = await fetch(
    'https://api.meshy.ai/openapi/v1/print/multi-color/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/multi-color/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.
  // These examples are shortened. Each event holds the full task object.
  event: message
  data: {
    "id": "a43b5c6d-7e8f-901a-234b-567c890d1e2f",
    "progress": 0,
    "status": "PENDING"
  }

  event: message
  data: {
    "id": "a43b5c6d-7e8f-901a-234b-567c890d1e2f",
    "type": "print-multi-color",
    "model_urls": {
      "3mf": "https://assets.meshy.ai/***/tasks/a43b5c6d-7e8f-901a-234b-567c890d1e2f/output/model.3mf?Expires=***"
    },
    "progress": 100,
    "status": "SUCCEEDED",
    "preceding_tasks": 0,
    "created_at": 1699999999000,
    "started_at": 1700000000000,
    "finished_at": 1700000001000,
    "expires_at": 1700259201000,
    "task_error": null,
  "consumed_credits": 10
  }
  ```

---

## The Multi-Color Print task object
A Multi-Color Print task object describes one conversion of a 3D model to a multi-color 3MF file. It holds the status, the progress, and the 3MF file 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-multi-color`.

  - `model_urls` · *object*

  Download URLs for the printed model, one per file format. A format the task didn't generate has no key, rather than an empty string.

- `3mf` · *string*

  The multi-color 3MF file.

  - `progress` · *integer*

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

  - `status` · *string*

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

  - `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. See [Errors](/api/errors#task-errors).

  - `consumed_credits` · *integer*

  The number of credits the task used. Present when the status is `PENDING`, `IN_PROGRESS`, or `SUCCEEDED`. It's `0` for a `FAILED` task, because Meshy refunds the credits when a task fails.

**The 3D Print Task Object**

```json
{
  "id": "0193bfc5-ee4f-73f8-8525-44b398884ce9",
  "type": "print-multi-color",
  "model_urls": {
      "3mf": "https://assets.meshy.ai/***/tasks/0193bfc5-ee4f-73f8-8525-44b398884ce9/output/model.3mf?Expires=***"
},
  "progress": 100,
  "status": "SUCCEEDED",
  "preceding_tasks": 0,
  "created_at": 1699999999000,
  "started_at": 1700000000000,
  "finished_at": 1700000001000,
  "expires_at": 1700259201000,
  "task_error": null,
"consumed_credits": 10
}
```
