API → MLIterate on a multi-file CAD model with a prompt
Parameters
Name
Type
Req.
bodymultipart/form-data
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/multi-file/iteration$ curl -X POST "https://api.zoo.dev/ml/text-to-cad/multi-file/iteration" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: multipart/form-data" \
--data '{
"kcl_version": "tPbGobYR7mF",
"project_name": "eeOBSh71V7FQbW4DKWbM3g9gl",
"prompt": "VwPFArfyayQaHSUbuKv",
"source_ranges": [
{
"file": "Lqex4CButhkzJZHTXF7DNn5nXOYx",
"prompt": "VX1GamusnHIWqHiLXkh0",
"range": {
"end": {
"column": 11,
"line": 5
},
"start": {
"column": 12,
"line": 29
}
}
}
]
}'
201 Created
Response{
"completed_at": "2025-05-22T02:02:55.188Z",
"created_at": "2025-05-22T02:02:55.188Z",
"error": "0IUEcdNMZSBsWXZzO0LpspylyR7Y",
"feedback": "accepted",
"id": "cd823dd1-7d8f-4186-9e65-1b92f6090a85",
"kcl_version": "jvUMZYoZ7LuHv3RA",
"model": "kcl_iteration",
"model_version": "8nIp3AJ3IGzd",
"outputs": {},
"project_name": "z1G2zz7xivqA1",
"prompt": "q6g6duCBm1Fsy4G",
"source_ranges": [
{
"file": "32k9twHkjHqcI8hZZwENmtIsNJmn",
"prompt": "F1z5Ihp3INgo7",
"range": {
"end": {
"column": 16,
"line": 19
},
"start": {
"column": 30,
"line": 4
}
}
}
],
"started_at": "2025-05-22T02:02:55.188Z",
"status": "failed",
"updated_at": "2025-05-22T02:02:55.188Z",
"user_id": "f34f62c8-5790-4123-8b62-3b8e4cc52837"
}