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
    • model

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

      string
      optional
    • outputs

      object
      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": "99F6FoexP1J7CnyU",
  "project_name": "1MKROxO61Fx2nLcplek",
  "source_ranges": [
    {
      "file": "y8jqsh2AFnBl",
      "prompt": "FmjE8hN",
      "range": {
        "end": {
          "column": 10,
          "line": 23
        },
        "start": {
          "column": 22,
          "line": 17
        }
      }
    }
  ]
}'
201 Created
Response
{
  "completed_at": "2025-03-14T16:49:33.417Z",
  "created_at": "2025-03-14T16:49:33.417Z",
  "error": "hdDiAdZQIGi",
  "feedback": "accepted",
  "id": "809db0bc-7540-414c-83dd-efe054009e0b",
  "model": "kcl",
  "model_version": "YFMCo7SF3r5WMwNU",
  "outputs": {},
  "source_ranges": [
    {
      "file": "WrbRZcgKwG9H1WUMxE4STd6HG4i",
      "prompt": "mbQjGaZJ2P",
      "range": {
        "end": {
          "column": 28,
          "line": 32
        },
        "start": {
          "column": 16,
          "line": 11
        }
      }
    }
  ],
  "started_at": "2025-03-14T16:49:33.417Z",
  "status": "failed",
  "updated_at": "2025-03-14T16:49:33.417Z",
  "user_id": "24db88c4-048f-4704-b02f-66fe9c2d15e5"
}