STL to G-Code Slicer

FREEMIUM
By WatchMyDC | Updated il y a un mois | Tools
Popularity

6 / 10

Latency

2,069ms

Service Level

100%

Health Check

N/A

README

STL to G-Code Slicer API

Overview

Welcome to the SliceGenius STL to G-Code Slicer API, your gateway to easy and customizable 3D printing. This API empowers you to transform 3D models in STL format into the essential G-Code files used by 3D printers, all with the flexibility of custom slicing parameters. Whether you’re a hobbyist, educator, or professional, our API simplifies the 3D printing process to help you bring your creations to life.

Key Features

  • STL to G-Code Conversion: Convert STL files to G-Code with precision and ease.
  • Custom Slicing Parameters: Fine-tune your prints with customized parameters like layer thickness, print speed, and infill density.
  • FTP Upload: Your G-Code files are securely uploaded to an FTP server for easy downloading.
  • Scalability: Our API is designed to accommodate the needs of individual users, educational institutions, and businesses.
  • Compatibility: Compatible with a wide range of 3D printers and 3D printing software.

Getting Started

Authentication

To get started, you’ll need to sign up to RapidAPI for an API key. This key is used for authentication in your API requests.

Making a Slicing Request

To slice an STL file, you’ll need to make a POST request to the following endpoint. Here is a Python example:

import requests

url = "https://stl-to-g-code-slicer.p.rapidapi.com/3dslicer-02/slice"

# Define the path to the STL file you want to send
stl_file_path = 'file.stl'  # Replace with the actual file path

# Load the STL file
files = {"stl_file": open(stl_file_path, 'rb')}

payload = {
    "param": "-s roofing_monotonic=true -s roofing_layer_count=0"    
    # Add more parameters as needed without removing these two
}

headers = {
    "X-RapidAPI-Key": os.environ[‘XRAPIDAPIKEY’],
    "X-RapidAPI-Host": "stl-to-g-code-slicer.p.rapidapi.com",
}

response = requests.post(url, data=payload, files=files, headers=headers)

print(response.json())

Followers: 3
Resources:
Product Website
API Creator:
Rapid account: Watch My DC
WatchMyDC
watchmydc
Log In to Rate API
Rating: 5 - Votes: 1