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": "j80KyyGuBzI47zTzjckoe",
"original_source_code": "lvO2FZb",
"project_name": "EHtFnL74yrFmZ",
"prompt": "EUZx",
"source_ranges": [
{
"file": "o9MpN0pipeFQ7nxLKWOGR",
"prompt": "qEGIxMhAxGsDov",
"range": {
"end": {
"column": 1,
"line": 26
},
"start": {
"column": 16,
"line": 29
}
}
}
]
}'
201 Created
Response{
"code": "o3cNtuSac14gDjs54LzZlSr",
"completed_at": "2025-07-10T11:05:59.121Z",
"created_at": "2025-07-10T11:05:59.121Z",
"error": "PJWLE7e5gBAMQoX",
"feedback": "thumbs_up",
"id": "ddb5e1b3-b0ae-4969-ba0c-be176627cf92",
"model": "kcl",
"model_version": "c0RQA9dkRbORlA",
"original_source_code": "Qk4ONMcX3jpPgVpgYgq3",
"prompt": "BI8Sb79V",
"source_ranges": [
{
"file": "5eU7",
"prompt": "kQrg61OA2HFKyyHboSKmD",
"range": {
"end": {
"column": 19,
"line": 23
},
"start": {
"column": 28,
"line": 28
}
}
}
],
"started_at": "2025-07-10T11:05:59.121Z",
"status": "in_progress",
"updated_at": "2025-07-10T11:05:59.121Z",
"user_id": "79aa8927-76e8-4a5f-9f67-f07ed0292928"
}