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": "P5Ec0DVfsTzERd",
"project_name": "SOOAFO6EXTCtwGuvABx6",
"source_ranges": [
{
"file": "KPOCm3uvC4uFHgW33",
"prompt": "v3WY5Rbr",
"range": {
"end": {
"column": 1,
"line": 28
},
"start": {
"column": 18,
"line": 18
}
}
}
]
}'
201 Created
Response{
"completed_at": "2025-03-12T01:36:20.271Z",
"created_at": "2025-03-12T01:36:20.271Z",
"error": "ZM",
"feedback": "thumbs_down",
"id": "0601fdd3-f43c-4237-b028-206449b24962",
"model": "cad",
"model_version": "HYSMGdPJ",
"outputs": {},
"source_ranges": [
{
"file": "chznY7",
"prompt": "s7vfthDf0mv9TJebly14xTjdK",
"range": {
"end": {
"column": 17,
"line": 32
},
"start": {
"column": 22,
"line": 25
}
}
}
],
"started_at": "2025-03-12T01:36:20.271Z",
"status": "queued",
"updated_at": "2025-03-12T01:36:20.271Z",
"user_id": "ef823619-5986-43b3-9115-015aa5296f96"
}