Indirect Image Understanding for Text Models and Gateway Adaptation
Text-only language models often appear to “see” screenshots because a gateway or agent layer transcribes images first. This article explains how to tell native multimodal input from adapter-based vision, how to encode model capabilities, three transcription paths, a practical pipeline, failure modes, security, and acceptance checks.
In coding assistants, office copilots, and multi-tool agents, users often drop a screenshot, error dialog, or architecture diagram into the chat and get an explanation. That experience is easy to misread as “the language model itself can see images.” A safer engineering view is to separate native multimodal input from an “eye” temporarily attached at the gateway or agent layer. Native multimodal models encode the image into the same model. Indirect vision first turns the image into text and structured fields via OCR, captioning, or a vision agent, then a text-only model reasons over that. Both can look like “image understanding” to the user, but they differ in API contract, latency, cost, and failure modes.
Follow the call chain, not the UI copy
To assign capability, inspect the cleanest path: does the client send image bytes or a URL to the model service, does that service declare image input, and is the inference API text or chat completion only? If docs and platform config say images are unsupported and load/inference follow a language-model path, do not treat marketing “vision” language as native capability.
A common real architecture is layered:
- The UI accepts an image and shows a thumbnail, so users assume the model “saw” it.
- The gateway or agent runtime inspects the model profile: image input allowed, tool calling allowed, context length, text-only requirement.
- If the model rejects images, the runtime sends the picture to a separate vision component and gets a transcription.
- The text model sees only the transcribed prompt: UI elements, error text, table cells, uncertainties.
- The answer is wrapped back into the session, and product copy may say “reasoning + vision.”
A UI that “understands images” only proves the product pipeline handles pictures, not that the selected language model has an image encoder.
Configuration is closer to the contract than the marketing page
Mature model onboarding uses a machine-readable profile, not only a landing page. For images, the key fields are usually booleans: image input and tool calling. Do not mix them. Tool calling means the model can issue function requests; it does not mean it can consume pixels.
A generic profile might look like this (field names are illustrative, not vendor-specific):
{"vendor": "text-llm","endpointType": "chat-completions","supportsToolCall": true,"supportsImages": false,"maxContextTokens": 128000}
When supportsImages is false, the gateway must not splice image content blocks into that model request. Correct behavior is to branch: tell the user the model is text-only, or transcribe first and mark the vision source in traces. If the flag is false but binaries are still stuffed into the request, the server may drop them or error, or the gateway may silently rewrite the payload, producing “sometimes it sees, sometimes it does not.”
When marketing conflicts with config, trust the actual request body. Run three checks with the same model ID and gateway policy:
- Text only: inference should work.
- Attach an image with no preprocessing: expect a clear “images not supported” or parameter error.
- Replace the image with a text description on the client, then send: answers should recover.
If only the third path is stable, the product is using indirect vision, not native vision.
Three ways to give a text model eyes
Gateways typically combine three paths, with separate responsibilities.
OCR. Best for error screenshots, logs, config photos, receipts, and tables. Output should keep reading order, suspected typos, and low-confidence marks—not a loose paraphrase. Downstream reasoning is bounded by missed lines and mixed columns.
Generic visual description. Best for layouts, mockups, and simple diagrams. Structure the caption: regions, control types, visible text, color only when it is semantic. Avoid empty adjectives so the text model does not invent details.
Dedicated vision agent. A model or detector that actually accepts images answers bounded questions such as “what is the button label” or “what is the top-of-stack exception type.” The text model consumes only structured results. That still is not the text model looking at pixels.
Whatever the path, the prompt handed to the text model should include four parts: task goal, transcribed body, confidence and missing items, and a no-hallucination constraint. For example, if a field never appears in the transcription, the model should say “not visible in the screenshot” instead of filling it from common sense.
A practical processing flow
User uploads image-> Validate type, size, count, and redaction policy-> Load target model profile-> supportsImages == true: assemble image content blocks per that API-> supportsImages == false:Vision component emits JSON (text, layout, uncertainties)Inject JSON into the text promptRecord vision_adapter = external-> Text model generates the answer-> Show the user it is based on image transcription; do not imply native vision
Keep the transcription JSON small and strict, for example:
{"source": "screenshot","ocrText": "Connection timed out, please check the network","regions": [{"type": "dialog", "text": "Connection timed out, please check the network"}],"uncertainties": ["Small text in the lower-right corner is blurry and unread"]}
The text model receives this JSON, not pixels. Logs should split vision latency, transcription length, and text inference latency so a vision timeout is not blamed on the language model.
Limits and common misreads
Indirect vision has hard limits. Tiny text, dense tables, occlusion, cross-image references, and tasks that need exact coordinates or pixel comparison lose information at transcription. The text model cannot “look again” unless the gateway lets it call the vision component with a question scoped to the original image. Without that tool, it can only reason over existing text; missing stays missing.
Another misread comes from model catalogs. Some cards mark image input; others leave it blank. Blank is not “hidden multimodal”; it means the integrator did not declare the capability. When release notes, marketing, and config disagree, test against config and live requests, and record in the changelog that vision comes from an adapter.
Security matters. Screenshots often contain accounts, internal URLs, secrets, and customer data. If vision and text models are separate services, both the image and the transcription leave the original process. Before launch, define which images may leave the trust boundary, whether transcriptions are logged, retention, and masking of secret-like patterns. Mask before any model sees the data, not after the answer is generated.
Suggested acceptance checks
- The image flag in the model profile matches real request behavior; marketing must not redefine that flag.
- For models that do not support images, the gateway does not forward image content blocks by default.
- With an adapter, user-visible answers or debug info distinguish native vision from transcription-then-reason.
- Transcriptions keep uncertainty; eval sets cover blur, skew, multi-column, tables, and blank images.
- On failure, degrade to “please paste text” instead of silently pretending the image was read.
- Meter latency and cost for vision and text separately so adapter cost is not attributed to the model itself.
With these checks on the onboarding list, teams can answer a more useful question: for this “image understanding” turn, did the model input layer see the image, or did the platform look at it first? For model choice, debugging, cost, and external claims, that distinction matters more than any slogan that says the product “supports vision.”
