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

# Models

> Call language, embedding and rerank models as tasks to provider packs you place in your app.

A model call is a task. Your mutation submits it to a provider pack's
operation, atomically with its writes; the continuation named by `then`
receives its `Result`. Nothing else keeps state: the task's `once` makes a
call happen once, an `Unknown` result is never resent, and `sys.tasks` is
the history.

Three packages do the work:

* **Provider packs** (`@bijectionhq/pack-providers`) answer one receiver
  per provider: OpenAI, Anthropic, Azure OpenAI, Bedrock, Vertex AI,
  Cohere, Voyage and any OpenAI-compatible server. Each pack is a
  [slot](https://docs.bijection.com/operate/placement.md) and declares what it may receive. Unbound,
  Bijection serves the Anthropic, Cohere and Bedrock packs on its Amazon
  Bedrock account in your installation's region; bind any pack to your own
  account. See [Provider packs](https://docs.bijection.com/models/gateway.md).
* **The models library** (`@bijectionhq/library-models`) binds a catalog of
  reviewed model entries to the packs, shapes one provider-neutral request
  for each provider and decodes each answer into one shape per kind.
* **Libraries over models:** [typed tasks](https://docs.bijection.com/models/tasks.md),
  [extraction](https://docs.bijection.com/models/extraction.md), [evaluation](https://docs.bijection.com/models/evaluation.md) and
  the [model registry and serving](https://docs.bijection.com/models/review-and-serving.md).

```ts bijection/ai.ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
import { anthropicReceiver, openaiReceiver } from "@bijectionhq/pack-providers";
import { catalog, models, references } from "@bijectionhq/library-models";

export const anthropic = anthropicReceiver();
export const openai = openaiReceiver();

export const ai = models({
  anthropic,
  openai,
  catalog: catalog({
    triage: {
      kind: "language",
      model: "anthropic/claude-haiku-4-5-20251001",
      capabilities: ["text", "structured", "documents"],
      contextTokens: 200_000,
      maxOutputTokens: 8_192,
      price: { currency: "USD", inputPerMillionTokens: "1.00", outputPerMillionTokens: "5.00", asOf: "2026-11-19" },
    },
    embed: {
      ...references["openai/text-embedding-3-small"],
      price: { currency: "USD", inputPerMillionTokens: "0.02", asOf: "2026-11-19" },
    },
  }),
});

// app({ anthropic, openai, ... }): the packs' paths name their receivers.
```

`catalog` refuses a floating alias (`latest`, `default`), an undated or
malformed price, and a provider without a pack of the entry's kind. The
catalog names no endpoint or key: whose account serves each pack is
[placement](https://docs.bijection.com/models/gateway.md#whose-account-serves-a-pack).

| Kind | Providers | Declares |
| - | - | - |
| `language` | `anthropic`, `openai` | `capabilities`, `contextTokens`, `maxOutputTokens` |
| `embedding` | `openai`, `azure`, `bedrock`, `vertex`, `cohere`, `voyage`, `compatible` | `generation`, `dimensions`, `maxInputs`, `contextTokens` |
| `rerank` | `cohere`, `voyage`, `vertex`, `compatible` | `generation`, `maxDocuments`, `contextTokens` |

`references` holds reviewed descriptors of every embedding model and
reranker the packs serve, without prices: adopt one with the dated price
you reviewed.

| Guide | What it covers |
| - | - |
| [Generate text](https://docs.bijection.com/models/inputs-and-execution.md) | `ai.generate`, structured output and reading the answer |
| [Typed tasks](https://docs.bijection.com/models/tasks.md) | One bounded call with a checked input and output, and injection screening |
| [Embeddings and reranking](https://docs.bijection.com/models/embeddings.md) | Vectors for `.near`, the content-digest cache and bulk jobs |
| [Provider packs](https://docs.bijection.com/models/gateway.md) | Whose account serves a pack, egress by label, metering and models in your own boundary |


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