BiGapiguides
POST /v1/pdf/split → 200 application/pdf · 1¢

Split or extract PDF pages via API

Page ranges like 1-3,7,9-z (z = last page) into a new PDF. Structural extraction, no quality loss.

Quick start (curl)

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

Give it to your agent (MCP)

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.

When your agent needs this

Parameters

ParamTypeRequiredNotes
filefileyes
pagesstringnoPage selection, z = last page. – default 1-z

Pricing

per operation
First 100 operations free (per key, 7 days) · failed calls (4xx/5xx) cost $0 · repeats with 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.

Errors your agent can handle

StatusMeaningAgent action
401missing/invalid keyPOST /v1/keys for a fresh one
402credit exhaustedshow the upgrade_url from the response to a human
413file too largesplit the input (limit 100 MB)
422conversion failedcheck the detail field – costs $0
429rate limitedwait retry_after seconds

FAQ

What does 9-z mean?

z is qpdf shorthand for the last page – 9-z is „page 9 to the end“.

Can I reorder pages?

Yes – ranges are honoured in the order given, e.g. 5,1-3.

Multiple output files?

One call returns one PDF; loop ranges for several outputs (failed calls cost $0).