API → ML → Iterate on a CAD model with a promptbeta
beta
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": "5mfZVmpOHkr5OWK8AsJiF",
"original_source_code": "",
"project_name": "J4",
"prompt": "FuHP7RCHTiGPClbgeNUyVuP",
"source_ranges": [
{
"file": "4R6",
"prompt": "Sz",
"range": {
"end": {
"column": 1,
"line": 2
},
"start": {
"column": 28,
"line": 8
}
}
}
]
}'
201 Created
Response{
"code": "gvCxDxjcnrNB8DqqH6qSn4JcTM",
"completed_at": "2025-04-01T22:13:16.867Z",
"created_at": "2025-04-01T22:13:16.867Z",
"error": "YoAlBHneL",
"feedback": "thumbs_down",
"id": "066798c1-7b74-4e9f-bcd7-164063805bec",
"model": "cad",
"model_version": "2",
"original_source_code": "Q0uctXU0sU7IhqwVAvORKRg",
"prompt": "lpqlyV9PoPGQ1W4C5ktJi",
"source_ranges": [
{
"file": "AS2og",
"prompt": "7d",
"range": {
"end": {
"column": 2,
"line": 20
},
"start": {
"column": 25,
"line": 23
}
}
}
],
"started_at": "2025-04-01T22:13:16.867Z",
"status": "failed",
"updated_at": "2025-04-01T22:13:16.867Z",
"user_id": "4c44a9cc-7b9f-472c-83c3-faa47389a8eb"
}