BiGapiguides
POST /v1/image/to-pdf · 1 cent per operation

Images → PDF

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.

Try it

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.

Parameters

NameMeaning
file requiredImage files in order (field "file", repeatable, max 200); HEIC/HEIF from iPhones is accepted too.
pageSizeauto makes every page exactly as large as its image; a4 or letter places each image centred on a standard page.
Allowed: auto, a4, letter
Default: "auto"
marginMargin in mm, up to 40; only used with a4 or letter.
Default: 0

Result and price

1¢ · 1 cent per operation

Returns application/pdf. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).

From an agent (MCP)

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.