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": "1DR",
"project_name": "rF84OHJApqmmu",
"prompt": "NmkQlUkBnH3iWYUMC5wlHoqMBN15",
"source_ranges": [
{
"file": "N7n8Wk0PvfiglPdGfLQ4Qej2nj",
"prompt": "lY9eHSnHiHlDV8u1GCqyuRKy",
"range": {
"end": {
"column": 3,
"line": 4
},
"start": {
"column": 31,
"line": 14
}
}
}
]
}'
201 Created
Response{
"completed_at": "2025-07-04T14:09:22.111Z",
"created_at": "2025-07-04T14:09:22.111Z",
"error": "MNHIlBu4P5M",
"feedback": "rejected",
"id": "2d66755c-6e16-418c-aa7d-e25d3a8af68b",
"kcl_version": "9f4bvbmOkEQcu",
"model": "cad",
"model_version": "QzvVocwsnWzdBjZ8",
"outputs": {},
"project_name": "KUsS9OfgKqSjXGDcMoUXgBpp",
"prompt": "Vm3Hf3tnJ2m0dndO7uk3bHHXvC2XT",
"source_ranges": [
{
"file": "qo",
"prompt": "",
"range": {
"end": {
"column": 6,
"line": 7
},
"start": {
"column": 32,
"line": 21
}
}
}
],
"started_at": "2025-07-04T14:09:22.111Z",
"status": "completed",
"updated_at": "2025-07-04T14:09:22.111Z",
"user_id": "a0fb4e6a-9bcf-4b1b-a338-e9120a1a5f9d"
}