Speedstein API Documentation

Generate high-quality PDFs from HTML in under 2 seconds. Built for developers who need speed, reliability, and simplicity.

Lightning Fast

Sub-second PDF generation with optimized browser pooling

Secure by Default

Enterprise-grade security with encrypted API keys

Developer Friendly

Simple REST API with comprehensive documentation

Production Ready

Built on Cloudflare's global network for reliability

Quick Example

Generate your first PDF in 30 seconds. Here's a minimal example:

bash
curl http://localhost:8787/api/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "html": "<h1>Hello World</h1>"
  }'

Response

JSON Response
{
  "success": true,
  "data": {
    "url": "https://cdn.speedstein.com/pdfs/...",
    "size": 45234,
    "generationTime": 1847
  },
  "requestId": "req_...",
  "quota": {
    "limit": 100,
    "used": 1,
    "remaining": 99,
    "percentage": 1
  }
}

API Endpoint

Generate a PDF from HTML with customizable options

Request: Send HTML content in the request body

Authentication: Bearer token (API key) required

Response: JSON with PDF URL, size, and generation time

Next Steps

1. Get Your API Key
Sign up for free and generate your first API key in the dashboard
2. Follow the Quickstart
Step-by-step guide to generate your first PDF in 5 minutes
3. Explore Examples
Browse code examples in your favorite programming language
Need Help?
Our team is here to help you get started and answer any questions