Multi-Color Print API
Convert 3D models into multi-color 3MF format for 3D printing, with a configurable color palette of up to 16 colors.
Create a Multi-Color 3D Print Task
This endpoint creates a new multi-color 3D print task. The task converts a 3D model into a multi-color 3MF file suitable for 3D printing.
Parameters
Required attributes
- Name
input_task_id- Type
- string
- Description
The ID of a succeeded task to use as input. Supported task types: Image to 3D, Multi-Image to 3D, Text to 3D, Remesh, and Retexture. The task must have a status of
SUCCEEDED.
Optional attributes
- Name
max_colors- Type
- integer
- Description
Maximum number of colors in the output palette.
Valid range:
1to16.Default to
4if not specified.
- Name
max_depth- Type
- integer
- Description
Quadtree depth for color precision. Higher values produce finer color boundaries but increase file size.
Valid range:
3to6.Default to
4if not specified.
Returns
The result property of the response contains the id of the newly created 3D print task.
Failure Modes
- Name
400 - Bad Request- Description
The request was unacceptable. Common causes:
- Missing parameter:
input_task_idmust be provided. - Invalid input task: The
input_task_idmust refer to a successful task. - Invalid max_colors: Value must be between 1 and 16.
- Invalid max_depth: Value must be between 3 and 6.
- Missing parameter:
- Name
401 - Unauthorized- Description
Authentication failed. Please check your API key.
- Name
402 - Payment Required- Description
Insufficient credits to perform this task.
- Name
429 - Too Many Requests- Description
You have exceeded your rate limit.
Request
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,
"max_depth": 5
}'
Response
{
"result": "0193bfc5-ee4f-73f8-8525-44b398884ce9"
}
Retrieve a Multi-Color 3D Print Task
This endpoint retrieves a multi-color 3D print task by its ID.
Parameters
- Name
id- Type
- path
- Description
The ID of the 3D print task to retrieve.
Returns
The 3D Print Task object.
Request
curl https://api.meshy.ai/openapi/v1/print/multi-color/a43b5c6d-7e8f-901a-234b-567c890d1e2f \
-H "Authorization: Bearer ${YOUR_API_KEY}"
Response
{
"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,
"task_error": null
}
The 3D Print Task Object
- Name
id- Type
- string
- Description
Unique identifier for the task. While we use a k-sortable UUID for task ids as the implementation detail, you should not make any assumptions about the format of the id.
- Name
type- Type
- string
- Description
Type of the 3D Print task. The value is
print-multi-color.
- Name
model_urls- Type
- object
- Description
Downloadable URL to the 3D model file generated by Meshy. The property for a format will be omitted if the format is not generated instead of returning an empty string.
- Name
3mf- Type
- string
- Description
Downloadable URL to the multi-color 3MF file.
- Name
progress- Type
- integer
- Description
Progress of the task. If the task is not started yet, this property will be
0. Once the task has succeeded, this will become100.
- Name
status- Type
- string
- Description
Status of the task. Possible values are one of
PENDING,IN_PROGRESS,SUCCEEDED,FAILED.
- Name
preceding_tasks- Type
- integer
- Description
The count of preceding tasks.
The value of this field is meaningful only if the task status is
PENDING.
- Name
created_at- Type
- timestamp
- Description
Timestamp of when the task was created, in milliseconds.
- Name
started_at- Type
- timestamp
- Description
Timestamp of when the task was started, in milliseconds. If the task is not started yet, this property will be
0.
- Name
finished_at- Type
- timestamp
- Description
Timestamp of when the task was finished, in milliseconds. If the task is not finished yet, this property will be
0.
- Name
task_error- Type
- object
- Description
Error information if the task has failed. This property is
nullif the task has not failed.- Name
message- Type
- string
- Description
Error message describing what went wrong.
The 3D Print Task Object
{
"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,
"task_error": null
}