Skip to main content
Multimodal inputs let you send more than plain text to a model. Routeway supports images, PDFs/documents, and audio through the same OpenAI-compatible endpoint — the model can read, describe, and reason over all of them in a single request.
Vision and multimodal support depends on the model, not just the endpoint. Models like gpt-4o, gpt-4o-mini, claude-opus-4-5, and gemini-2.5-pro support image and document inputs. Check the Models page for per-model capability details.

Images

Pass an image by URL or as a base64-encoded data URI inside a content array. The model can describe, analyze, compare, or extract information from images.

Base64 Images

For local files or private images that aren’t publicly accessible via URL, encode them as base64 and embed them directly.

Image Detail Level

Control how much detail the model uses when processing an image. Higher detail increases token usage and cost.

Multiple Images

Pass several images in the same message to compare, diff, or analyze them together.

PDFs and Documents

Send PDF files as base64-encoded data for the model to read and reason over. Useful for contract analysis, document Q&A, and data extraction.
PDF support depends on the model. gpt-4o and claude-opus-4-5 handle multi-page PDFs well. For very large documents, consider extracting the relevant pages first to reduce token cost.

Multi-turn Vision Conversations

Images persist in the conversation history just like text messages. The model can refer back to a previously sent image in later turns.

Supported Formats


Best Practices

Large images increase token usage significantly with little quality gain. Resize to 1024×1024 or smaller before encoding. The model doesn’t need 4K resolution to understand content.
When you only need a rough description or classification, use "detail": "low". It uses a fixed 85 tokens regardless of image size and returns much faster.
Tell the model exactly what to look for. Vague prompts like “describe this” produce generic results. “List every line item and its price from this receipt” produces structured, useful output.
Pair vision with a JSON schema to extract structured data from images. Ideal for receipts, invoices, forms, and screenshots.