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": "0AL",
"original_source_code": "cHVrQICmiMQYjIbSPZJKA8Aa4",
"project_name": "D3Q6lzGXA5J9rUwH5BbiYIltzAb",
"prompt": "P1Rbk8B",
"source_ranges": [
{
"file": "O9dXP",
"prompt": "11gjKdwVR6fV",
"range": {
"end": {
"column": 8,
"line": 31
},
"start": {
"column": 20,
"line": 9
}
}
}
]
}'
201 Created
Response{
"code": "Stzzy7ePRXv5L3m2Zubjv4eRx",
"completed_at": "2025-07-03T15:40:50.517Z",
"created_at": "2025-07-03T15:40:50.517Z",
"error": "PYGX",
"feedback": "accepted",
"id": "fc1c5ec3-12b4-4422-974e-b7330c6011b4",
"model": "kcl",
"model_version": "57pLkAs9HoStbsxexmQdVbfhl",
"original_source_code": "1eYWUtmxl6bMfC32Lw7jGiefbTG",
"prompt": "q8q67GGMhA0Wds1WiwQ2NLYZiK",
"source_ranges": [
{
"file": "Nwl3AqQUtK4lJbQZ",
"prompt": "p",
"range": {
"end": {
"column": 16,
"line": 12
},
"start": {
"column": 27,
"line": 5
}
}
}
],
"started_at": "2025-07-03T15:40:50.517Z",
"status": "failed",
"updated_at": "2025-07-03T15:40:50.517Z",
"user_id": "79344c96-72a3-4998-8d17-640c00f22800"
}