Skip to content

Supported File Types

ExtensionHow it’s processed
.md, .txtRead as plain text
.pdfUploaded to the provider’s Files API (Google) or sent as base64
.png, .jpg, .jpeg, .webpUploaded to the provider’s Files API (Google) or sent as base64
.htmlConverted to Markdown via node-html-markdown
.docxConverted to Markdown via mammoth

For Google Gemini, binary files (PDFs and images) are uploaded to the Google Files API before ingestion — the file bytes are hosted server-side and referenced by URI, bypassing the model’s inline token limit.