APIMLIterate on a CAD model with a prompt
deprecated

Parameters

Name

Type

Req.

Returns

  • 201 Created

    successful creation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • code

      string
      optional
    • completed_at

      string / ISO-8601
      optional
    • conversation_id

      string / UUID
      optional
    • created_at

      string / ISO-8601
      optional
    • error

      string
      optional
    • feedback

      string
      optional
      Possible values
      • thumbs_up:  Thumbs up.
      • thumbs_down:  Thumbs down.
      • accepted:  Accepted.
      • rejected:  Rejected.
    • id

      string / UUID
      optional
    • model

      string
      optional
      Possible values
      • cad:  CAD.
      • kcl:  KCL.
      • kcl_iteration:  KCL iteration.
    • model_version

      string
      optional
    • original_source_code

      string
      optional
    • prompt

      string
      optional
    • source_ranges

      array
      optional
      Array of
      • file

        string
        optional
      • prompt

        string
        optional
      • range

        object
        optional
        Object Properties
        • end

          object
          optional
          Object Properties
        • start

          object
          optional
          Object Properties
    • started_at

      string / ISO-8601
      optional
    • status

      string
      optional
      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.
    • updated_at

      string / ISO-8601
      optional
    • user_id

      string / UUID
      optional
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"
}