LLMs
Multimodal inputs
Images, PDFs and audio as model input — and what they cost in tokens.
What it is and why it exists
Vision-language models accept images (and rendered PDF pages) alongside text; audio models accept speech. Images are converted to patches billed as tokens, so a page image can cost hundreds to thousands of tokens.
Quick prototype
Send the screenshot or PDF page and ask the question.
In production, at scale
Decide per document type whether to extract text (cheap, exact) or send page images (layout, charts, handwriting), downscale images to what the task needs, and evaluate extraction accuracy per field.
Vendors and tools
| GPT, Claude and Gemini vision | Image and PDF input |
|---|---|
| Gemini | Long audio and video inputs |
| Open VLMs (Qwen-VL and others) | Self-hostable vision models |
On AWS: Bedrock multimodal models; Amazon Textract for OCR and forms; Bedrock Data Automation for documents, images, audio and video.
How it fails
- Sending 4K screenshots where 1K would do
- Trusting OCR’d numbers in tables without validation
What the interviewer asks next
OCR + LLM or a vision model on the page?
OCR when text is clean and you need exact strings cheaply; a vision model when layout, tables, stamps or handwriting carry meaning. Many pipelines do both and cross-check.