{"uid":"cap_3egVqNxpox0rjimx8MqlZ","slug":"agent402-tools-images-to-pdf-547bae7a","name":"agent402.tools Images to PDF","description":"Combine PNG/JPEG images into a single PDF, one image per page. Body: {\"urls\":[\"https://…/1.png\",\"https://…/2.jpg\"]}. Returns the PDF as base64.","url":"https://agent402.tools/api/images-to-pdf","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"urls":{"type":"array","description":"1–20 public PNG/JPEG image URLs"}}},"responseSchema":{"type":"json","example":{"bytes":88123,"pages":2,"pdfBase64":"JVBERi0xLjcK…"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NZcF1LyDDHGu0Da9gIRZK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a list of PNG/JPEG image URLs into a single PDF file (one image per page) and returns it as base64-encoded data","exampleAgentPrompt":"Can you combine these three images into a single PDF for me? Here are the URLs: https://example.com/photo1.png, https://example.com/photo2.jpg, and https://example.com/photo3.png — one image per page please.","exampleUseCases":null,"resultDescription":"Returns a base64-encoded PDF document where each submitted image occupies one page, in the order provided. The agent must decode the base64 string to obtain the raw PDF bytes.","failureModes":["Invalid or inaccessible image URL — server cannot fetch one or more images, returns error","Unsupported image format — non-PNG/JPEG URLs rejected","Too many URLs — exceeds 20-image limit, returns validation error","Empty URL list — request with no URLs returns validation error","Payment failure — x402 payment not completed, request rejected","Image download timeout — remote image server too slow, returns error"],"whenToPreferThis":"Use this endpoint when you need to programmatically merge multiple PNG or JPEG images (referenced by public URLs) into a single PDF document without requiring local file handling. Ideal for agents that have already obtained public image URLs and need a ready-to-use base64 PDF in return. Prefer over client-side PDF libraries when the agent operates in a headless or serverless context without native PDF tooling.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:54:21.432Z","isFirstParty":false}