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": "8",
"original_source_code": "rNLy6NbENQ2Z3L8XO3W9QFK",
"project_name": "JHUhEf",
"prompt": "C",
"source_ranges": [
{
"file": "bH2oI",
"prompt": "x1H3cSjwpO8ZV",
"range": {
"end": {
"column": 32,
"line": 17
},
"start": {
"column": 2,
"line": 8
}
}
}
]
}'
201 Created
Response{
"code": "fG8OxJ",
"completed_at": "2025-05-22T02:02:54.402Z",
"created_at": "2025-05-22T02:02:54.402Z",
"error": "SciwuzKMFMW3K1qq",
"feedback": "thumbs_up",
"id": "dc34c9c6-08c2-4896-826b-58008de003d0",
"model": "cad",
"model_version": "iphuW2ptr8zB",
"original_source_code": "3BOoXwBak0AI3Y0ls29Yg5FLLe8jv",
"prompt": "0C9WY0DMSkKtUXWkW9aeagPjhu",
"source_ranges": [
{
"file": "gWqCuhzKNVdI7xkcRRx7d",
"prompt": "FLJIHDpuK",
"range": {
"end": {
"column": 14,
"line": 29
},
"start": {
"column": 16,
"line": 16
}
}
}
],
"started_at": "2025-05-22T02:02:54.402Z",
"status": "failed",
"updated_at": "2025-05-22T02:02:54.402Z",
"user_id": "fe3d89e7-8b8d-44bd-a6a9-6090ef6ee8d8"
}