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": "I",
"original_source_code": "Lf0BvdGgGGEn",
"project_name": "8KBsEz",
"prompt": "Z1",
"source_ranges": [
{
"file": "g5duom7tFBW8XTPZB5I0rPUUgU6",
"prompt": "Clbk70",
"range": {
"end": {
"column": 24,
"line": 7
},
"start": {
"column": 17,
"line": 12
}
}
}
]
}'
201 Created
Response{
"code": "TyFHRZdRvvbscEEJRSfocCdXwK",
"completed_at": "2025-07-31T17:19:18.981Z",
"created_at": "2025-07-31T17:19:18.981Z",
"error": "GVAkR",
"feedback": "thumbs_down",
"id": "ae00c7f5-fa15-49ba-842f-d01f59d9690e",
"model": "kcl_iteration",
"model_version": "n5",
"original_source_code": "fVeyeTAgvPY4N4DtGfad0",
"prompt": "fetecLRousGFYGcg",
"source_ranges": [
{
"file": "kDMx",
"prompt": "e1jWivg9snwM3c",
"range": {
"end": {
"column": 12,
"line": 10
},
"start": {
"column": 31,
"line": 4
}
}
}
],
"started_at": "2025-07-31T17:19:18.981Z",
"status": "uploaded",
"updated_at": "2025-07-31T17:19:18.981Z",
"user_id": "6d6b0439-2e9d-44df-bb83-e8bbc470b1bc"
}