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": "b7yc3GuzX75VVqMwRUSeyMNFWC",
"original_source_code": "7vP7R",
"project_name": "9cavI3qey6F",
"prompt": "1rDbE10W767UlnIx",
"source_ranges": [
{
"file": "mGdciIUhUh2v3q0mDpl",
"prompt": "23GC2",
"range": {
"end": {
"column": 16,
"line": 21
},
"start": {
"column": 1,
"line": 30
}
}
}
]
}'
201 Created
Response{
"code": "CpqnOvDxHWT0Qg4FS8bL",
"completed_at": "2025-07-18T21:42:36.564Z",
"created_at": "2025-07-18T21:42:36.564Z",
"error": "AycY8b3FcERJnX",
"feedback": "accepted",
"id": "4a16db93-0176-4bd2-a617-6db31673af23",
"model": "kcl",
"model_version": "30y6WGhZGGT",
"original_source_code": "zxP8rd5JFnsC09GWhh1xjTHOlE",
"prompt": "vWpgcz",
"source_ranges": [
{
"file": "",
"prompt": "6SZTBpxYSnDFQvyRosI",
"range": {
"end": {
"column": 26,
"line": 30
},
"start": {
"column": 10,
"line": 5
}
}
}
],
"started_at": "2025-07-18T21:42:36.564Z",
"status": "queued",
"updated_at": "2025-07-18T21:42:36.564Z",
"user_id": "7e1c3e5c-da72-4026-a37e-9711be9a1e02"
}