docs
SupportConsole

POST /v1/slices

Create a slice: upload the file with its settings as multipart, or send JSON naming a model by id or source_url

POSThttps://api.superslice.co/v1/slices

Needs an API key with the slices:write scope. See Security.

Headers

  • Idempotency-Keystring

    Repeating a key returns the same slice; a different body with the same key is a 409

Request body application/json

  • slicerstringrequired

    One of bambu-studio, creality-print, elegoo-slicer, prusa-slicer

  • engine_releasestring
  • printerstring or objectrequired

    A system preset name

  • processstring or objectrequired

    A system preset name

  • filamentstring or objectrequired

    A system preset name

  • model_settingsstring

    For a 3MF: use the preset's process settings, the file's own, or both as two paired slices. Defaults to the organisation's setting

    One of preset, model, both

  • plate_typestring
  • supportsobject
    3 fields in supports
    • enabledboolean
    • typestring
    • build_plate_onlyboolean
  • overridesmap of string
  • callback_urlstring
  • metadatamap of object
  • modelobjectrequired
    Send { id }
    • idstringrequired
    Send { source_url, filename }
    • source_urlstringrequired

      up to 2048 chars

    • filenamestring

      up to 255 chars

Or send multipart/form-data

  • filefilerequired

    The .stl or .3mf model

  • requestJSON (object)required

    The slice settings as JSON

    11 fields in request
    • slicerstringrequired

      One of bambu-studio, creality-print, elegoo-slicer, prusa-slicer

    • engine_releasestring
    • printerstring or objectrequired

      A system preset name

    • processstring or objectrequired

      A system preset name

    • filamentstring or objectrequired

      A system preset name

    • model_settingsstring

      For a 3MF: use the preset's process settings, the file's own, or both as two paired slices. Defaults to the organisation's setting

      One of preset, model, both

    • plate_typestring
    • supportsobject
      3 fields in supports
      • enabledboolean
      • typestring
      • build_plate_onlyboolean
    • overridesmap of string
    • callback_urlstring
    • metadatamap of object

Returns 202

Accepted. A cache hit is already succeeded.

  • idstring
  • statusstring

    One of awaiting_model, queued, processing, succeeded, failed

  • modelobject
    3 fields in model
    • idstring
    • filenamestring
    • bytesinteger | null
  • engineobject
    4 fields in engine
    • releasestring
    • slicerstring

      One of bambu-studio, creality-print, elegoo-slicer, prusa-slicer

    • versionstring
    • profilesstring
  • presetobject
    4 fields in preset
    • printerstring
    • processstring
    • filamentstring
    • platestring | null
  • overridesmap of string
  • resultobject | null
    8 fields in result
    • print_time_sinteger
    • model_time_sinteger | null
    • silent_time_sinteger | null
    • filament_gnumber
    • filament_mmnumber
    • supportobject
      5 fields in support
      • enabledboolean
      • typestring | null
      • build_plate_onlyboolean | null
      • filament_gnumber | null
      • print_time_snumber | null
    • platesobject[]
      7 fields in plates
      • indexinteger
      • print_time_snumber
      • model_time_snumber | null
      • silent_time_snumber | null
      • filament_gnumber
      • filament_mmnumber
      • support_filament_gnumber | null
    • appliedmap of string
  • errorobject | null
    2 fields in error
    • codestring
    • messagestring
  • priceobject | null

    From the organisation's pricing rules when the slice succeeded; null without rules

    4 fields in price
    • currencystring

      ISO 4217

    • total_minorinteger

      The lines plus the minimum adjustment, in the currency's minor unit

    • linesobject[]
      4 fields in lines
      • namestring
      • basisstring

        How a line is charged: per gram of filament, per hour of print time, once per order, or as a percentage of the other lines

        One of gram, hour, order, percent

      • amountstring

        The rate used: the line's own, or its different amount for this slice's printer or filament

      • amount_minorinteger
    • minimum_adjustment_minorinteger

      What lifts the total to the lowest price per order

  • settings_sourcestring | null

    Where the process settings came from. Null until a model-settings slice finishes

  • paired_sliceobject | null

    model_settings both: the other slice of the pair

    1 fields in paired_slice
    • idstring
  • metadatamap of object | null
  • created_atstring

    ISO 8601 timestamp

  • finished_atstring | null

    ISO 8601 timestamp

Errors

400Invalid request Codes
401Missing or wrong API key Codes
403Missing scope Codes
404Not found Codes
409Conflict Codes
413File over the size limit Codes
429Rate limited; see Retry-After Codes