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 '{
"original_source_code": "VOuASngnwfs9RY",
"prompt": "qp9TFzAG",
"source_ranges": [
{
"prompt": "Y4PyxuqXIzgT3IHu",
"range": {
"end": {
"column": 8,
"line": 22
},
"start": {
"column": 15,
"line": 12
}
}
}
]
}'
201 Created
Response{
"code": "",
"completed_at": "2025-01-07T17:16:37.599Z",
"created_at": "2025-01-07T17:16:37.599Z",
"error": "6e7a2204rnBLWvQa",
"feedback": "thumbs_up",
"id": "455b1e49-7a6e-4204-8aee-43ad63147c5e",
"model": "cad",
"model_version": "tqSq",
"original_source_code": "TUIblimX93IGhjXPWZinp3EMTuUQM",
"prompt": "MIuvFDmtO0",
"source_ranges": [
{
"prompt": "06Cxi0ICriipbmV8OuwXWfU7SFIu6K",
"range": {
"end": {
"column": 16,
"line": 4
},
"start": {
"column": 22,
"line": 22
}
}
}
],
"started_at": "2025-01-07T17:16:37.600Z",
"status": "uploaded",
"updated_at": "2025-01-07T17:16:37.600Z",
"user_id": "6961d3a5-c7cc-4274-9be9-356e349e89f8"
}