Documents
Send PDFs and documents to document-understanding models.
Gateway supports sending PDF documents to models with document input capability. Pass documents as base64-encoded data or a URL — Gateway handles the provider-specific format translation.
Send a document (base64)
Send a document (URL)
URL
Supported models
Document input is supported by models with "document" in their capabilities.input array. Check model capabilities via GET /v1/models.
Documents are estimated at ~1,500 tokens per page for compression calculations. A 10-page PDF counts as roughly 15,000 tokens toward the context window.