estimate_print_time
Estimate print time and filament usage for 3D models by slicing STL/3MF/OBJ files or parsing existing G-code. Provides layer count and cost estimates directly.
Instructions
Estimate print time and filament usage for a model.
Slices the model and parses the G-code for print time, filament
length/weight, layer count, and cost estimates.
For **already-sliced** G-code files, pass the ``.gcode`` path
directly — it will be parsed without re-slicing.
**See also:** ``slice_and_estimate`` for a fuller analysis that
includes printability scoring and adhesion recommendations.
:param file_path: Path to STL/3MF/OBJ or .gcode file.
:param profile: Optional slicer profile path.
:param printer_id: Optional printer model ID for bundled profile
(e.g. ``"bambu_a1"``). Used when no explicit profile is given.
:param slicer_path: Optional explicit slicer binary path.
:returns: Dict with time, filament, and layer estimates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | ||
| file_path | Yes | ||
| printer_id | No | ||
| slicer_path | No |