Slice a model
slice_modelSlices STL and 3MF files with the Bambu Studio engine to return print time, filament weight, warnings, and the output .3mf path for print planning.
Instructions
Slice once with the real Bambu Studio engine and return print time, filament weight, time per
line type, warnings and the path of the sliced result.3mf (written under output/; originals are
never modified). An identical slice comes back from the cache.
A Bambu 3MF keeps its own settings (moved to the default printer if made for another); an STL
gets machine/process/filaments or the user's defaults. Use compare_slices to try several
settings at once, optimize for ready-made goals, prepare_print to go from a raw STL to a project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plate | No | Plate number to slice; 0 = every plate in a single result.3mf. | |
| models | Yes | Absolute paths of the STL or 3MF files to slice together. | |
| orient | No | Let Bambu Studio auto-orient the objects. | |
| arrange | No | Let Bambu Studio auto-arrange the objects. | |
| machine | No | Machine preset name, e.g. "Bambu Lab P1S 0.4 nozzle". Omit to keep a 3MF project's own settings or use the defaults. | |
| process | No | Process preset name, e.g. "0.20mm Standard @BBL X1C". Needs `machine`. | |
| bed_type | No | Build plate, e.g. "Textured PEI Plate", "Cool Plate", "High Temp Plate". Omit for the usual plate when the filament suits it. | |
| filaments | No | Filament preset names, one per slot (e.g. "Bambu PLA Matte @BBL P1S 0.4 nozzle"). Alone on a 3MF project, replaces its filament. | |
| process_overrides | No | Print settings to change for this slice: {"layer_height": "0.16"}. | |
| filament_overrides | No | Filament settings to change: {"nozzle_temperature": "225"}. |