Getting Started
Go from sign-up to your first PDF in under five minutes. This guide walks through the web UI — for AI agent setup, see AI & Agent Setup.
1. Create an account
Head to the registration page and sign up with your email. New accounts start on the Free plan: 10 credits / month, up to 100 pages.
2. Create an API key
If you plan to call the API (from code, scripts, or an AI agent), you'll need an API key.
- 1Open API KeysClick your name in the header, then choose API Keys.
- 2Create a keyGive the key a name (e.g. "My App") and click Create key. Copy it — you won't be able to see it again.
- 3Use the keyPass it as a Bearer token in the Authorization header:
Authorization: Bearer mpdf_your_api_key_here3. Create your first template
Templates are the core concept. A template is a reusable layout with {{variable}} placeholders — build it once, then render the same design with different data as many times as you want.
Go to Templates and click Modify Template on any library template to open it in the editor. Or describe the document you want in the embedded AI chat and it will build the template for you. Prefer your own assistant? Point it at the skill file and API — see AI & Agent Setup.
curl -X POST https://makespdf.com/api/v1/templates \
-H "Authorization: Bearer mpdf_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Hello world",
"dsl": "const template = doc({ size: \"A4\" }, page(col(s(\"Hello {{name}}\"))));\nconst sampleData = { name: \"World\" };"
}'The response includes a templateId — save this for rendering.
4. Render a PDF
Once you have a template, rendering is fast (about a second) and costs 1 credit per 10 pages. Pass your template ID and fresh data:
curl -X POST https://makespdf.com/api/v1/render \
-H "Authorization: Bearer mpdf_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"templateId": "your-template-id",
"data": { "name": "Ada" }
}' -o hello.pdfThe response is the PDF binary. Open it and you'll see your data filled into the template — the same layout, a different name.
5. Quick alternative: Markdown to PDF
Don't need a reusable template? Send Markdown directly and get a PDF back. No AI call, no template to save — markdown renders are billed like any other render, at 1 credit per 10 pages.
curl -X POST https://makespdf.com/api/v1/md \
-H "Authorization: Bearer mpdf_your_api_key" \
-H "Content-Type: application/json" \
-d '{"markdown": "# Monthly Report\n\n## Summary\n\nRevenue increased **23%** over last quarter.\n\n| Metric | Value |\n|--------|-------|\n| Revenue | $1.2M |\n| Users | 8,400 |"}' \
-o report.pdfSupports full GitHub Flavored Markdown — headings, tables, code blocks, task lists, images, footnotes, and more. See the API Reference for all options.
What's next
- API Reference — Full endpoint documentation, request/response formats, error codes
- AI & Agent Setup — Let your AI assistant generate PDFs with a single prompt
- Generate — Markdown, embedded AI chat, library templates, and editor plugins
- Pricing — Plans, credits, and usage