{
  "openapi": "3.0.1",
  "info": {
    "title": "STEP to STL Converter API: CAD Renders, Volume & Weight",
    "description": "Convert STEP and IGES CAD files to STL, 3MF, OBJ and GLB, render PNG views, and get exact size, volume, weight, surface area, round holes by diameter and the assembly's parts with names, colors and counts. OpenCascade kernel. Sews IGES surfaces into solids. For quoting tools and AI agents.",
    "version": "0.1",
    "x-build-id": "7V7sPU5unkcPodr7i"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jumblemog~step-file-converter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jumblemog-step-file-converter",
        "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/jumblemog~step-file-converter/runs": {
      "post": {
        "operationId": "runs-sync-jumblemog-step-file-converter",
        "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/jumblemog~step-file-converter/run-sync": {
      "post": {
        "operationId": "run-sync-jumblemog-step-file-converter",
        "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": {
          "modelUrls": {
            "title": "Links to CAD files",
            "type": "array",
            "description": "Links to STEP (.step, .stp), IGES (.iges, .igs) or BREP files, or ZIP archives holding them (every CAD file in a ZIP is a model). GitHub file and folder links, Google Drive and Dropbox share links work, and so do gzip-compressed files (.stpZ, .stp.gz). Write `example` to try the built-in example assembly.",
            "items": {
              "type": "string"
            }
          },
          "uploads": {
            "title": "Upload CAD files",
            "type": "array",
            "description": "Upload STEP, IGES or BREP files, or ZIP archives of them, from your computer."
          },
          "outputs": {
            "title": "What to make",
            "type": "array",
            "description": "Pictures, mesh files for printing and web viewers, and exact-geometry files (pick STEP to turn IGES into STEP). The measurements always come back. The price per model is the same whatever you pick.",
            "items": {
              "type": "string",
              "enum": [
                "png",
                "sheet",
                "stl",
                "3mf",
                "obj",
                "glb",
                "step",
                "iges",
                "brep"
              ],
              "enumTitles": [
                "PNG picture of each view",
                "Four-view sheet (PNG)",
                "STL (mesh)",
                "3MF (mesh, one object per part)",
                "OBJ (mesh, one object per part)",
                "GLB / glTF (mesh with colors and part names)",
                "STEP (exact geometry)",
                "IGES (exact geometry)",
                "BREP (OpenCascade's own format)"
              ]
            },
            "default": [
              "png",
              "stl"
            ]
          },
          "material": {
            "title": "Material for the weight",
            "enum": [
              "none",
              "steel",
              "stainless-steel",
              "aluminum",
              "titanium",
              "brass",
              "copper",
              "bronze",
              "cast-iron",
              "magnesium",
              "zinc",
              "abs",
              "pla",
              "petg",
              "nylon",
              "polycarbonate",
              "pom",
              "peek",
              "polypropylene",
              "hdpe",
              "acrylic",
              "pvc",
              "resin",
              "oak",
              "pine",
              "plywood",
              "mdf"
            ],
            "type": "string",
            "description": "The weight is the model's volume times this material's density (g/cm³, in brackets). For another material, give its density below.",
            "default": "none"
          },
          "density": {
            "title": "Density (g/cm³), instead of a material",
            "type": "string",
            "description": "A density in g/cm³, such as 7.85 for steel or 1.24 for PLA. Overrides the material."
          },
          "views": {
            "title": "Views to draw",
            "type": "array",
            "description": "One PNG per view. Iso views are in perspective with a soft shadow; the others are flat, like a technical drawing. Z is up and the front faces -Y.",
            "items": {
              "type": "string",
              "enum": [
                "iso",
                "iso-back",
                "front",
                "back",
                "left",
                "right",
                "top",
                "bottom"
              ],
              "enumTitles": [
                "Iso (front, right, top)",
                "Iso from behind",
                "Front",
                "Back",
                "Left",
                "Right",
                "Top",
                "Bottom"
              ]
            },
            "default": [
              "iso"
            ]
          },
          "imageWidth": {
            "title": "Picture size (pixels)",
            "minimum": 200,
            "maximum": 4096,
            "type": "integer",
            "description": "Width and height of each square picture, and the width of the four-view sheet.",
            "default": 1600
          },
          "modelColors": {
            "title": "Use the file's colors",
            "type": "boolean",
            "description": "Draw parts and faces in the colors stored in the CAD file. Turn off to draw everything in one color.",
            "default": true
          },
          "color": {
            "title": "Color for uncolored parts",
            "type": "string",
            "description": "A hex color such as #9fb4c7, used where the file gives no color (or everywhere, with the file's colors turned off).",
            "default": "#9fb4c7"
          },
          "background": {
            "title": "Background",
            "type": "string",
            "description": "A hex color such as #ffffff, or `transparent` for PNGs with a see-through background (drawn without the shadow).",
            "default": "#ffffff"
          },
          "edges": {
            "title": "Draw edges",
            "type": "boolean",
            "description": "Draw the model's real edges as thin dark lines, as CAD programs do. Edges where two faces flow into each other smoothly are left out.",
            "default": true
          },
          "shadow": {
            "title": "Soft shadow",
            "type": "boolean",
            "description": "A soft shadow under the model in the iso views.",
            "default": true
          },
          "quality": {
            "title": "Mesh fineness",
            "enum": [
              "draft",
              "normal",
              "fine"
            ],
            "type": "string",
            "description": "How closely the triangles follow curved surfaces: within about 0.3%, 0.1% or 0.03% of each part's size. The measurements don't depend on it; they come from the exact geometry.",
            "default": "normal"
          },
          "stepSchema": {
            "title": "STEP version to write",
            "enum": [
              "AP214",
              "AP203",
              "AP242"
            ],
            "type": "string",
            "description": "Only for the STEP output.",
            "default": "AP214"
          },
          "maxModels": {
            "title": "Maximum models",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many models.",
            "default": 100
          },
          "timeoutSecs": {
            "title": "Time limit per model (seconds)",
            "minimum": 10,
            "maximum": 3600,
            "type": "integer",
            "description": "A model that takes longer to read and convert is reported as failed and not charged.",
            "default": 300
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}