slice_and_print
Validate a 3D model, slice it, and start printing in a single action.
Instructions
Slice a 3D model (STL/3MF) + upload + print in one step (basic pipeline).
For a more comprehensive pipeline with validation and profile auto-detection,
use ``run_quick_print``. For custom slicer overrides, use ``run_reslice_and_print``.
Automatically analyzes bed adhesion and adds brim/raft when needed
based on model geometry, material warp tendency, and printer type.
This adhesion intelligence only activates when no custom profile is
supplied.
Pre-print validation gate: mesh inputs (.stl/.obj/.3mf/.step/.glb)
run through Kiln's full validation pipeline before slicing —
format check, watertight check, auto-repair, printability scoring
(0-100), bed-fit, and material checks. Designs that fail the gate
are blocked before reaching the printer; auto-repaired meshes are
sliced from the repaired path. Pass ``skip_validation=True`` to
bypass (e.g. for already-validated meshes or pre-sliced 3MFs).
Args:
input_path: Path to the 3D model file (STL, 3MF, STEP, etc.).
printer_name: Target printer name. Omit for the default printer.
profile: Path to a slicer profile/config file.
printer_id: Optional printer model ID for bundled profile
auto-selection (e.g. ``"prusa_mini"``).
material: Filament material (e.g. ``"PLA"``, ``"ABS"``). Affects
automatic brim/raft decisions.
metadata: Optional dict of pass-through fields. When
kiln-pro (https://kiln3d.com) is installed it
consumes keys here to generate a printable
assembly manual alongside the print, surfacing it
under ``response["assembly_manual"]``. Without
kiln-pro the metadata is silently ignored.
Recognised keys (all optional):
``assembly_json``, ``manual_output_dir``,
``manual_design_name``, ``manual_branding``,
``manual_co_brand_name``, ``manual_languages``,
``manual_cover_language``. Multi-language and
co-brand are kiln-pro Business+ features
(https://kiln3d.com/pricing).
skip_validation: Bypass the pre-print validation gate.
Defaults to False — designs are pre-tested for
printability before they reach the printer. Set to
True only when the caller has already validated the
mesh (e.g. ``validate_and_prepare`` was just called)
or when the input is a pre-sliced 3MF the validator
can't introspect.
Combines ``slice_model``, ``upload_file``, and ``start_print`` into
a single action.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | ||
| material | No | ||
| metadata | No | ||
| input_path | Yes | ||
| printer_id | No | ||
| auto_center | No | ||
| printer_name | No | ||
| skip_validation | No |