How Multimodal Vision Is Bolted On: Visual Proxies Behind LLM Gateways

    Pure-text chat models often appear to “see” screenshots and diagrams even when their APIs reject image inputs. This article explains native multimodal models versus bolted-on vision, how a model gateway hides the proxy, how to infer the design from capability flags, and a small pattern for building the same pipeline.

    Many developers notice a contradiction in coding assistants: the underlying chat model is text-only, and the vendor API does not accept images, yet dropping in an architecture diagram, error screenshot, or UI mock still yields a plausible answer. The model did not quietly become multimodal. The usual pattern is a visual proxy in front of a model gateway.

    Two ways a product “sees” images

    Native multimodal. The model includes an image encoder (for example a vision transformer that patches the image, encodes it, and concatenates those tokens with text). The client sends image blocks (base64 or URLs). The API documents image content types and lists vision as a first-class capability.

    Bolted-on vision. The LLM has no image encoder. A preprocess layer—vision model, OCR, or a captioning agent—turns the picture into text or structured data. That surrogate is what the text model actually reasons over. Users feel that the assistant “read” the image; image understanding happened entirely in the sidecar.

    Native models typically keep finer visual detail (dense charts, UI reconstruction, fine-grained layout). The proxy path wins on flexibility: vision can be upgraded or swapped without changing the reasoner.

    The gateway: making the combo feel native

    A model gateway sits between client and backends. Typical jobs: protocol normalization across vendors, capability lookup and routing, request preprocess and response postprocess.

    When a message includes images:

    1. Capability probe. Look up whether the target model declares image input and whether a custom model has an “allow images” flag.
    2. Vision preprocess. If the model cannot take images but a visual-proxy switch is on, strip images and send them to a vision model and/or OCR. OCR extracts text; a captioner describes layout, color, and element relationships. Output is a structured description (for example: top nav with five buttons; middle pane shows this code; error text is …).
    3. Reassemble. Insert that description as text, usually with an explicit marker such as “parsed result of the user-uploaded image,” replacing or appending to the original message so the payload is text-only.
    4. Forward. The text model infers as usual; the gateway returns the response unchanged.

    The client only exposes an upload control. How images are digested stays opaque—so a config row can say “no images” while the product still “sees.”

    Reading capability declarations

    Check whether claims are consistent across layers.

    Official API. If image message blocks are unsupported, or metadata such as supportsImages is false, native multimodality is unlikely. Those fields are machine-readable contracts.

    Client config. If other models show a “supports images” check and a text-only model does not, the tool is using the default path. If a lighter product still markets “reasoning + vision” for that same model, a proxy layer is the straightforward explanation.

    Custom-model docs. Tools that let you plug in your own models often show JSON with supportsImages: false for text-only examples. That shows the vendor knows the base model’s limits and that “seeing” is a product-layer feature.

    Layered checks beat marketing copy when you evaluate any AI tool’s vision.

    A minimal visual-proxy gateway

    Three pieces: a vision service, a description builder, and message rewrite.

    Prefer mixed structured fields plus free text:

    1. def parse_image(image_bytes: bytes) -> str:
    2. ocr_text = ocr_engine.recognize(image_bytes) # extract text
    3. layout = vision_model.describe(image_bytes) # layout and semantics
    4. return f"The user uploaded an image. Text in image: {ocr_text}\nVisual description: {layout}"
    5. def build_request(user_message, images):
    6. blocks = []
    7. for img in images:
    8. blocks.append({"type": "text", "text": parse_image(img)})
    9. blocks.append({"type": "text", "text": user_message})
    10. return blocks # all text blocks for a text-only model

    Practical notes: keep descriptions dense enough but not token-heavy (code screenshots: keep text; UI shots: keep layout). State clearly that the text is a transcribe of an image, so the model does not treat it as the user’s own claims. Run OCR and captioning in parallel with timeouts; on failure tell the user instead of dropping the image. Metric vision success rate and latency separately—it is usually the weakest hop.

    Composition as the product boundary

    Why do text-only models ship with “vision”? Application capability is increasingly defined by the system, not a single model. The same idea covers tool calling, RAG, and code sandboxes: the model lacks it; the product has it.

    Two takeaways: when judging a tool, separate model limits from system limits so you can guess where quality ceilings sit; when building, you need not wait for native vision—a gateway and proxy can reach the product goal sooner. That is why cloud platforms, including Baidu AI Cloud, expose unified model access and capability orchestration: they park composition complexity in the platform so developers stay on the business problem.