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": "ue26WzMPwsfQVGUJf",
  "project_name": "pP27wLJ8sjtfXbGIYH3NVoSg",
  "source_ranges": [
    {
      "file": "llKjczDH4FTIZWw2uGNHC7vof",
      "prompt": "VmZF00BtHpLGLsF",
      "range": {
        "end": {
          "column": 4,
          "line": 24
        },
        "start": {
          "column": 21,
          "line": 27
        }
      }
    }
  ]
}'
201 Created
Response
{
  "completed_at": "2025-02-21T16:37:08.499Z",
  "created_at": "2025-02-21T16:37:08.499Z",
  "error": "1QStb8TYoSgbN5CfnNkjtJQGDz",
  "feedback": "thumbs_up",
  "id": "53397909-10f2-46ac-84a2-7ef196e1ae47",
  "model": "kcl_iteration",
  "model_version": "SRfiDZSFnthEQ0ictGBOTZ8",
  "outputs": {},
  "source_ranges": [
    {
      "file": "y7KXl8e7jWcLD2zBeXJ32NFey",
      "prompt": "k5lwpx8an75Jqh4CgfOgc65q",
      "range": {
        "end": {
          "column": 25,
          "line": 32
        },
        "start": {
          "column": 7,
          "line": 5
        }
      }
    }
  ],
  "started_at": "2025-02-21T16:37:08.499Z",
  "status": "failed",
  "updated_at": "2025-02-21T16:37:08.499Z",
  "user_id": "5c2d825f-ea17-4271-b42b-567adea9b4be"
}