APIMLIterate on a multi-file CAD model with a prompt

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": "R1ggFW02M4BXxroNnyw8jtpVbb1T",
  "project_name": "mqr6SPz19IwEAdcOuRB",
  "prompt": "dg00c5aEo34DMLjn",
  "source_ranges": [
    {
      "file": "uPW0A5n7uWzk6nso",
      "prompt": "FbxQZwbi0jT8HtzbFtUK3W",
      "range": {
        "end": {
          "column": 14,
          "line": 15
        },
        "start": {
          "column": 12,
          "line": 31
        }
      }
    }
  ]
}'
201 Created
Response
{
  "completed_at": "2025-05-13T08:50:55.082Z",
  "created_at": "2025-05-13T08:50:55.082Z",
  "error": "Fk2gmnvoD5QX6r38VowQue",
  "feedback": "accepted",
  "id": "c71d9033-3859-469d-826a-e6fcba34e545",
  "kcl_version": "tdvA",
  "model": "kcl_iteration",
  "model_version": "QRVOBdtTYLwIF27P83mjuExRH",
  "outputs": {},
  "project_name": "E4upMxZai3mNpcIuKxI4Pfsgnden",
  "prompt": "iUjh2WkS72iCNNo4up6qnzZQxSp7D",
  "source_ranges": [
    {
      "file": "Vzymn3y",
      "prompt": "indVgejDDqJobPis1X",
      "range": {
        "end": {
          "column": 10,
          "line": 23
        },
        "start": {
          "column": 25,
          "line": 1
        }
      }
    }
  ],
  "started_at": "2025-05-13T08:50:55.082Z",
  "status": "uploaded",
  "updated_at": "2025-05-13T08:50:55.082Z",
  "user_id": "de7fe3ff-3fe6-4129-bf0a-6cfd5ded9d27"
}