Extract text from a PDF: clean, reflowed Markdown from the text layer — PDF to text for LLM context, summaries or RAG. Paragraphs joined, pages separated. Billed per page.
curl -X POST https://api.bigapi.dev/v1/pdf/to-markdown -H 'Authorization: Bearer $KEY' -F 'file=@report.pdf' -F 'output=json'
New keys come with 100 free operations, no signup: curl -X POST https://api.bigapi.dev/v1/keys. Failed calls cost nothing.
| Name | Meaning |
|---|---|
file required | PDF with a text layer (for scans use ocr first). Pages without text are reported in X-BigAPI-Warnings and _meta.warnings (no_text_layer) instead of coming back silently empty. |
first | First page to read (1 is the first page). Default: first page |
last | Last page to read. Default: last page |
layout | Keep column layout instead of reflowing paragraphs. Default: false |
output | Markdown file or JSON {markdown, pages, total_pages}. Pages are separated by a line with ---. Allowed: md, jsonDefault: "md" |
Returns text/markdown | application/json. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).
Connect BiGapi as an MCP server: https://api.bigapi.dev/mcp (hosted) or npx -y @bigapi/mcp (local). Then ask in plain words; the agent finds pdf_to_markdown on its own.