Slicer-accurate 3D-print API · rev 0.2

The slicer, as an API call.

Send a model file. Get back real print time, filament grams, dimensions, price, G-code and a printability report — run through a production slicing engine, not a formula.

Engine
Production slicer
Printers
12 profiles
Materials
12 filaments
Settle
REST · x402
01

Live instrument

Quote a real model, right now

This panel calls the live production API. Load an STL, OBJ or 3MF (or the bundled sample cube), set a printer and material, and it is sliced for real — the readout is a genuine measurement.

Quote unit · LIVE POST /api/quote/v1/quote
Drop a model here, or click to browse
STL · OBJ · 3MF · ≤ 64 MB · sliced in memory, then deleted
download .stl
PRINT TIME .......... —
FILAMENT ............ —
DIMENSIONS .......... —
LAYERS .............. —
PRICE ............... — ▸ awaiting model. Load a part and press Get instant quote; the measured datasheet prints here.

// public evaluation endpoint · rate-limited, unauthenticated · production & volume use runs through the REST or agent API below.


02

Interface spec

One request in, a full datasheet out

Send a model with a printer and material. FabTally runs it through a production slicing engine and returns structured JSON: print time, filament grams & meters, layer count, dimensions & volume, fits-on-bed, and a price.

Request — REST, no key
# slice + price a part
curl -X POST https://fabtally.com/api/quote/v1/quote \
  -F file=@part.stl \
  -F material=pla \
  -F printer=bambu-a1 \
  -F quantity=1
Response — real slice, 20mm cube
{
  "print_time_human": "20m 52s",
  "filament_g": 4.13,
  "layer_count": 100,
  "model_stats": {
    "dimensions_mm": {"x":20,"y":20,"z":20},
    "volume_cm3": 8.0,
    "fits_on_bed": true
  },
  "quote": { "total": 5.00, "currency": "USD" }
}
A.01
Real slicer, not an estimate
A production slicing pipeline run against calibrated machine profiles — the numbers your printer would produce.
A.02
Stateless by design
Models are streamed to the slicer, sliced in memory and deleted. Nothing stored, nothing trained on.
A.03
Structured output
Grams, meters, layers, mm dimensions, cm³ volume, fits-on-bed, G-code and DFM.

03

Machine roster

12 calibrated printers, 12 filaments

Each entry ships as a calibrated machine preset with its true bed volume and nozzle. Pass the id shown; fits-on-bed is checked against these dimensions.

Elegoo Neptune 4 Max
elegoo-neptune4-max · 420×420×480
Bambu Lab A1
bambu-a1 · 256×256×256
Bambu Lab A1 mini
bambu-a1-mini · 180×180×180
Bambu Lab P1S
bambu-p1s · 256×256×250
Bambu Lab X1 Carbon
bambu-x1c · 256×256×250
Prusa MK4
prusa-mk4 · 250×210×220
Prusa MINI
prusa-mini · 180×180×180
Creality Ender-3 V3
ender3-v3 · 220×220×250
Creality K1
creality-k1 · 220×220×250
Creality K1 Max
creality-k1-max · 300×300×300
Voron 2.4 350
voron-24-350 · 350×350×325
Anycubic Kobra 2
anycubic-kobra2 · 220×220×250
MATERIALS // plapla-cfpetgpetg-cfabsabs-cfasaasa-cfpettpupcnylon

04

Agent interface · x402

Pay-per-call, no account, no API key

Autonomous agents buy a slice, quote, DFM report or attestation with no signup — paying per call in USDC on Base via the x402 protocol. An unpaid request returns a standard 402 carrying price, asset and pay-to; pay and the same request settles and returns the result. No docs required to transact.

Priced endpoints — fixed USDC per successful call
MethodPathReturnsPrice
Geometry & quote
POST/agent/v1/analyzeGeometry only — bbox mm, volume cm³, triangles, watertight. No slice.$0.002
POST/agent/v1/quotePriced quote: print time, filament grams, dimensions, total.$0.005
POST/agent/v1/previewBase64 PNG render of the model — no slice.$0.005
Slice
POST/agent/v1/sliceFull slice metrics + geometry + fits-on-bed.$0.005
POST/agent/v1/slice/previewSlice metrics plus a rendered PNG.$0.010
POST/agent/v1/slice/gcodeSlice metrics plus downloadable G-code.$0.015
POST/agent/v1/slice/fullEverything — metrics, preview PNG and G-code.$0.020
DFM & attestation
POST/agent/v1/dfmPrintability report: verdict, wall-thickness, overhangs, support & material deltas.$0.010
POST/agent/v1/orientOrientation optimiser — slices ≤4 candidates, recommends least-support.$0.020
POST/agent/v1/attestSigned point-in-time observation of a public URL (ed25519).$0.010
Free
POST/agent/v1/dfm-previewGeometry-only DFM teaser — printable-so-far verdict, no charge.free
NETWORK Base mainnet · eip155:8453 ASSET USDC SCHEME exact · x402 v2 SETTLE per successful call — bad input never charged

Discover & integrate

Everything an agent needs to find and call FabTally, already published.

/openapi.json OpenAPI 3.1, all opsopen
/agent/overview capabilities & pricing JSONopen
/.well-known/x402 x402 discovery docopen
/.well-known/agent-card.json A2A agent cardopen
/.well-known/ai-catalog.json ARD catalogopen
/agent/v1/attest/schema attestation schema + pubkeyopen
■ Model Context Protocol

Listed in the official MCP registry as com.fabtally/slicer — a hosted, remote streamable-HTTP server at https://fabtally.com/mcp. Point an MCP client (Claude / ChatGPT Desktop) at it for list_printers, get_print_quote, slice_model, check_printability, optimize_orientation, compare_printers, recommend_material, recommend_settings, whatif_infill, scale_advisor, validate_model, cost_breakdown, analyze_3d_model and more. Free for personal & interactive use (fair-use daily limits) — real slice metrics, full DFM, orientation and the advisors, no wallet, no payment. Just paste a link (Thingiverse, Printables, MakerWorld, GitHub, Google Drive, Dropbox, a direct STL/3MF or a zip) or upload a local file at fabtally.com/upload. Only the downloadable G-code file is paid.


05

Price schedule

Free for people. Per-call for agents.

Personal & interactive use is FREE (fair-use daily limits per user): real slice metrics — print time, filament, layers, cost — full DFM/printability, orientation optimisation, and the printer/material/settings advisors, with no wallet and no payment. The table below is the per-call x402 (USDC on Base) / prepaid-credit lane for agents, production and high volume, plus the one paid output a hobbyist doesn't need: the downloadable G-code file. Slicing runs only after payment settles, so malformed input is never charged.

Agent / high-volume pricing — USDC on Base (personal interactive use is free)
CallWhat you getPrice
analyzeGeometry only — bbox, volume, triangles, watertight.$0.002
quoteFull priced quote: print time, filament, dimensions, price.$0.005
previewRendered PNG preview of the model.$0.005
sliceSlice metrics + geometry + fits-on-bed.$0.005
slice + previewSlice metrics plus a rendered PNG.$0.010
dfmPrintability report with support & material deltas.$0.010
attestSigned point-in-time URL observation.$0.010
slice + gcodeSlice metrics plus downloadable G-code.$0.015
orientOrientation optimiser (multi-slice compute).$0.020
fullEverything — metrics, preview PNG and G-code.$0.020

Not an agent?

Buy prepaid credits with a card

No wallet, no x402. Pay by card, get an API key, and call the same endpoints at the same per-call prices — credits drawn down as you go. Packs from $5.

Buy credits // card via Stripe · key issued instantly

// Building a store, MES or high-volume integration on the REST API? Human/dev pricing is separate — contact us or read the API spec.