Skip to content

Create Task API

API Overview

Used to submit a 3D model multicolor task and return a task ID.

ProtocolEndpointMethodAuthRequest FormatResponse Format
HTTP/open-api/v1/muilticolor/create-taskPOSTTokenmultipart/form-dataapplication/json

The create endpoint uses muilticolor as shown above. Keep this spelling when making requests.

Request Headers

ParameterValueDescription
Content-Typemultipart/form-dataData exchange format
AuthorizationBearerReplace {token} with the token you obtained

Request Body (HTTP Form Submission)

ParameterTypeRequiredDescription
meshfileYes, either with mesh_urlInput textured model file.
• Format: glb
• Size: up to 200 MB
• Count: 1 file
mesh_urlstringYes, either with meshPublicly accessible input textured model URL.
• Format: glb
• Size: up to 200 MB
• Count: 1 URL
modelstringNoModel version. Only multicolor is supported.
number_colorintNoControls the number of colors in the model. If you need to modify the model colors later, 0 (max) is recommended.
Default: 4.
Enum values: 1, 2, 3, 4, 5, 6, 7, 8, 0 (max).
formatintNoGenerated model format. Only one output format can be generated. Default: 1 (obj).
Enum values:
1: obj
2: glb
3: stl (Not currently supported)
4: fbx
5: usdz (Not currently supported)
6: 3mf (Not currently supported)
callback_urlstringNoCallback endpoint for task status updates. Callback uses POST and follows the same response structure as query-task. States include success and failed.

Response Body

ParameterFieldTypeDescription
code-intError code, see error code table
datatask_idstringAsynchronous task ID used to query task status and result
statestringInitial task state. The create-task API returns queueing after successful submission
msg-stringDetailed error message
json
{
  "code": 200,
  "data": {
    "task_id": "multicolor_20260715_8f92ab3e1cde",
    "state": "queueing"
  },
  "msg": "success"
}

Error Codes

Error CodeError MessageError Description
200-Task created successfully
5001001generate failedTimeout or model parsing failed. Retry later; credits are refunded

Request Example (Shell)

shell
curl --location --request POST 'https://api.hitem3d.ai/open-api/v1/muilticolor/create-task' \
--header 'Authorization: Bearer {{token}}' \
--form 'mesh=@"/path/to/demo.glb"' \
--form 'model="multicolor"' \
--form 'number_color=4' \
--form 'format=1' \
--form 'callback_url="https://client.example.com/webhook/multicolor"'