Combine images into a PDF
images_to_pdfCombine one or more images (PNG/JPEG/WebP) into a single PDF, one image per page, pages sized to each image. Input: a list of base64-encoded image contents (each max 15 MB / 40 MP). Returns a download_url for the PDF (link valid 24 hours), its size and page count. Costs 1 credit; 5 free calls per month.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"images_base64": "<images_base64>"
},
"name": "images_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Output resolution in DPI, 72-600 (default 200). | |
| images_base64 | Yes | The images (PNG/JPEG/WebP), each as a base64-encoded string, in page order (each max 15 MB / 40 MP). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||