# Model provider

> Whatever serves a model for inference. Usually remote (Anthropic, OpenAI, Google), but can also be local (Ollama, llama.cpp).

Whatever serves a [model](https://ai9k.vercel.app/en/model) for [inference](https://ai9k.vercel.app/en/inference). Usually a remote service (Anthropic, OpenAI, Google), but can also be local — Ollama, LM Studio, llama.cpp running on your own machine. The [harness](https://ai9k.vercel.app/en/harness) doesn't run the model itself; it asks a provider to.

The provider owns the machinery: the [parameters](https://ai9k.vercel.app/en/parameters) live on its hardware, and every [model provider request](https://ai9k.vercel.app/en/model-provider-request) is the harness sending [tokens](https://ai9k.vercel.app/en/token) over the network and getting predictions back. That makes the provider the source of a whole category of problems that get misattributed to the model or the harness — rate limits, degraded capacity, and outages all live here. When the [agent](https://ai9k.vercel.app/en/agent) stalls mid-[session](https://ai9k.vercel.app/en/session) or errors on every [turn](https://ai9k.vercel.app/en/turn), the provider's status page is worth checking before anything else.

The provider also sets the commercial terms: per-token pricing for [input](https://ai9k.vercel.app/en/input-tokens) and [output tokens](https://ai9k.vercel.app/en/output-tokens), [prefix cache](https://ai9k.vercel.app/en/prefix-cache) discounts, and which models are available at all. Note that the provider and the model's maker can be different companies — Bedrock, Vertex, and OpenRouter serve other people's models.

Local providers trade capability for control: the models that fit on your own hardware are far smaller than the frontier ones, but nothing leaves the machine and there's no bill per token.

**Usage**

"Can we run this offline for the air-gapped client?"

"Swap the model provider to a local one — Ollama or llama.cpp on their box. The harness doesn't care, it just hits a different endpoint."

---

- Section 1 — The Model · Term 10 of 72
- Page: https://ai9k.vercel.app/en/model-provider
- Learn step by step: https://ai9k.vercel.app/en/learn#/model-provider
- On the map: https://ai9k.vercel.app/en?term=model-provider
- JSON: https://ai9k.vercel.app/data/terms/model-provider.json
- Mentioned in: [Model](https://ai9k.vercel.app/en/model.md), [Training](https://ai9k.vercel.app/en/training.md), [Non-determinism](https://ai9k.vercel.app/en/non-determinism.md), [Model provider request](https://ai9k.vercel.app/en/model-provider-request.md), [Prefix cache](https://ai9k.vercel.app/en/prefix-cache.md), [Cache tokens](https://ai9k.vercel.app/en/cache-tokens.md)
- Previous: [Non-determinism](https://ai9k.vercel.app/en/non-determinism.md)
- Next: [Harness](https://ai9k.vercel.app/en/harness.md)

Every term page has a markdown copy: add .md to its address.
