Getting Started with CloudSlicer API

Learn how to integrate CloudSlicer into your application and start automating 3D printing cost calculations in minutes.

🚀 No credit card required • ⚡ Start building in under 5 minutes • 📚 Complete documentation

What is CloudSlicer?

CloudSlicer is an instant 3D printing cost calculator with both an online calculator and an API that you can integrate into your own application or website.

CloudSlicer automates the complex process of 3D printing cost estimation and pricing analysis. Instead of manually calculating print costs or running desktop slicing software, developers can integrate our API to get instant, accurate pricing for any 3D model.

Perfect for 3D printing services, CAD applications, e-commerce platforms, or any application that needs automated 3D printing cost calculations for internal pricing decisions.

Print time estimates
Material calculations
Cost breakdowns
Multiple printers
Upload → Process → Results
// 1. Upload your STL file
POST /v1/slice
{
  "model": "awesome-model.stl",
  "printer_profile": "bambu_x1_carbon",
  "material": "PLA"
}

// 2. Get comprehensive cost data
{
  "costs": { "total": 12.48 },
  "print_time": { "formatted": "3h 45m" },
  "material_weight": 156.3
}

How CloudSlicer Works

Simple integration, powerful results

1

Upload STL File

Send your 3D model (STL format) along with printer and material preferences via our RESTful API.

2

Cloud Processing

Our servers analyze your model using real slicing engines (PrusaSlicer) to ensure accuracy.

3

Receive Cost Data

Get detailed cost breakdowns including print time, material usage, and pricing - typically in 30-120 seconds.

Typical Integration Workflow

See how CloudSlicer fits into your application

1

Get Your API Token

Create an account and generate your API token from the dashboard. You'll receive 10 free credits to start testing.

2

Browse Available Options

Query our reference endpoints to see supported printers and materials:

GET /v1/printers # List available printer profiles
GET /v1/materials # List available materials
3

Submit Your First Calculation

Upload an STL file with your chosen printer and material:

POST /v1/slice
Content-Type: multipart/form-data
Authorization: Bearer YOUR_API_TOKEN
4

Poll for Results

Check the job status using the returned job_id. Processing typically takes 30-120 seconds:

GET /v1/slice/{job_id}
5

Use the Cost Data

Integrate the returned cost data into your application - add your markup, generate customer quotes, or make internal pricing decisions based on accurate print costs.

What CloudSlicer Provides

CloudSlicer returns accurate cost data for internal use. You add your markup and business logic to create customer-facing quotes. This gives you full control over pricing strategy while ensuring accurate base costs.

Quick Start Code Examples

Get started in your favorite language

PHP (cURL) Simple & Direct
$ch = curl_init('https://api.cloudslicer.io/v1/slice');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer ' . $apiToken
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'model' => new CURLFile('model.stl'),
    'printer_profile' => 'bambu_x1_carbon',
    'material' => 'PLA'
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
$jobId = $data['job_id'];
Python (Requests) Clean & Simple
import requests

url = 'https://api.cloudslicer.io/v1/slice'
headers = {'Authorization': f'Bearer {api_token}'}
files = {'model': open('model.stl', 'rb')}
data = {
    'printer_profile': 'bambu_x1_carbon',
    'material': 'PLA'
}

response = requests.post(url, headers=headers, 
                        files=files, data=data)
job_id = response.json()['job_id']
JavaScript (Fetch) Modern & Async
const formData = new FormData();
formData.append('model', fileInput.files[0]);
formData.append('printer_profile', 'bambu_x1_carbon');
formData.append('material', 'PLA');

const response = await fetch(
    'https://api.cloudslicer.io/v1/slice',
    {
        method: 'POST',
        headers: {
            'Authorization': `Bearer ${apiToken}`
        },
        body: formData
    }
);
const data = await response.json();
const jobId = data.job_id;
cURL Terminal Testing
curl -X POST https://api.cloudslicer.io/v1/slice \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -F "model=@model.stl" \
  -F "printer_profile=bambu_x1_carbon" \
  -F "material=PLA"

# Poll for results
curl -X GET https://api.cloudslicer.io/v1/slice/{job_id} \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Popular Use Cases

See how developers are using CloudSlicer to power their applications

🏪 3D Printing Services

"Let customers upload files and get instant quotes. No more manual calculations or waiting for responses."

  • Automated customer quotations
  • 24/7 pricing without staff
  • Consistent pricing calculations

🎨 CAD Applications

"Add 'Get Print Quote' buttons to your software. Show users costs before they commit to printing."

  • Integrated cost estimation
  • Material comparison tools
  • Export-ready quotes

🛒 E-commerce Platforms

"Enable custom product configurators. Let customers see pricing for different materials and settings."

  • Dynamic pricing widgets
  • Material selection tools
  • Checkout integration

🏭 Manufacturing Tools

"Compare 3D printing costs against traditional manufacturing. Make data-driven production decisions."

  • Cost comparison analysis
  • Production planning tools
  • Supply chain integration

Simple, Transparent Pricing

Pay only for what you use with our credit-based system

from $0.15
per cost credit
Typical processing time: 30-90 seconds

What You Get:

  • Accurate print time estimate
  • Material weight & cost
  • Machine time cost
  • Total base cost
  • Model dimensions & volume

Security & Privacy:

  • Files deleted immediately after processing
  • Secure API token authentication
  • No file storage or retention
  • Your IP protected
Starter Pack
100 credits for $20
($0.20 /credit)
Perfect for testing
Professional Pack
500 credits for $85
($0.17 /credit)
15% savings
Enterprise Pack
2,500 credits for $375
($0.15 /credit)
25% savings

Start with 10 free credits • No credit card required

Ready to Build Something Amazing?

Join hundreds of developers who are already using CloudSlicer to automate their 3D printing cost calculations.

10 free credits • No credit card required • Start in minutes