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": "99F6FoexP1J7CnyU",
"project_name": "1MKROxO61Fx2nLcplek",
"source_ranges": [
{
"file": "y8jqsh2AFnBl",
"prompt": "FmjE8hN",
"range": {
"end": {
"column": 10,
"line": 23
},
"start": {
"column": 22,
"line": 17
}
}
}
]
}'
201 Created
Response{
"completed_at": "2025-03-14T16:49:33.417Z",
"created_at": "2025-03-14T16:49:33.417Z",
"error": "hdDiAdZQIGi",
"feedback": "accepted",
"id": "809db0bc-7540-414c-83dd-efe054009e0b",
"model": "kcl",
"model_version": "YFMCo7SF3r5WMwNU",
"outputs": {},
"source_ranges": [
{
"file": "WrbRZcgKwG9H1WUMxE4STd6HG4i",
"prompt": "mbQjGaZJ2P",
"range": {
"end": {
"column": 28,
"line": 32
},
"start": {
"column": 16,
"line": 11
}
}
}
],
"started_at": "2025-03-14T16:49:33.417Z",
"status": "failed",
"updated_at": "2025-03-14T16:49:33.417Z",
"user_id": "24db88c4-048f-4704-b02f-66fe9c2d15e5"
}