﻿# Read input and output modalities in the OpenRouter model schema

Read OpenRouter input and output modalities separately; the default text-model catalog can omit other output classes, and capability discovery still needs request validation.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/learn-openrouter-modality-fields/
Language: en

A model accepting images does not necessarily generate images, and a model generating vectors may be absent from a text-focused catalog query. OpenRouter’s modality fields distinguish what a model receives from what it produces. Reading them separately helps a client discover the right kind of model and construct an appropriate interface.

## Input and output describe different capabilities

Imagine a document assistant that receives a page image and produces a text explanation. Its input needs image support, while the output requirement is text. An image generator has a different output contract even if its input also includes text. The Models schema exposes architecture.input_modalities and architecture.output_modalities for this distinction. The fields describe capabilities in each direction, rather than a single label that makes every possible combination of text, images and other content interchangeable.

## Catalog filtering can hide an entire output class

The current Models guide says the default list returns text-output models. An application looking for embeddings, image generation or another output class needs the relevant output_modalities filter or an all-modality listing. Absence from a default response is therefore not sufficient evidence that the platform has no such model. This is a discovery issue before it is a quality comparison. Record the query used when describing a catalog result, so a later reader can understand which class was actually requested.

## Capability metadata does not replace request encoding

Finding an image-input model is the first compatibility step. The selected endpoint still has a request schema, and the application must encode its image and text in the supported format. Similarly, the renderer needs to understand whether the output is prose, an image artifact or a numeric vector. The API overview provides the related interface distinction. A model name alone cannot make a text-only client interpret every response correctly, even when catalog discovery selected the intended capability.

## Verify a representative direction end to end

For the document assistant, use a small page with an identifiable fact and check that the returned text refers to the actual image evidence. This is an engineering fixture for the intended input/output direction. It does not establish quality on every document or every language. Provider-selection constraints remain another layer when a particular route matters. Keeping discovery, encoding, route support and application acceptance separate gives a useful explanation of where a multimodal integration succeeded and where more qualification is still required.

## Primary sources

- [OpenRouter model schema](https://openrouter.ai/docs/guides/overview/models).

- [OpenRouter API reference](https://openrouter.ai/docs/api-reference/overview).

- [OpenRouter provider selection](https://openrouter.ai/docs/guides/routing/provider-selection).

Related context: [Provider routing](/journal/openrouter-provider-routing/); [Tool-calling integration](/journal/openrouter-tool-calling/).
