[providers]
Model providers: name, address, key source, routing role, limits and declared models.
| Key | Type | Default | Description |
|---|---|---|---|
providers[].context_length |
integer | context_length is the provider-wide context window, in tokens, for models whose metadata omits it (0 = unspecified). Values the provider or the catalog report, and per-model declarations, win. |
|
providers[].max_output_tokens |
integer | max_output_tokens is the provider-wide output limit for models whose metadata omits it (0 = unspecified). Provider and catalog values win. |
|
providers[].stream_open_keepalive_ms |
integer | stream_open_keepalive_ms overrides [server] stream_open_keepalive_ms for this provider. Unset uses the [server] value; 0 sends no keepalives. |
|
providers[].proxy_url |
string | proxy_url overrides the global egress proxy for this provider only. |
|
providers[].name |
string | name identifies the provider in model ids (provider::model), reports and logs. Known names (openai, anthropic, google, openrouter, groq, deepseek, together, fireworks, deepinfra, tokenbroker, meta, typesafe) bring a default base_url and key variable; any other name is a custom provider. |
|
providers[].api_key_env |
string | api_key_env names the environment variable that holds the provider’s API key. Empty uses the provider’s built-in variable (for example OPENAI_API_KEY); a local server needs none. The key itself never goes in this file. |
|
providers[].api_key_ref |
string | api_key_ref is a secret reference (op://vault/item/field) resolved by [secrets]. Mutually exclusive with api_key_env. |
|
providers[].base_url |
string | base_url is the provider’s API address. Optional for known providers. For OpenAI-compatible servers both the server root and the /v1 form work. |
|
providers[].self_hosted |
bool | Self-hosted server: longer stream-open and attempt timeouts. Inferred true for loopback, RFC 1918, 100.64.0.0/10 and .local hosts. | |
providers[].no_wallet |
bool | no_wallet declares that requests to this provider cost nothing, so Prism records them at zero cost. A local or loopback address alone is never treated as free. |
|
providers[].private_trusted |
bool | private_trusted makes a provider whose address is not on a private network (for example a tailnet address) count as private for private routing, and silences the load warning about a private-range address that is not marked as local. |
|
providers[].stream_protocol |
string | stream_protocol overrides the wire protocol, which Prism normally infers from the provider name: openai_compat, anthropic_messages, ollama_native, tei_buffered (a Text Embeddings Inference server, for embeddings and rerank) or typesafe_systemone. |
|
providers[].routing_role |
string | routing_role says what kind of provider this is: direct (the model’s own maker), aggregator (a service that resells other makers’ models) or local (a model server you run). Unset, Prism infers it from the provider name and base_url. |
|
providers[].cost_premium |
number | cost_premium is a price multiplier for an aggregator (for example 1.15 for 15% more than the catalog price); it is ignored for direct and local providers. |
|
[[providers[].bootstrap_models]] |
array of tables | bootstrap_models declare models for providers that publish no model list, and fill metadata that discovery omits. Discovery replaces them when it works; a declared model it still lists keeps the declared fields discovery did not report. |
|
providers[].bootstrap_models[].input_price_per_1m |
number | input_price_per_1m and output_price_per_1m are the declared prices in USD per million input and output tokens. |
|
providers[].bootstrap_models[].output_price_per_1m |
number | input_price_per_1m and output_price_per_1m are the declared prices in USD per million input and output tokens. |
|
providers[].bootstrap_models[].model_id |
string | model_id is the provider’s own id of the declared model. |
|
providers[].bootstrap_models[].task_types |
array of string | task_types lists what the model serves: chat, responses, embedding, rerank or systemone. A model enters an automatic pool only for its declared tasks. |
|
providers[].bootstrap_models[].supports_tools |
bool | supports_tools, supports_json, supports_streaming and supports_responses_api declare the model’s tool calls, JSON mode, streaming and Responses API support. true is an operator statement (source config), which the provider’s own model list and what Prism observes in traffic outrank; false or unset declares nothing, and the flag stays unknown until a stronger source states it. |
|
providers[].bootstrap_models[].supports_json |
bool | supports_tools, supports_json, supports_streaming and supports_responses_api declare the model’s tool calls, JSON mode, streaming and Responses API support. true is an operator statement (source config), which the provider’s own model list and what Prism observes in traffic outrank; false or unset declares nothing, and the flag stays unknown until a stronger source states it. |
|
providers[].bootstrap_models[].supports_streaming |
bool | supports_tools, supports_json, supports_streaming and supports_responses_api declare the model’s tool calls, JSON mode, streaming and Responses API support. true is an operator statement (source config), which the provider’s own model list and what Prism observes in traffic outrank; false or unset declares nothing, and the flag stays unknown until a stronger source states it. |
|
providers[].bootstrap_models[].supports_responses_api |
bool | supports_tools, supports_json, supports_streaming and supports_responses_api declare the model’s tool calls, JSON mode, streaming and Responses API support. true is an operator statement (source config), which the provider’s own model list and what Prism observes in traffic outrank; false or unset declares nothing, and the flag stays unknown until a stronger source states it. |
|
providers[].bootstrap_models[].context_window |
integer | context_window is the model’s context size in tokens. |
|
providers[].bootstrap_models[].max_output_tokens |
integer | max_output_tokens is the model’s output limit in tokens. |
|
providers[].bootstrap_models[].enforced_max_output_tokens |
integer | enforced_max_output_tokens is an output limit Prism applies to every request to this model; 0 applies none. |
|
providers[].bootstrap_models[].embedding_dimensions |
integer | embedding_dimensions is the vector size of an embedding model, published in the model catalogs. |
|
[[providers[].pricing]] |
array of tables | pricing is an operator-declared per-model rate table for sellers that do not publish prices on /v1/models. It does not seed catalog rows; use bootstrap_models when the model must exist before discovery. |
|
providers[].pricing[].model |
string | model is the provider’s model id the prices apply to. |
|
providers[].pricing[].input_price_per_1m |
number | input_price_per_1m and output_price_per_1m are the prices in USD per million input and output tokens. |
|
providers[].pricing[].output_price_per_1m |
number | input_price_per_1m and output_price_per_1m are the prices in USD per million input and output tokens. |