Merge PDF files into one
Merges 2 to 20 base64 PDFs into one, in order, optionally taking page ranges from each. Files are not stored. Up to about 10 MB in total.
Who it is for: anyone assembling packets: invoice plus receipts, contract plus exhibits.
Price
$0.01 per successful call (10 credits; 1 credit = $0.001). Failed or empty calls are free. Credits come in one-time packs, no subscription: Starter $0.99 = 1,200 credits.
Buy the $0.99 Starter packAll 10 tools and samples
Try it free (no key)
3 free trial calls a day per network, shared across paid tools. Trial documents are marked PREVIEW.
curl -s -X POST https://allai-api.allaihq.workers.dev/v1/tools/pdf_merge \
-H 'content-type: application/json' \
-d '{"files":[{"base64":"","name":"a.pdf"},{"base64":"","pages":"1-3"}],"filename":"packet.pdf"}' Call it from an MCP client
claude mcp add --transport http allai-api https://allai-api.allaihq.workers.dev/mcp # then ask your agent to call pdf_merge (listed on the default endpoint)
After you buy
Add -H "Authorization: Bearer ak_live_YOUR_KEY" to the request, or the same header in your MCP client config. Agents can also pay per call in USDC with x402.
Example output
Each file is an object with base64, optional pages and name. See the live schema.
Live schema: https://allai-api.allaihq.workers.dev/v1/tools. Docs: https://allai-api.allaihq.workers.dev.
Operated by All AI LLC. Documents are drafts built from the data you supply, not legal, tax, medical or financial advice. Contact ops@allaiforms.com. Terms ยท Privacy