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": "WuxRD8OYq",
  "project_name": "vVy8uVXtZ",
  "prompt": "VuZMmrswbqzXzHbgMqLaH4TtVnJ4n",
  "source_ranges": [
    {
      "file": "A7fwO9Cy2OQS2m1XQVg9hxD4ok",
      "prompt": "eQafMX33jDGolrbiUAFdN7g",
      "range": {
        "end": {
          "column": 31,
          "line": 17
        },
        "start": {
          "column": 1,
          "line": 8
        }
      }
    }
  ]
}'
201 Created
Response
{
  "completed_at": "2025-06-13T06:23:51.438Z",
  "created_at": "2025-06-13T06:23:51.438Z",
  "error": "60iYLk4toxiLtxnt",
  "feedback": "rejected",
  "id": "bdde5ab7-7659-46b6-834e-80b1441de79a",
  "kcl_version": "Tr1D9Ufy",
  "model": "cad",
  "model_version": "",
  "outputs": {},
  "project_name": "oLfB5KxHoKj5ei",
  "prompt": "jv5O",
  "source_ranges": [
    {
      "file": "r2WW33RHJfsQ",
      "prompt": "fNGPMVekAOEkZG8kbxuKf57JRKm",
      "range": {
        "end": {
          "column": 22,
          "line": 2
        },
        "start": {
          "column": 14,
          "line": 1
        }
      }
    }
  ],
  "started_at": "2025-06-13T06:23:51.438Z",
  "status": "completed",
  "updated_at": "2025-06-13T06:23:51.438Z",
  "user_id": "bd9e2d3e-6005-4a42-9026-bdc72626e54f"
}