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": "g1NEtmxMoH3ARMFUvrFPipg9avA2kc",
"original_source_code": "yhCL69U4EErc7ErNhtVTCNIh",
"project_name": "UzREED1ND7ji5oFxyNahuu",
"prompt": "Nk9WLalz84zXNd1qSM3W",
"source_ranges": [
{
"file": "HeNXz1z2F7Y9",
"prompt": "y",
"range": {
"end": {
"column": 10,
"line": 11
},
"start": {
"column": 20,
"line": 30
}
}
}
]
}'
201 Created
Response{
"code": "GJ9MwJ4Vi473qhcKmy66vUfI0K4",
"completed_at": "2025-08-22T16:35:35.485Z",
"conversation_id": "97b9f01a-e0d8-4bfd-a737-a6683b59dfbe",
"created_at": "2025-08-22T16:35:35.485Z",
"error": "q2dpYlRnM8QPevHll",
"feedback": "thumbs_down",
"id": "a746ef46-4fdc-41bb-87ca-9eee928b9b0e",
"model": "cad",
"model_version": "zD4f9hPDyZZgERaBKWZ8S4h2qEv",
"original_source_code": "LrneGmOmjWRjewL",
"prompt": "MKFFZYnZ2Q5xaGq40y0CKcakVSYcC",
"source_ranges": [
{
"file": "VuwHB31gOxPnIwKhqVqpkAtMWH0KTG",
"prompt": "9OdBMLa",
"range": {
"end": {
"column": 19,
"line": 9
},
"start": {
"column": 7,
"line": 29
}
}
}
],
"started_at": "2025-08-22T16:35:35.485Z",
"status": "completed",
"updated_at": "2025-08-22T16:35:35.485Z",
"user_id": "53f4817b-9351-4649-8ac9-4549d966f148"
}