API → ML → Iterate on a multi-file CAD model with a promptbeta
beta
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": "ni5TyrinVxrTazdGbM",
"project_name": "cEER8VOGRlaOXE",
"prompt": "uWu0qwE2ThjIE",
"source_ranges": [
{
"file": "mbt",
"prompt": "K473bTJHAJzLsudwdOUKebR18",
"range": {
"end": {
"column": 5,
"line": 22
},
"start": {
"column": 27,
"line": 6
}
}
}
]
}'
201 Created
Response{
"completed_at": "2025-04-25T16:37:47.907Z",
"created_at": "2025-04-25T16:37:47.907Z",
"error": "Gv8Oj1fsw8s5hf83TYzX7lFgAz6Hc",
"feedback": "thumbs_down",
"id": "de144a9d-f28f-48c5-94c1-20d774a32e6d",
"kcl_version": "n7RU63pIOPMwfh3536IgK6O",
"model": "cad",
"model_version": "uJs899uhKg5E",
"outputs": {},
"project_name": "AAsPOVRUXm",
"prompt": "t8di2DVEC41yitsDw",
"source_ranges": [
{
"file": "3",
"prompt": "vjP42h550GVaycYn3qYt3X2",
"range": {
"end": {
"column": 27,
"line": 22
},
"start": {
"column": 3,
"line": 16
}
}
}
],
"started_at": "2025-04-25T16:37:47.907Z",
"status": "completed",
"updated_at": "2025-04-25T16:37:47.907Z",
"user_id": "95c1098d-e1c6-4d82-a53f-37d16865e7a7"
}