{"name":"convert-pdf","description":"Converts PDFs to Markdown, HTML, JSON, or structured text with the Datalab Marker AI pipeline, preserving headings, tables, equations, and multi-column flow. Note: this endpoint outputs text-format conversions only. For PDF to JPG/PNG use pdf-to-jpg, for PDF merge use pdf-merge, for PDF split use pdf-split, for PDF compression use compress-pdf, and for PDF to Word route through this then a markdown to docx step. 30 pages max. Use it as a general PDF converter.","price":"$0.0025","method":"POST","input_schema":{"properties":{"pdf_url":{"type":"string","description":"Public URL of a PDF file (http or https). Must be directly fetchable, not behind auth or a viewer redirect. Max 30 pages."},"output_format":{"type":"string","enum":["markdown","html","json"],"description":"'markdown' (default — best for LLM downstream), 'html' (preserves more layout structure), or 'json' (per-page blocks with type + bbox)."}},"required":["pdf_url"]},"input_example":{"pdf_url":"https://raw.githubusercontent.com/py-pdf/sample-files/main/001-trivial/minimal-document.pdf","output_format":"markdown"},"output_example":{"markdown":"# Report\n\n## Section 1\n\nBody...","page_count":12,"source_url":"https://raw.githubusercontent.com/py-pdf/sample-files/main/001-trivial/minimal-document.pdf"},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}