Skip to main content
A provider pack is a function that answers one receiver: a subtree of targets, one per provider operation. Place it in the app tree; its path names it. Each pack is a slot that speaks its vendor’s API, so the program says which vendor and model it calls, and the installation says whose account serves them.
Each operation is a target you could submit to directly, but the models library shapes the request for you. Every pack uses the task’s once as its idempotency contract.

Options

A slot pack takes one option, label: the receiving label, public by default. The result uses the join with the sender’s commit label. Code names no endpoint, key or meter. Each pack’s protocol declares its meters (input, output and cache tokens for language models), every provider of the slot reports usage in them, and a spend limit is a budget over those meters. The batch, staging and Vertex AI receivers (openaiBatchReceiver, azureOpenAIBatchReceiver, bedrockBatchReceiver, the staging receivers, vertexReceiver, vertexRankingReceiver) are not slots yet: they name their upstream in code and keep their own options.

Whose account serves a pack

An unbound pack is managed, where the installation’s host offers one for its vendor, and its usage appears on your Bijection bill. A Bijection hosting cell serves the Anthropic, Cohere and Bedrock packs itself, on Bijection’s Amazon Bedrock account in the cell’s region. It offers no managed OpenAI, Azure OpenAI, Voyage or OpenAI-compatible account, so an unbound pack of those is refused NotOffered at deploy: bind it to your own account or server. bijection placement offers lists what your host offers. A managed pack serves the models in Bijection’s managed model table that run in the cell’s region, by their vendor name (claude-sonnet-4-5 or claude-sonnet-4-5-20250929, embed-v4.0, rerank-v3.5). Each answer is priced at that table’s list price from the usage Bedrock reports. A managed Anthropic pack answers whole messages: a request with stream: true is refused. Each installation has a token rate on managed models; a request over it is answered 429 in the vendor’s error shape, as is a request while Bedrock is busy, so retry it later. To see what a pack’s account serves, ask the installation; it lists the models with the account the slot is placed on, so no vendor key reaches your machine:
models add writes a pinned, dated language entry into bijection/models.ts with the bounds and price the account reports. Its flags (--context-tokens, --max-output-tokens, --input-price, --output-price) supply only what the account does not report, and without --slot they are required. A managed Bedrock slot lists the cell’s offered models. A customer Bedrock account lists the region’s foundation models with the slot’s AWS credential, which needs bedrock:ListFoundationModels. AWS returns model IDs and names. Supply the bounds and prices when adding those models. For a private control-plane endpoint, set catalogUrl and include its host in the binding’s hosts. A network relay uses the slot’s relay target name with -models appended. For Voyage, add the model with the flags from the vendor’s published catalog. Bedrock discovery API · Voyage model catalog To use your own vendor account, bind the pack to it in the installation’s bindings file:
bindings.ts
Each vendor’s pack has its account constructor in @bijectionhq/pack-providers (openaiAccount, anthropicAccount, cohereAccount, …). A model pack’s protocol is its vendor’s own API, so endpoint (Bijection’s target wire) does not serve it. An OpenAI-compatible server or gateway speaks the OpenAI API itself: bind it with openaiAccount({ url, hosts?, credential }), which names that origin instead of OpenAI’s. Two packs can share one key by naming the same credential. Switching accounts changes no code and no model: the model ID stays in your catalog, and after the deploy new submits go to the new account while tasks already submitted finish on the old one.

Egress follows labels

Sending text to a model is egress. The host refuses a submit from a frame whose label the pack’s clearance does not admit. ai.cleared(key, label) asks the same question when your code chooses a model. A label can also require evidence for specific provider properties. The selected account alone supplies no evidence about who can access the data or where the model runs. Use label({ placement: ... }) for the properties your data needs. Requirements and offers To keep such text off every vendor, use:
  • openaiCompatibleReceiver bound to your own model server; or
  • a compute launcher running @bijectionhq/pack-compute/providers/models next to your model server, passed to models({ compatible }). Compute stays yours; see external compute.
Each embedding and rerank operation refuses a request above its provider’s documented batch bound before anything is sent.