Slice a 3D model (G-code, print time, preview)
slice_modelSlice a 3D model for any of 12 FDM printers to get print time, filament grams, layer count, geometry, and bed-fit check. Optionally add a preview render or G-code.
Instructions
PAID (x402, USDC on Base). Full OrcaSlicer slice on any of the 12 FDM printers: print time, filament grams, layer count, geometry, and fits-on-bed. Optionally returns a preview PNG render and/or the sliced G-code. Price tiers by outputs: base $0.005; +preview PNG $0.01; +G-code $0.015; +preview+G-code $0.02. Upload an STL/3MF/OBJ/STEP model. Without payment, returns the x402 challenge for the selected tier.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| printer | No | 3D printer id from list_printers (elegoo-neptune4-max, bambu-a1, bambu-a1-mini, bambu-p1s, bambu-x1c, prusa-mk4, prusa-mini, ender3-v3, creality-k1, creality-k1-max, voron-24-350, anycubic-kobra2). Default elegoo-neptune4-max. | |
| quality | No | Print quality preset: draft 0.28mm | standard 0.20mm | fine 0.12mm layer height. | |
| filename | No | File name incl. extension, e.g. 'bracket.stl'. Sets the file type; required with model_base64. | |
| material | No | Filament/material id (pla, pla-cf, petg, petg-cf, abs, abs-cf, asa, asa-cf, nylon, pc, pet, tpu). Default pla. | |
| supports | No | Support generation style. | |
| model_url | No | Public https URL to the 3D model file (STL, 3MF, OBJ, PLY, or STEP). The server fetches it. Use this OR model_base64. | |
| x_payment | No | x402 payment payload (base64) for a PAID tool. If supplied it is forwarded as the X-PAYMENT header to settle the call and return the real result instead of a 402 challenge. Omit to get the price challenge first. | |
| layer_height | No | Explicit layer height in mm (0.04-0.6); overrides `quality` if both are given. | |
| model_base64 | No | Base64-encoded model file bytes (STL/3MF/OBJ/PLY/STEP), an alternative to model_url for inline data. Provide `filename` too. | |
| include_gcode | No | Add the sliced G-code, gzip+base64 (raises the price tier). | |
| infill_percent | No | Sparse infill density 0-100. | |
| include_preview | No | Add a base64 PNG preview render of the sliced model (raises the price tier). |