Generate Image API for Developers
Generate Image API built for teams that need reliable document automation at scale. Convert and process files with simple REST requests, predictable output quality, and production-grade uptime. Use it for webpage snapshots, HTML rendering, and preview generation workflows. Includes clear docs, SDK-ready endpoints, and quick testing in your browser.
What it does
Capture images from public URLs or raw HTML/CSS payloads.
Control viewport dimensions, full-page behavior, quality, and output mode.
Useful for snapshots, social previews, reports, and visual regression workflows.
Endpoint & Parameters
POST /v1/generateImage
Choose url or html.
Provide a public URL when using url, or raw HTML when using html.
Output dimensions in pixels (defaults usually apply if omitted).
One of: url, base64, both, image.
curl -X POST https://pdfmunk.com/api/v1/generateImage \
-H "CLIENT-API-KEY: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"source_type": "url",
"url": "https://example.com",
"width": 1280,
"height": 720,
"response_format": "url"
}'