# Models

The OpenAPI 3.1 document is the full description, including schemas:

https://router.inference.ai.exchange/v1/openapi.json

## `GET /v1/anthropic/models`

List the models in the Anthropic shape.

The catalogue is the same as on `GET /v1/models`. Only the envelope differs.
Claude Code gets its own view.

## `GET /v1/models`

List the models that a request can name.

The list comes from the live book. It holds the models that a connected
provider quotes now, and the router models. A buyer credential adds the
presets of its workspace (`match_type` is `preset`) and the symbols of
unlisted chat deployments. Without a credential, or with one that does not
resolve, the list has no presets.

The response has the Anthropic shape when the request has an
`anthropic-version` header, and the OpenAI shape when it does not. The
credential cannot select the shape, because a client can send it as `x-api-key`
or as a bearer token on either dialect. Claude Code also sends a `claude-code/`
user-agent token. It gets compatibility ids and a live-book description,
without exact Anthropic models.

The query filters narrow the list to models. A router model or a preset cannot
keep a filter. The order is the order of a model picker: `liquid.auto`, the
other router models, the presets of the caller, the models that support tools,
then the other models. In each group, the name that more independent providers
quote comes first.
