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": "Mx1eMPYM8yDvZvboEzQLU",
  "project_name": "JgHkczUH92paDwt",
  "prompt": "iW7W",
  "source_ranges": [
    {
      "file": "tTefreafcjllqwkG",
      "prompt": "D2yMrVVSnaWC1p",
      "range": {
        "end": {
          "column": 15,
          "line": 31
        },
        "start": {
          "column": 6,
          "line": 21
        }
      }
    }
  ]
}'
201 Created
Response
{
  "completed_at": "2025-07-10T11:06:00.321Z",
  "created_at": "2025-07-10T11:06:00.321Z",
  "error": "A",
  "feedback": "rejected",
  "id": "996d7199-f984-4764-bb97-463349dee371",
  "kcl_version": "ROZelp492is9xGMBwY",
  "model": "kcl",
  "model_version": "gQiZwOxIY22LjdPHbDznTpQ5Cf4Mu",
  "outputs": {},
  "project_name": "TZRNfi7pJuJWWX7BQPEX5oqmn6Cg1C",
  "prompt": "YM",
  "source_ranges": [
    {
      "file": "iyqY",
      "prompt": "yhrm5X0lo2EScD1oh0J6m4626z",
      "range": {
        "end": {
          "column": 14,
          "line": 13
        },
        "start": {
          "column": 6,
          "line": 12
        }
      }
    }
  ],
  "started_at": "2025-07-10T11:06:00.321Z",
  "status": "in_progress",
  "updated_at": "2025-07-10T11:06:00.321Z",
  "user_id": "0d285adc-5c9d-42eb-8c73-4a57e7f0de8e"
}