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": "RqjSDTQ3RswEHdZ79ryF7MwRNsp55Z",
"project_name": "SK30EdQ7HIhlnUiZHROMIQp25b4H6",
"prompt": "kQLjmh2xuV5WCxIKntKW8hbey",
"source_ranges": [
{
"file": "7vTb8ku0MItTPkzdnH",
"prompt": "YLMNiD9T8A1vCvVj2gNx",
"range": {
"end": {
"column": 32,
"line": 9
},
"start": {
"column": 3,
"line": 23
}
}
}
]
}'
201 Created
Response{
"completed_at": "2025-04-21T20:00:00.490Z",
"created_at": "2025-04-21T20:00:00.490Z",
"error": "IGXsET6N1",
"feedback": "thumbs_down",
"id": "050094e6-b7db-4699-8652-9841cb5d0dea",
"kcl_version": "BnUCgoqb4WuIzhBB4EfNnLS",
"model": "cad",
"model_version": "qPMsrTNEpp2oNIfgQLYQu06rZwFCw",
"outputs": {},
"project_name": "C2Hk3uvlpc4RTLe",
"prompt": "R6Rmjr27z207uH",
"source_ranges": [
{
"file": "TEkDntPCAhUL6d2Rf3U5yImo8l5",
"prompt": "e",
"range": {
"end": {
"column": 9,
"line": 30
},
"start": {
"column": 24,
"line": 6
}
}
}
],
"started_at": "2025-04-21T20:00:00.490Z",
"status": "uploaded",
"updated_at": "2025-04-21T20:00:00.490Z",
"user_id": "e3ed0a12-23ee-446b-b496-0b304c56123e"
}