{
  "openapi": "3.0.1",
  "info": {
    "title": "42 Parametric Precision Cad Generator V2",
    "description": "Generate precision CAD components (STEP/STL/IGES) from natural language  technical specifications. Uses parametric modeling with AI-powered code generation  Includes manufacturability validation, GPU  rendering, and Blender integration.",
    "version": "2.0",
    "x-build-id": "ETDZ6wo4eaUnbdwzv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/salesmart-srl~precision-cad-generator-v2/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-salesmart-srl-precision-cad-generator-v2",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/salesmart-srl~precision-cad-generator-v2/runs": {
      "post": {
        "operationId": "runs-sync-salesmart-srl-precision-cad-generator-v2",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/salesmart-srl~precision-cad-generator-v2/run-sync": {
      "post": {
        "operationId": "run-sync-salesmart-srl-precision-cad-generator-v2",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "componentType": {
            "title": "Component Type",
            "enum": [
              "bracket",
              "plate",
              "arm",
              "tube",
              "mount",
              "enclosure",
              "custom"
            ],
            "type": "string",
            "description": "Type of CAD component to generate",
            "default": "bracket"
          },
          "dimensions": {
            "title": "Dimensions (JSON)",
            "type": "object",
            "description": "Component dimensions in mm. Example: {\"length\": 100, \"width\": 50, \"height\": 20, \"thickness\": 3}"
          },
          "base_geometry": {
            "title": "Base Geometry (JSON)",
            "type": "object",
            "description": "Advanced: Specify base geometry type and dimensions. Types: box, cylinder, sphere, cone, torus, tube, pipe, l_bracket, t_bracket, u_channel. Example for tube: {\"type\": \"tube\", \"dimensions\": {\"outer_diameter\": 25, \"inner_diameter\": 20, \"height\": 100}}"
          },
          "features": {
            "title": "Features (JSON Array)",
            "type": "array",
            "description": "Array of features to add. Example: [{\"type\": \"hole\", \"diameter\": 5, \"position\": [10, 25]}]"
          },
          "material": {
            "title": "Material",
            "enum": [
              "aluminum_6061",
              "aluminum_7075",
              "steel_1018",
              "steel_4140",
              "stainless_304",
              "stainless_316",
              "titanium_gr5",
              "brass_360",
              "copper_c110",
              "pla",
              "abs",
              "petg",
              "nylon",
              "resin_standard"
            ],
            "type": "string",
            "description": "Material for rendering and manufacturability validation",
            "default": "aluminum_6061"
          },
          "outputFormats": {
            "title": "Output Formats",
            "type": "array",
            "description": "File formats to generate",
            "items": {
              "type": "string",
              "enum": [
                "step",
                "stl",
                "iges"
              ]
            },
            "default": [
              "step",
              "stl"
            ]
          },
          "quality": {
            "title": "Render Quality",
            "enum": [
              "preview",
              "standard",
              "photorealistic"
            ],
            "type": "string",
            "description": "Quality preset for rendering. Use 'photorealistic' with GPU rendering for best results.",
            "default": "standard"
          },
          "views": {
            "title": "Render Views",
            "type": "array",
            "description": "Camera views to render",
            "items": {
              "type": "string",
              "enum": [
                "iso",
                "top",
                "front",
                "back",
                "left",
                "right",
                "bottom",
                "beauty_shot"
              ]
            },
            "default": [
              "iso",
              "top",
              "front"
            ]
          },
          "useGpuRendering": {
            "title": "Use GPU Rendering",
            "type": "boolean",
            "description": "Use GPU-accelerated photorealistic rendering via RunPod (requires RunPod endpoint configured). More expensive but much higher quality.",
            "default": false
          },
          "validateManufacturability": {
            "title": "Validate Manufacturability",
            "type": "boolean",
            "description": "Check if the design can be manufactured with standard processes",
            "default": true
          },
          "manufacturingProcess": {
            "title": "Manufacturing Process",
            "enum": [
              "cnc_milling",
              "cnc_turning",
              "sheet_metal",
              "3d_print_fdm",
              "3d_print_sla",
              "injection_molding"
            ],
            "type": "string",
            "description": "Target manufacturing process for validation",
            "default": "cnc_milling"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}