API → MLIterate on a multi-file CAD model with a prompt
Parameters
Name
Type
Req.
bodymultipart/form-data
objectoptionalObject Properties
Returns
- 201 Created
successful creation
Name
Type
Req.
body
objectoptionalObject Properties
Possible values
thumbs_up
: Thumbs up.thumbs_down
: Thumbs down.accepted
: Accepted.rejected
: Rejected.
Possible values
cad
: CAD.kcl
: KCL.kcl_iteration
: KCL iteration.
Possible values
queued
: The async API call is queued.uploaded
: The async API call was uploaded to be converted.in_progress
: The async API call is in progress.completed
: The async API call has completed.failed
: The async API call has failed.
post
/ml/text-to-cad/multi-file/iteration$ curl -X POST "https://api.zoo.dev/ml/text-to-cad/multi-file/iteration" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: multipart/form-data" \
--data '{
"kcl_version": "WuxRD8OYq",
"project_name": "vVy8uVXtZ",
"prompt": "VuZMmrswbqzXzHbgMqLaH4TtVnJ4n",
"source_ranges": [
{
"file": "A7fwO9Cy2OQS2m1XQVg9hxD4ok",
"prompt": "eQafMX33jDGolrbiUAFdN7g",
"range": {
"end": {
"column": 31,
"line": 17
},
"start": {
"column": 1,
"line": 8
}
}
}
]
}'
201 Created
Response{
"completed_at": "2025-06-13T06:23:51.438Z",
"created_at": "2025-06-13T06:23:51.438Z",
"error": "60iYLk4toxiLtxnt",
"feedback": "rejected",
"id": "bdde5ab7-7659-46b6-834e-80b1441de79a",
"kcl_version": "Tr1D9Ufy",
"model": "cad",
"model_version": "",
"outputs": {},
"project_name": "oLfB5KxHoKj5ei",
"prompt": "jv5O",
"source_ranges": [
{
"file": "r2WW33RHJfsQ",
"prompt": "fNGPMVekAOEkZG8kbxuKf57JRKm",
"range": {
"end": {
"column": 22,
"line": 2
},
"start": {
"column": 14,
"line": 1
}
}
}
],
"started_at": "2025-06-13T06:23:51.438Z",
"status": "completed",
"updated_at": "2025-06-13T06:23:51.438Z",
"user_id": "bd9e2d3e-6005-4a42-9026-bdc72626e54f"
}