Free Markdown-to-PDF API on Sandbox and Main Endpoints
2026-04-21
If you need to turn Markdown into a PDF quickly, you can already do it with Node4All in both environments: sandbox.node4all.com for testing and api.node4all.com for production-style traffic. This post is for developers who want a simple endpoint now, without auth setup, while the premium x402 tier is being finalized.
Why this is available now
A lot of agent and automation workflows generate Markdown first (reports, summaries, changelogs, tickets), but final delivery still needs a PDF. The immediate need is reliability and speed, not complex billing.
So the current md2pdf route is intentionally simple:
- no API key
- no account
- free access on sandbox and main endpoints
A premium x402 payment-gated endpoint is coming soon for higher-value workloads and paid usage controls.
Endpoints and limits
Use the same route path in both environments:
| Environment | Base URL | Method | Route | Current Access |
|---|---|---|---|---|
| Sandbox | https://sandbox.node4all.com | POST | /v1/md2pdf | Free |
| Main | https://api.node4all.com | POST | /v1/md2pdf | Free |
Quick start
1) JSON body request
curl -X POST https://api.node4all.com/v1/md2pdf \
-H "Content-Type: application/json" \
-d '{"markdown":"# Hello\n\nThis PDF was generated from Markdown."}' \
--output output.pdf
2) File upload request
curl -X POST https://sandbox.node4all.com/v1/md2pdf \
-F "file=@document.md" \
--output output.pdf
3) Expected result
On success, the endpoint returns a PDF binary stream. Save it with --output as shown above.
Troubleshooting
- Getting a 4xx response: Confirm you are using
POST /v1/md2pdfand sending either amarkdownJSON field or a file upload. - PDF looks empty: Make sure your Markdown body is not blank and includes visible text.
- Request works in one environment but not the other: Re-check domain typos between
sandbox.node4all.comandapi.node4all.com.
What’s next
For now, the current Markdown-to-PDF route is free and available on both sandbox and main endpoints. A premium x402-protected endpoint is planned next, and we’ll publish a full deep-dive post with exact pricing and payment flow once it is live.