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": "VwwrcamBKgWPWP2fbBwyXcz9zFFx",
"original_source_code": "xb7OdxZkMTJvpAUZKdDPgVuEU",
"project_name": "uOpDKI0Q3YlRd",
"prompt": "4BanVtal0w",
"source_ranges": [
{
"file": "uo48VVoK2AN5vTDgPEtvLjwNUU5",
"prompt": "VdsPhgEpR3zJz62p",
"range": {
"end": {
"column": 6,
"line": 3
},
"start": {
"column": 30,
"line": 26
}
}
}
]
}'
201 Created
Response{
"code": "",
"completed_at": "2025-06-13T06:23:50.864Z",
"created_at": "2025-06-13T06:23:50.864Z",
"error": "uxWa",
"feedback": "accepted",
"id": "5b117ca6-6bb2-4341-a288-37567739d9c4",
"model": "cad",
"model_version": "U1CMTM9UYtSUZtLkQ",
"original_source_code": "lPDd60upqtZ5eIw8LiC1K",
"prompt": "Mcz62gnWF1qkGYc5MMJ",
"source_ranges": [
{
"file": "qHrLjDspmDUQyqOw5LjNeNYf3Iz",
"prompt": "srDzLnDJR",
"range": {
"end": {
"column": 27,
"line": 7
},
"start": {
"column": 27,
"line": 21
}
}
}
],
"started_at": "2025-06-13T06:23:50.865Z",
"status": "in_progress",
"updated_at": "2025-06-13T06:23:50.865Z",
"user_id": "5718465c-eab2-4e39-8b2a-0da6648f7ee2"
}