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": "1DR",
  "project_name": "rF84OHJApqmmu",
  "prompt": "NmkQlUkBnH3iWYUMC5wlHoqMBN15",
  "source_ranges": [
    {
      "file": "N7n8Wk0PvfiglPdGfLQ4Qej2nj",
      "prompt": "lY9eHSnHiHlDV8u1GCqyuRKy",
      "range": {
        "end": {
          "column": 3,
          "line": 4
        },
        "start": {
          "column": 31,
          "line": 14
        }
      }
    }
  ]
}'
201 Created
Response
{
  "completed_at": "2025-07-04T14:09:22.111Z",
  "created_at": "2025-07-04T14:09:22.111Z",
  "error": "MNHIlBu4P5M",
  "feedback": "rejected",
  "id": "2d66755c-6e16-418c-aa7d-e25d3a8af68b",
  "kcl_version": "9f4bvbmOkEQcu",
  "model": "cad",
  "model_version": "QzvVocwsnWzdBjZ8",
  "outputs": {},
  "project_name": "KUsS9OfgKqSjXGDcMoUXgBpp",
  "prompt": "Vm3Hf3tnJ2m0dndO7uk3bHHXvC2XT",
  "source_ranges": [
    {
      "file": "qo",
      "prompt": "",
      "range": {
        "end": {
          "column": 6,
          "line": 7
        },
        "start": {
          "column": 32,
          "line": 21
        }
      }
    }
  ],
  "started_at": "2025-07-04T14:09:22.111Z",
  "status": "completed",
  "updated_at": "2025-07-04T14:09:22.111Z",
  "user_id": "a0fb4e6a-9bcf-4b1b-a338-e9120a1a5f9d"
}