Combine images into one PDF: JPG to PDF, PNG to PDF, merge scans into a single document — one or many images (max 200), auto page size or fitted to A4/Letter, EXIF rotation applied.
curl -X POST https://api.bigapi.dev/v1/image/to-pdf -H 'Authorization: Bearer $KEY' -F 'file=@scan1.jpg' -F 'file=@scan2.jpg' -o scans.pdf
New keys come with 100 free operations, no signup: curl -X POST https://api.bigapi.dev/v1/keys. Failed calls cost nothing.
| Name | Meaning |
|---|---|
file required | Image files in order (field "file", repeatable, max 200); HEIC/HEIF from iPhones is accepted too. |
pageSize | auto makes every page exactly as large as its image; a4 or letter places each image centred on a standard page. Allowed: auto, a4, letterDefault: "auto" |
margin | Margin in mm, up to 40; only used with a4 or letter. Default: 0 |
Returns application/pdf. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).
Connect BiGapi as an MCP server: https://api.bigapi.dev/mcp (hosted) or npx -y @bigapi/mcp (local). Then ask in plain words; the agent finds image_to_pdf on its own.