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": "R1ggFW02M4BXxroNnyw8jtpVbb1T",
"project_name": "mqr6SPz19IwEAdcOuRB",
"prompt": "dg00c5aEo34DMLjn",
"source_ranges": [
{
"file": "uPW0A5n7uWzk6nso",
"prompt": "FbxQZwbi0jT8HtzbFtUK3W",
"range": {
"end": {
"column": 14,
"line": 15
},
"start": {
"column": 12,
"line": 31
}
}
}
]
}'
201 Created
Response{
"completed_at": "2025-05-13T08:50:55.082Z",
"created_at": "2025-05-13T08:50:55.082Z",
"error": "Fk2gmnvoD5QX6r38VowQue",
"feedback": "accepted",
"id": "c71d9033-3859-469d-826a-e6fcba34e545",
"kcl_version": "tdvA",
"model": "kcl_iteration",
"model_version": "QRVOBdtTYLwIF27P83mjuExRH",
"outputs": {},
"project_name": "E4upMxZai3mNpcIuKxI4Pfsgnden",
"prompt": "iUjh2WkS72iCNNo4up6qnzZQxSp7D",
"source_ranges": [
{
"file": "Vzymn3y",
"prompt": "indVgejDDqJobPis1X",
"range": {
"end": {
"column": 10,
"line": 23
},
"start": {
"column": 25,
"line": 1
}
}
}
],
"started_at": "2025-05-13T08:50:55.082Z",
"status": "uploaded",
"updated_at": "2025-05-13T08:50:55.082Z",
"user_id": "de7fe3ff-3fe6-4129-bf0a-6cfd5ded9d27"
}