API → MLIterate on a multi-file CAD model with a prompt
beta

Parameters

Name

Type

Req.

Returns

  • 201 Created

    successful creation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • completed_at

      string / ISO-8601
      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
    • kcl_version

      string
      optional
    • model

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

      string
      optional
    • outputs

      object
      optional
    • project_name

      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/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": "RqjSDTQ3RswEHdZ79ryF7MwRNsp55Z",
  "project_name": "SK30EdQ7HIhlnUiZHROMIQp25b4H6",
  "prompt": "kQLjmh2xuV5WCxIKntKW8hbey",
  "source_ranges": [
    {
      "file": "7vTb8ku0MItTPkzdnH",
      "prompt": "YLMNiD9T8A1vCvVj2gNx",
      "range": {
        "end": {
          "column": 32,
          "line": 9
        },
        "start": {
          "column": 3,
          "line": 23
        }
      }
    }
  ]
}'
201 Created
Response
{
  "completed_at": "2025-04-21T20:00:00.490Z",
  "created_at": "2025-04-21T20:00:00.490Z",
  "error": "IGXsET6N1",
  "feedback": "thumbs_down",
  "id": "050094e6-b7db-4699-8652-9841cb5d0dea",
  "kcl_version": "BnUCgoqb4WuIzhBB4EfNnLS",
  "model": "cad",
  "model_version": "qPMsrTNEpp2oNIfgQLYQu06rZwFCw",
  "outputs": {},
  "project_name": "C2Hk3uvlpc4RTLe",
  "prompt": "R6Rmjr27z207uH",
  "source_ranges": [
    {
      "file": "TEkDntPCAhUL6d2Rf3U5yImo8l5",
      "prompt": "e",
      "range": {
        "end": {
          "column": 9,
          "line": 30
        },
        "start": {
          "column": 24,
          "line": 6
        }
      }
    }
  ],
  "started_at": "2025-04-21T20:00:00.490Z",
  "status": "uploaded",
  "updated_at": "2025-04-21T20:00:00.490Z",
  "user_id": "e3ed0a12-23ee-446b-b496-0b304c56123e"
}