Conversion Bundle
9 endpoints: convert PDF, DOCX, XLSX, PPTX, CSV, HTML, and image OCR to markdown; extract PDFs to structured JSON; and transcribe audio/video to text.
For RAG ingest, knowledge-base pipelines, and document-processing SaaS.
Endpoints in this bundle
Each endpoint is independently callable. Bundle membership is for discovery only — you do not need to opt in.
| Method | Endpoint Path | Credits | Operation Summary |
|---|---|---|---|
| POST | /v1/convert/pdf-to-markdown | 1 cr | PDF to markdown. |
| POST | /v1/convert/docx-to-markdown | 1 cr | Word .docx to markdown. |
| POST | /v1/convert/xlsx-to-markdown | 1 cr | Excel .xlsx to markdown. |
| POST | /v1/convert/pptx-to-markdown | 1 cr | PowerPoint .pptx to markdown. |
| POST | /v1/convert/csv-to-markdown | 1 cr | CSV to markdown table. |
| POST | /v1/convert/html-to-markdown | 1 cr | HTML to markdown (clean). |
| POST | /v1/extract/document | 3 cr | PDF to structured JSON (Docling): text blocks, tables with cells, reading order, page layout. |
| POST | /v1/transcribe | 5 cr | Audio/video to text + timestamped segments, auto-detected language (faster-whisper). |
Mixed-format knowledge-base ingest
Recommended step-by-step workflow sequence for composing these endpoints in production:
Inspect the file's MIME type and route to the corresponding /v1/convert/* endpoint.
Post-process the returned markdown into chunks of your preferred size, embed, and write to your store.
Try a request
Pick a language. Copy-pasteable code snippet configured with your standard Bearer token header.
curl -X POST https://api.ollagraph.com/v1/convert/pdf-to-markdown \
-H "Authorization: Bearer $OLLAGRAPH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/whitepaper.pdf"}' import httpx, os
r = httpx.post(
"https://api.ollagraph.com/v1/convert/pdf-to-markdown",
headers={"Authorization": f"Bearer {os.environ['OLLAGRAPH_API_KEY']}"},
json={"url": "https://example.com/whitepaper.pdf"},
timeout=120.0,
)
print(r.json()) const res = await fetch("https://api.ollagraph.com/v1/convert/pdf-to-markdown", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.OLLAGRAPH_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ url: "https://example.com/whitepaper.pdf" }),
});
console.log(await res.json()); Conversion bundle FAQ
Common questions about rate limits, execution behavior, and parameters for this workflow.
Can I send the file body inline or only a URL?
Both. Pass `url` for us to fetch, or `file_b64` for an inline base64 body. Inline is capped at 25 MB; URL fetches at 100 MB.
Does pdf-to-markdown preserve tables?
Yes, as markdown table syntax when the layout is recoverable. Complex multi-column layouts with merged cells degrade to plain text rows.
Ship with the Conversion bundle.
1,000 credits on signup. No card. Every endpoint in this bundle is live from minute one.