API → MLIterate on a CAD model with a promptdeprecated
deprecated
Parameters
Name
Type
Req.
bodyapplication/json
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/iteration$ curl -X POST "https://api.zoo.dev/ml/text-to-cad/iteration" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '{
"kcl_version": "u3PUAyH8KYsZ",
"original_source_code": "",
"project_name": "4GSuz7YyCmwrEwCK",
"prompt": "yMx3Rr4CZ",
"source_ranges": [
{
"file": "AWZ",
"prompt": "RtyjSGkYKSAg",
"range": {
"end": {
"column": 28,
"line": 15
},
"start": {
"column": 21,
"line": 22
}
}
}
]
}'
201 Created
Response{
"code": "3mFwDk",
"completed_at": "2025-07-04T14:09:21.492Z",
"created_at": "2025-07-04T14:09:21.492Z",
"error": "3b76NOH59COBtr2oenDL",
"feedback": "rejected",
"id": "bd3ef5de-2e3d-43a0-9efd-5c82fc6c65ef",
"model": "cad",
"model_version": "CvwiqhLW8jvYgnADHwrSSM",
"original_source_code": "cEVbh8BDXr0a",
"prompt": "rI6RUBsFwu8cEA",
"source_ranges": [
{
"file": "WVZasNYBONr",
"prompt": "KyzB89fkIoeXqvMXkkJmX",
"range": {
"end": {
"column": 31,
"line": 29
},
"start": {
"column": 16,
"line": 32
}
}
}
],
"started_at": "2025-07-04T14:09:21.492Z",
"status": "failed",
"updated_at": "2025-07-04T14:09:21.492Z",
"user_id": "c7829b35-08b0-477f-984e-3ecd973c6de4"
}