Page ranges like 1-3,7,9-z (z = last page) into a new PDF. Structural extraction, no quality loss.
Get a key first – no signup: curl -X POST https://api.bigapi.dev/v1/keys (100 free operations, 7 days).
curl -X POST https://api.bigapi.dev/v1/pdf/split -H 'Authorization: Bearer $KEY' -F 'file=@in.pdf' -F 'pages=2-4' -o part.pdf
Add BiGapi to Claude Desktop, Cursor or any MCP client – the server fetches its own key on first use:
{
"mcpServers": {
"bigapi": { "command": "npx", "args": ["-y", "@bigapi/mcp"] }
}
}
Then simply ask: “Extract pages 2-4 from this PDF.” – the model calls the pdf_split tool.
| Param | Type | Required | Notes |
|---|---|---|---|
file | file | yes | |
pages | string | no | Page selection, z = last page. – default 1-z |
Idempotency-Key are free · prepaid credit from $5, never expires.Every response carries X-BigAPI-Cost, X-BigAPI-Balance and X-BigAPI-Free-Ops – your agent can budget on its own.
| Status | Meaning | Agent action |
|---|---|---|
401 | missing/invalid key | POST /v1/keys for a fresh one |
402 | credit exhausted | show the upgrade_url from the response to a human |
413 | file too large | split the input (limit 100 MB) |
422 | conversion failed | check the detail field – costs $0 |
429 | rate limited | wait retry_after seconds |
z is qpdf shorthand for the last page – 9-z is „page 9 to the end“.
Yes – ranges are honoured in the order given, e.g. 5,1-3.
One call returns one PDF; loop ranges for several outputs (failed calls cost $0).