PDF API · New Generation · v2.0

The fastest, most complete PDF API for developers.

The PDF generation API designed for developers. Precise, fast, integrable in 2 minutes.

50 free credits / month No credit card required EU Servers · GDPR
api.dokjet.io
# Generate an invoice from a template
POST https://dokjet.ptitlabo.xyz/v1/generate
X-API-Key: dk_live_••••••••••••
Content-Type: application/json

{
  "template_id":  "invoices/invoice",
  "data":         { "client": "Acme Corp", "total": "$564" },
  "return_type":  "url"
}
→  200 OK · 148ms · 1 Dok

{
  "url":               "https://dokjet.ptitlabo.xyz/upload/.../invoice.pdf",
  "credits_left":     49,
  "response_time_ms": 148
}
// Direct fetch call (no SDK required)
const res = await fetch('https://dokjet.ptitlabo.xyz/v1/generate', {
  method: 'POST',
  headers: { 'X-API-Key': 'dk_live_••••••••••••',
             'Content-Type': 'application/json' },
  body: JSON.stringify({
    template_id: 'invoices/invoice',
    data: { client: 'Acme Corp', total: '$564' },
    return_type: 'url'
  })
});
const { url, credits_left } = await res.json();
// → { url: '...', credits_left: 49 }
// Direct API call with cURL
$ch = curl_init('https://dokjet.ptitlabo.xyz/v1/generate');
curl_setopt_array($ch, [
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_POST           => true,
  CURLOPT_HTTPHEADER     => ['X-API-Key: dk_live_••••••••••••',
                             'Content-Type: application/json'],
  CURLOPT_POSTFIELDS     => json_encode([
    'template_id' => 'invoices/invoice',
    'data'        => ['client' => 'Acme Corp', 'total' => '$564'],
    'return_type' => 'url',
  ]),
]);
$result = json_decode(curl_exec($ch), true);
// → ['url' => '...', 'credits_left' => 49]
2 000+
Active developers
50M+
PDFs generated
<200ms
Median latency p50
99.9%
Guaranteed uptime SLA
40+
Countries covered
Features

Everything you need to generate PDFs in production

From static templates to AI generation — DokJet covers all your use cases.

HTML/CSS Templates

Pixel-perfect rendering using the latest Chromium specs. Twig-like syntax, reusable partials, native Tailwind CSS support.

Twig · Tailwind · Chromium
GoDokJet AI

Generate professional PDFs from plain text or unstructured data, without creating a template first.

goDokMode parameter · 2–3 Doks
n8n & No-Code Integration

API designed to integrate in 2 minutes into your automated workflows. Compatible with n8n, Make, Zapier.

n8n · Make · Webhook
Ultra-fast sub-200ms rendering

Gotenberg engine optimized for minimal production latency. Median p50 < 200ms, even for complex multi-page documents. GDPR compliant, EU servers.

Sub-200ms · Gotenberg · GDPR
GoDokJet · goDokMode parameter

PDF without template.
By artificial intelligence.

Send plain text, a prompt or unstructured data. The AI builds the layout, optimizes page breaks and generates a professional PDF in a single request.

  • Automatic layout from plain text
  • Smart page-break optimization
  • Zero template configuration
  • JSON or free text input
  • Estimated cost in API response
Pricing

Simple. Transparent. Predictable.

1 standard PDF = 1 credit. Start for free, switch to pay-as-you-go when ready.

Free
€0
/ month · forever

50 credits every month. Ideal for testing, prototyping and local development.

Start for free
Max
€39
/ month · higher volume

For agencies and high volumes. Extended Dok plan, all options unrestricted, priority support.

Start with Max

Ready to generate your first PDF in production?

50 free credits every month. Deploy in 5 minutes. No commitment.

No credit card · Cancel anytime · Data hosted in Europe