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

Rotate PDF pages via API

All or selected pages by 90, 180 or 270 degrees. Fixes sideways scans before OCR or reading.

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/rotate -H 'Authorization: Bearer $KEY' -F 'file=@in.pdf' -F 'angle=90' -o rotated.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: “Rotate all pages of this scan by 90 degrees.” – the model calls the pdf_rotate tool.

When your agent needs this

Parameters

ParamTypeRequiredNotes
filefileyes
angleintegernoone of 90, 180, 270 · default 90
pagesstringnodefault 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

Rotate only some pages?

Yes – pages accepts ranges like 2,4-6; default is all.

Lossless?

Yes, rotation is a structural flag – pixels are untouched.

How do I detect wrong rotation?

Run OCR with output=json; garbled text on a page is a strong signal.