{
  "openapi": "3.0.1",
  "info": {
    "title": "3D Print Cost & Time Estimator API: STL Slicer to G-code",
    "description": "Slice STL, 3MF, OBJ and STEP models with PrusaSlicer and get print time, filament in grams and metres, cost per piece, layers, support material, slicer warnings, a layer preview picture and the G-code. 200+ real printer profiles (Prusa, Creality, Voron) or your own config. For quotes and AI agents.",
    "version": "0.1",
    "x-build-id": "IUsG2VQo56uKXNuDb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jumblemog~3d-print-cost-estimator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jumblemog-3d-print-cost-estimator",
        "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~3d-print-cost-estimator/runs": {
      "post": {
        "operationId": "runs-sync-jumblemog-3d-print-cost-estimator",
        "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~3d-print-cost-estimator/run-sync": {
      "post": {
        "operationId": "run-sync-jumblemog-3d-print-cost-estimator",
        "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 3D models",
            "type": "array",
            "description": "Links to STL, 3MF, OBJ, AMF or STEP models, or ZIP archives holding them (every model in a ZIP is one estimate). GitHub file and folder links, Google Drive and Dropbox share links work. Write `example` to try the built-in example bracket.",
            "items": {
              "type": "string"
            }
          },
          "uploads": {
            "title": "Upload 3D models",
            "type": "array",
            "description": "Upload STL, 3MF, OBJ, AMF or STEP models, or ZIP archives of them, from your computer."
          },
          "printer": {
            "title": "Printer",
            "type": "string",
            "description": "`generic` (a standard-speed printer, 220 × 220 × 250 mm), `generic fast` (an input-shaping or CoreXY machine such as a Bambu Lab), or the name of one of the 200+ printers PrusaSlicer has profiles for: `Original Prusa MK4`, `Prusa MINI`, `Creality Ender-3 V2`, `Voron v2 300mm3`, `Sovol SV06`, `Elegoo Neptune-3`, `AnkerMake M5`... Part of a name is enough when it is clear. Turn on 'List the printers' to get every name.",
            "default": "generic"
          },
          "material": {
            "title": "Material",
            "enum": [
              "PLA",
              "PETG",
              "ABS",
              "ASA",
              "TPU",
              "PC",
              "PA",
              "PVA",
              "HIPS",
              "PP"
            ],
            "type": "string",
            "description": "The plastic. For a named printer the slicer's own filament settings for that printer and material are used; where it has none, generic values are.",
            "default": "PLA"
          },
          "layerHeight": {
            "title": "Layer height (mm)",
            "type": "string",
            "description": "Such as 0.2. Thinner layers look finer and take longer. Left empty, the printer's default is used (0.2 mm for the generic printers with a 0.4 mm nozzle). For a named printer the slicer's print profile closest to this height is taken."
          },
          "infill": {
            "title": "Infill (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How full the inside is, 0 to 100. Left empty, the printer profile's own value is used (15% for the generic printers)."
          },
          "supports": {
            "title": "Supports",
            "enum": [
              "auto",
              "buildplate",
              "none"
            ],
            "type": "string",
            "description": "Support material under overhangs. With 'Where the model needs them' a model without steep overhangs gets none.",
            "default": "auto"
          },
          "nozzle": {
            "title": "Nozzle (mm)",
            "type": "string",
            "description": "Nozzle diameter, such as 0.4 or 0.6. Left empty: 0.4. For a named printer it must be a nozzle the slicer has a setup for."
          },
          "walls": {
            "title": "Walls",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of wall lines (perimeters). Left empty, the profile's value is used (2 for the generic printers)."
          },
          "brim": {
            "title": "Brim (mm)",
            "type": "string",
            "description": "Width of a brim around the first layer, in mm. Left empty, the profile's value (usually none)."
          },
          "quantity": {
            "title": "Quantity",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "How many pieces. Time, filament and cost totals are the single piece times this number.",
            "default": 1
          },
          "pricePerKg": {
            "title": "Filament price per kg",
            "type": "string",
            "description": "What a kilogram of the filament costs, in your currency.",
            "default": "25"
          },
          "ratePerHour": {
            "title": "Machine rate per hour",
            "type": "string",
            "description": "What an hour of printing costs you or your customer (electricity, wear, margin). 0 leaves machine time out of the cost.",
            "default": "0"
          },
          "setupFee": {
            "title": "Setup fee per order",
            "type": "string",
            "description": "A fixed amount added once to the total, whatever the quantity.",
            "default": "0"
          },
          "markupPercent": {
            "title": "Markup (%)",
            "type": "string",
            "description": "A percentage added on top of material and machine cost of each piece.",
            "default": "0"
          },
          "currency": {
            "title": "Currency label",
            "type": "string",
            "description": "Only a label for the summary and the result (USD, EUR, GBP...). Nothing is converted.",
            "default": "USD"
          },
          "scale": {
            "title": "Scale (%)",
            "type": "string",
            "description": "Size of the model in percent. Model files carry no unit and are read as millimetres: use 2540 for a model drawn in inches, 100000 for one in metres.",
            "default": "100"
          },
          "rotateX": {
            "title": "Turn around X (degrees)",
            "type": "string",
            "description": "Tip the model before slicing, for example 90 to lay it on its back. The model is printed as it lies in the file otherwise.",
            "default": "0"
          },
          "rotateY": {
            "title": "Turn around Y (degrees)",
            "type": "string",
            "description": "Tip the model around the Y axis before slicing.",
            "default": "0"
          },
          "rotateZ": {
            "title": "Turn around Z (degrees)",
            "type": "string",
            "description": "Spin the model on the bed, for example 90 to fit a long part on a bed that is wider than deep.",
            "default": "0"
          },
          "bedSize": {
            "title": "Build space (mm)",
            "type": "string",
            "description": "Width × depth × height of the printer's build space, such as 256x256x256. Used for the generic printers (default 220x220x250) and replaces a named printer's own."
          },
          "filamentDensity": {
            "title": "Filament density (g/cm³)",
            "type": "string",
            "description": "For a plastic that isn't in the list, or a filled one: its density, such as 1.31. Replaces the material's own for the weight."
          },
          "settings": {
            "title": "Other slicer settings",
            "type": "object",
            "description": "Any PrusaSlicer setting by its config name, applied last, such as {\"fill_pattern\": \"gyroid\", \"top_solid_layers\": 6, \"perimeter_speed\": 60}. Run PrusaSlicer with --help-fff for the names."
          },
          "configUrl": {
            "title": "Link to your own PrusaSlicer config",
            "type": "string",
            "description": "A config exported from PrusaSlicer (File > Export > Export Config), or a G-code file PrusaSlicer wrote (its settings are read from the end). Your printer, speeds and filament are then used as they are; the fields above still apply on top."
          },
          "config": {
            "title": "Your own PrusaSlicer config, pasted",
            "type": "string",
            "description": "The same as the link above, as text: lines such as `layer_height = 0.2`."
          },
          "outputs": {
            "title": "Files to make",
            "type": "array",
            "description": "The numbers always come. Add the preview picture, the G-code, both or neither.",
            "items": {
              "type": "string",
              "enum": [
                "preview",
                "gcode"
              ],
              "enumTitles": [
                "Preview picture of the sliced part (PNG)",
                "G-code file"
              ]
            },
            "default": [
              "preview"
            ]
          },
          "imageWidth": {
            "title": "Preview width (pixels)",
            "minimum": 400,
            "maximum": 3000,
            "type": "integer",
            "description": "Width of the preview picture.",
            "default": 1400
          },
          "listPrinters": {
            "title": "List the printers",
            "type": "boolean",
            "description": "Don't slice anything: save the names of all printers with profiles (and their nozzles) as the PRINTERS record of the run's key-value store. Free.",
            "default": false
          },
          "timeoutSecs": {
            "title": "Time limit per model (seconds)",
            "minimum": 10,
            "maximum": 3600,
            "type": "integer",
            "description": "A model that takes longer to slice is reported as failed and not charged.",
            "default": 600
          },
          "maxModels": {
            "title": "Most models per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "A safety limit, for ZIP archives and folders with many models.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}