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": "KtczMN",
"original_source_code": "OHzkvk8qJYSF",
"project_name": "K2euq7TPQ",
"prompt": "MUe",
"source_ranges": [
{
"file": "0vO3o",
"prompt": "3Gr",
"range": {
"end": {
"column": 8,
"line": 1
},
"start": {
"column": 25,
"line": 7
}
}
}
]
}'
201 Created
Response{
"code": "E2SPdikhOmRrSAlDo8I",
"completed_at": "2025-07-07T14:48:01.640Z",
"created_at": "2025-07-07T14:48:01.640Z",
"error": "NfSZpw",
"feedback": "thumbs_up",
"id": "1b1f1296-eb3b-40a0-b58c-5d8956a07b35",
"model": "kcl",
"model_version": "Ec",
"original_source_code": "ZvKnXD",
"prompt": "8MDHPXjmFc4cjjF",
"source_ranges": [
{
"file": "",
"prompt": "ull95ehIZZpAn7LIYyNl2RC10",
"range": {
"end": {
"column": 2,
"line": 31
},
"start": {
"column": 8,
"line": 9
}
}
}
],
"started_at": "2025-07-07T14:48:01.640Z",
"status": "completed",
"updated_at": "2025-07-07T14:48:01.640Z",
"user_id": "1edbbe77-9c54-46e9-aa25-eb780bc20f91"
}