The fastest, most complete PDF API for developers.
The PDF generation API designed for developers. Precise, fast, integrable in 2 minutes.
# 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]
Everything you need to generate PDFs in production
From static templates to AI generation — DokJet covers all your use cases.
Pixel-perfect rendering using the latest Chromium specs. Twig-like syntax, reusable partials, native Tailwind CSS support.
Twig · Tailwind · ChromiumGenerate professional PDFs from plain text or unstructured data, without creating a template first.
goDokMode parameter · 2–3 DoksAPI designed to integrate in 2 minutes into your automated workflows. Compatible with n8n, Make, Zapier.
n8n · Make · WebhookGotenberg engine optimized for minimal production latency. Median p50 < 200ms, even for complex multi-page documents. GDPR compliant, EU servers.
Sub-200ms · Gotenberg · GDPRPDF 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
Simple. Transparent. Predictable.
1 standard PDF = 1 credit. Start for free, switch to pay-as-you-go when ready.
50 credits every month. Ideal for testing, prototyping and local development.
Start for freeFor production teams. GoDokJet AI, encryption, 10-doc batch, email support.
Start trialFor agencies and high volumes. Extended Dok plan, all options unrestricted, priority support.
Start with MaxReady 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