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": "Mx1eMPYM8yDvZvboEzQLU",
"project_name": "JgHkczUH92paDwt",
"prompt": "iW7W",
"source_ranges": [
{
"file": "tTefreafcjllqwkG",
"prompt": "D2yMrVVSnaWC1p",
"range": {
"end": {
"column": 15,
"line": 31
},
"start": {
"column": 6,
"line": 21
}
}
}
]
}'
201 Created
Response{
"completed_at": "2025-07-10T11:06:00.321Z",
"created_at": "2025-07-10T11:06:00.321Z",
"error": "A",
"feedback": "rejected",
"id": "996d7199-f984-4764-bb97-463349dee371",
"kcl_version": "ROZelp492is9xGMBwY",
"model": "kcl",
"model_version": "gQiZwOxIY22LjdPHbDznTpQ5Cf4Mu",
"outputs": {},
"project_name": "TZRNfi7pJuJWWX7BQPEX5oqmn6Cg1C",
"prompt": "YM",
"source_ranges": [
{
"file": "iyqY",
"prompt": "yhrm5X0lo2EScD1oh0J6m4626z",
"range": {
"end": {
"column": 14,
"line": 13
},
"start": {
"column": 6,
"line": 12
}
}
}
],
"started_at": "2025-07-10T11:06:00.321Z",
"status": "in_progress",
"updated_at": "2025-07-10T11:06:00.321Z",
"user_id": "0d285adc-5c9d-42eb-8c73-4a57e7f0de8e"
}