API → MLIterate on a CAD model with a prompt
beta

Parameters

Name

Type

Req.

Returns

  • 201 Created

    successful creation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • code

      string
      optional
    • 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
    • original_source_code

      string
      optional
    • prompt

      string
      optional
    • source_ranges

      array
      optional
      Array of
      • 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/iteration
$ curl -X POST "https://api.zoo.dev/ml/text-to-cad/iteration" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Content-Type: application/json" \
	--data '{
  "original_source_code": "VOuASngnwfs9RY",
  "prompt": "qp9TFzAG",
  "source_ranges": [
    {
      "prompt": "Y4PyxuqXIzgT3IHu",
      "range": {
        "end": {
          "column": 8,
          "line": 22
        },
        "start": {
          "column": 15,
          "line": 12
        }
      }
    }
  ]
}'
201 Created
Response
{
  "code": "",
  "completed_at": "2025-01-07T17:16:37.599Z",
  "created_at": "2025-01-07T17:16:37.599Z",
  "error": "6e7a2204rnBLWvQa",
  "feedback": "thumbs_up",
  "id": "455b1e49-7a6e-4204-8aee-43ad63147c5e",
  "model": "cad",
  "model_version": "tqSq",
  "original_source_code": "TUIblimX93IGhjXPWZinp3EMTuUQM",
  "prompt": "MIuvFDmtO0",
  "source_ranges": [
    {
      "prompt": "06Cxi0ICriipbmV8OuwXWfU7SFIu6K",
      "range": {
        "end": {
          "column": 16,
          "line": 4
        },
        "start": {
          "column": 22,
          "line": 22
        }
      }
    }
  ],
  "started_at": "2025-01-07T17:16:37.600Z",
  "status": "uploaded",
  "updated_at": "2025-01-07T17:16:37.600Z",
  "user_id": "6961d3a5-c7cc-4274-9be9-356e349e89f8"
}