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": "3cqMeTLYmTfVFX92ueI",
"project_name": "bEVArCZ",
"prompt": "HEJ6R5jSXGFrZm3RuCn",
"source_ranges": [
{
"file": "QrcsKxed5ixZ7zsr9r0LkVLveEYQ",
"prompt": "VSIRVMAtuvw17yzjGCZe4tuh",
"range": {
"end": {
"column": 8,
"line": 18
},
"start": {
"column": 12,
"line": 1
}
}
}
]
}'
201 Created
Response{
"completed_at": "2025-07-04T12:25:20.876Z",
"created_at": "2025-07-04T12:25:20.876Z",
"error": "0HWJMtCeJSMnU",
"feedback": "thumbs_up",
"id": "797ae310-4220-449e-81b4-004b1a0c2028",
"kcl_version": "UThjW4q05o074wpAYBTO",
"model": "kcl",
"model_version": "AuHKwXcbH4mmgzUneJRiFd",
"outputs": {},
"project_name": "isw3B5W9GHjQDytd02ZR",
"prompt": "",
"source_ranges": [
{
"file": "VdN9bTbbEWMIe56fMdCji",
"prompt": "HsrIMrFqU3t",
"range": {
"end": {
"column": 30,
"line": 13
},
"start": {
"column": 32,
"line": 7
}
}
}
],
"started_at": "2025-07-04T12:25:20.877Z",
"status": "queued",
"updated_at": "2025-07-04T12:25:20.877Z",
"user_id": "04452326-10bc-4d91-85b6-8ca8b61d6127"
}