Document
POST/document
Convert a document file into Markdown format suitable for LLM context injection.
Request
curl -X POST https://api.ig1.ai/document \
-H "Authorization: Bearer $IG1AI_API_KEY" \
-F "document=@my.pdf"
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
document | file | ✅ | The document file to convert |
Supported formats
PDF, DOCX, PPTX, XLSX or HTML
Response
Raw Markdown text (text/markdown).
How it works
- The document is parsed and converted to Markdown.
- Embedded images and diagrams are described as text by Qwen3.5-397B-A17B.
- The output Markdown is ready for CAG (Cached RAG) or Vision RAG use cases.
note
Tokens consumed during image-to-text conversion are charged under the Qwen3.5-397B-A17B model.