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": "IV4TjOD1rYZxO2yv4vS",
"project_name": "MMXHB3R",
"prompt": "o",
"source_ranges": [
{
"file": "19rcRllB4W",
"prompt": "SzNLhWX7j2Sy",
"range": {
"end": {
"column": 30,
"line": 19
},
"start": {
"column": 31,
"line": 6
}
}
}
]
}'
201 Created
Response{
"completed_at": "2025-04-01T22:13:25.068Z",
"created_at": "2025-04-01T22:13:25.068Z",
"error": "qERiBKJWlKY",
"feedback": "accepted",
"id": "43bdacd5-e5e0-4277-885a-82acfb671129",
"kcl_version": "8XkWaXOG3cLCmEMDsTKzG9Kr2aFt",
"model": "kcl_iteration",
"model_version": "lxNKGt86kg4GmHdnI",
"outputs": {},
"project_name": "PxX",
"prompt": "dOqin48g",
"source_ranges": [
{
"file": "RBwR8nAI5vhpGeWkIjuRpVU8UQ",
"prompt": "YLq",
"range": {
"end": {
"column": 6,
"line": 8
},
"start": {
"column": 6,
"line": 13
}
}
}
],
"started_at": "2025-04-01T22:13:25.069Z",
"status": "in_progress",
"updated_at": "2025-04-01T22:13:25.069Z",
"user_id": "4668b3e6-e819-424d-85ca-8c0a708f6311"
}