BiGapiguides
POST /v1/office/pdf → 200 application/pdf · 1¢/page

Office to PDF API — DOCX, XLSX, PPTX via LibreOffice

Server-side LibreOffice, no Microsoft licence, no client install. DOCX, DOC, XLSX, XLS, PPTX, PPT, ODT, ODS, ODP, RTF, CSV, TXT in – PDF out. Billed per page.

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/office/pdf -H 'Authorization: Bearer $KEY' -F 'file=@report.docx' -o report.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: “Convert this DOCX to PDF.” – the model calls the office_to_pdf tool.

When your agent needs this

Parameters

ParamTypeRequiredNotes
filefileyesDOCX, DOC, XLSX, XLS, PPTX, PPT, ODT, ODS, ODP, RTF, CSV or TXT.

Pricing

per page (final cost in X-BigAPI-Cost)
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; X-BigAPI-Pages reports the page count.

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

How faithful is the layout?

LibreOffice is very good with standard documents; exotic fonts fall back to metric-compatible substitutes (Carlito for Calibri, Caladea for Cambria).

How is it billed?

1 cent per output page – X-BigAPI-Pages tells you the count.

Password-protected files?

Not supported – remove protection first; the call fails with 422 and costs $0.