Skip to main content

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

ParameterTypeRequiredDescription
documentfileThe document file to convert

Supported formats

PDF, DOCX, PPTX, XLSX or HTML


Response

Raw Markdown text (text/markdown).

How it works

  1. The document is parsed and converted to Markdown.
  2. Embedded images and diagrams are described as text by Qwen3.5-397B-A17B.
  3. 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.