> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blobhub.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Vendors and Gateways

> The vendor registry: the vendors and gateways a model provider can call, the protocol each speaks, and a flow's own endpoint.

A model id is `<vendor>/<model>`, split at the first `/`: `openrouter/anthropic/<model>`,
`databricks/system.ai.<model>`. The first part names an entry of the **vendor registry**, which says how to reach that
vendor or gateway and which protocol it speaks. The registry is platform configuration, released with the platform as
the model catalog is: a flow names an entry in a `vendors` entry of its
[`genai.model.language`](https://docs.blobhub.io/blob-types/workflow/workflows/component-genai-model-language#vendors-and-credentials) and
cannot add one.

## The registry

One entry per vendor or gateway. An entry holds:

| Field | What it says |
| :- | :- |
| `label` | The name the editor shows. |
| `kind` | `vendor` for a model maker's own API, `gateway` for a service that serves many makers' models, `endpoint` for a server of your own. |
| `base_url` | The endpoint. An entry with `base_url_required: true` and no `base_url` makes each `vendors` entry give its own. A native vendor has neither: its client knows the endpoint. |
| `auth` | Where the `api_key` goes: `bearer` puts it in `Authorization: Bearer`, and `{"header": <name>}` in a named header. Every entry takes one `api_key` credential. |
| `serves` | Per family (here `language`): the `dialect`, its `options`, and `request_defaults`. |

A dialect's `options` tune it without code. `openai_chat` reads four: `cache` (`top_level`, `parts` or `none`: where
the cache mark goes, if anywhere), `explicit_cache_off` (a boolean), `media_parts` (the request part audio and video
go in: `input_audio`, `audio_url`, `video_url` or `file`) and `reasoning` (`object`: the entry takes reasoning in its
`reasoning` object). The other three dialects read none. `request_defaults` are
request fields sent on every call, beneath the provider's own `vendor_settings`.

OpenRouter's entry, as the registry file holds it:

```json theme={null}
{
  "openrouter": {
    "label": "OpenRouter",
    "kind": "gateway",
    "base_url": "https://openrouter.ai/api/v1",
    "auth": "bearer",
    "serves": {
      "language": {
        "dialect": "openai_chat",
        "options": {
          "cache": "top_level",
          "explicit_cache_off": true,
          "media_parts": {"audio": "input_audio", "video": "video_url"},
          "reasoning": "object"
        },
        "request_defaults": {"plugins": [{"id": "file-parser", "pdf": {"engine": "native"}}]}
      }
    }
  }
}
```

## The entries

| Entry | Label | Kind | Dialect | Endpoint |
| :- | :- | :- | :- | :- |
| `openai` | OpenAI | `vendor` | `openai_responses` | The vendor's own endpoint |
| `anthropic` | Anthropic | `vendor` | `anthropic_messages` | The vendor's own endpoint |
| `gemini` | Gemini | `vendor` | `gemini_generate` | The vendor's own endpoint |
| `openrouter` | OpenRouter | `gateway` | `openai_chat` | `https://openrouter.ai/api/v1` |
| `databricks` | Databricks | `gateway` | `openai_chat` | Given by each `vendors` entry |
| `openai_compatible` | OpenAI-compatible | `endpoint` | `openai_chat` | Given by each `vendors` entry |
| `vercel` | Vercel AI Gateway | `gateway` | `openai_chat` | `https://ai-gateway.vercel.sh/v1` |

* `openai`: stateless; see [OpenAI on the Responses API](#openai-on-the-responses-api).
* `openrouter`: PDFs are read by the model itself, never by OpenRouter's paid OCR. Reasoning goes in the request's
  `reasoning` object.
* `databricks`: the endpoint each `vendors` entry gives is the workspace's `https://<workspace>/ai-gateway/mlflow/v1`.
  It authenticates with a personal access token, as the `api_key`. Cache marks go on message parts.
* `openai_compatible`: any server speaking Chat Completions; no cache marks.
* `vercel`: no cache marks. Reasoning goes in the request's `reasoning` object.

A vendor that serves no language model cannot be named in a `vendors` entry of a language model provider, and an entry
that gives no endpoint where its registry entry has none is refused; both messages are on the
[language model page](https://docs.blobhub.io/blob-types/workflow/workflows/component-genai-model-language.md#checks).

## Dialects

A **dialect** is the protocol an entry speaks: the code that turns BlobHub's messages, files, tools and settings into a
request, and the vendor's answer back into a message. There are four, all for language models:

| Dialect | Calls | Used by |
| :- | :- | :- |
| `openai_responses` | OpenAI's Responses API, stateless | `openai` |
| `openai_chat` | Chat Completions | Every gateway, and `openai_compatible` |
| `anthropic_messages` | Anthropic's Messages API | `anthropic` |
| `gemini_generate` | Gemini's `generate_content` | `gemini` |

A dialect is code; an entry is configuration. A gateway whose differences the registry's options cover is one more
entry, with no new code.

## Gateways speak Chat Completions

Chat Completions is the API every gateway serves most completely, so `openai_chat` serves them all. It reads, without
configuration, the variants gateways return: reasoning as `reasoning_details` (OpenRouter, Vercel) or as parts inside
`content` (Databricks), and cached tokens as `prompt_tokens_details.cached_tokens` or as Anthropic-style top-level
fields. Reasoning a gateway returns is kept and sent back only to the same entry.

One limit carries over from OpenAI's API: OpenAI's own models refuse tool calls together with reasoning on Chat
Completions, through a gateway as much as directly.

## OpenAI on the Responses API

The `openai` entry speaks the Responses API, used statelessly: the request always carries `store: false`, and BlobHub
keeps the conversation. Reasoning crosses turns and tool calls through the encrypted reasoning items the API returns,
which the request asks for on every call. What a turn answered with is kept, item by item, in the `vendor_data` of its
blocks, and an `assistant` turn of OpenAI's own sends those items back verbatim, in order.

* A system message goes in `instructions`; its files go at the head of the first `user` turn.
* `seed`, `stop_sequences`, `frequency_penalty`, `presence_penalty` and `top_k` are left out; the `Settings left out:`
  warning gives `openai has no such setting` as the reason for each.
* `json` and `json_schema` are sent as the request's `text.format`.
* Audio and video are not carried; images and PDFs are.

Gemini stays on `generate_content`.

## A flow's own endpoint

A `vendors` entry's `base_url` replaces the registry's for that provider, for a server speaking the same dialect.
`openai_compatible` is the entry for any OpenAI-compatible server that has no entry of its own, such as a company proxy
or a model server of your own: it needs a `base_url` on every `vendors` entry that names it. Databricks is the same
case for a workspace: each `vendors` entry gives its own workspace URL. A server of your own that speaks Chat
Completions goes under `openai_compatible`, never under `openai`, which speaks the Responses API.

## Gateway models and the catalog

A gateway serves hundreds of models under its own ids. The
[catalog](https://docs.blobhub.io/blob-types/workflow/workflows/component-genai-model-language.md#the-catalog)
lists the gateway ids the platform tests; any other id is an unknown model: accepted, every setting its dialect has a
field for sent, capabilities unchecked with a warning, and the gateway deciding at the call. Databricks ids stay
unknown, since a workspace's models are its own.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.