LLM Configuration
Configure AI providers for workflows
Configure an LLM provider to enable AI features in workflows, agents, and chat.
Supported providers
Section titled “Supported providers”Pick OpenAI or Anthropic as the provider type. Available models are fetched live from the provider after you save the API key — Bifrost does not ship a hard-coded model list, so you always see what your account actually has access to.
The provider type controls which SDK Bifrost uses to talk to the endpoint. Any service that speaks the OpenAI or Anthropic wire format works under the matching provider type, even if it isn’t OpenAI or Anthropic itself — see OpenAI-compatible endpoints below.
Configure an LLM provider
Section titled “Configure an LLM provider”-
Navigate to Settings > AI Configuration.
-
Select OpenAI or Anthropic.
-
Leave API Endpoint at its default for the official provider, or set a custom URL for a compatible endpoint.
-
Paste your API key.
-
Click Test Connection. Bifrost lists the models your key can access and caches them.
-
Pick a default model and save.
OpenAI-compatible endpoints
Section titled “OpenAI-compatible endpoints”The API Endpoint field overrides the base URL passed to the provider SDK. Anything that implements the OpenAI or Anthropic API surface will work — OpenRouter, Azure OpenAI, Together, Groq, Ollama, vLLM, LM Studio, etc.
Example: OpenRouter
Section titled “Example: OpenRouter”OpenRouter exposes an OpenAI-compatible API and gives you a single key for hundreds of models across many providers.
-
Set Provider to OpenAI.
-
Set API Endpoint to
https://openrouter.ai/api/v1. -
Paste your OpenRouter key (
sk-or-...) into API Key. -
Click Test Connection. Bifrost calls OpenRouter’s
/modelsendpoint and populates the model dropdown with everything available to your key —anthropic/claude-...,openai/gpt-...,meta-llama/..., and so on. -
Pick a default model (the OpenRouter model ID, e.g.
anthropic/claude-sonnet-4-5) and save.
Other compatible endpoints
Section titled “Other compatible endpoints”| Service | Provider type | API Endpoint |
|---|---|---|
| Azure OpenAI | OpenAI | https://<resource>.openai.azure.com/openai/deployments/<deployment> |
| Ollama (local) | OpenAI | http://localhost:11434/v1 |
| LM Studio (local) | OpenAI | http://localhost:1234/v1 |
| Groq | OpenAI | https://api.groq.com/openai/v1 |
| Together | OpenAI | https://api.together.xyz/v1 |
The endpoint override also works under the Anthropic provider type for any service that implements Anthropic’s Messages API.
Embedding configuration
Section titled “Embedding configuration”For knowledge base / RAG features, configure embeddings:
-
In Settings > AI Configuration, scroll to Embeddings.
-
Choose to use the same provider as the LLM or configure separately.
-
For OpenAI, embeddings use
text-embedding-3-small(1536 dimensions).
Usage in workflows
Section titled “Usage in workflows”Once configured, use AI in your workflows:
from bifrost import ai
@workflowasync def summarize_ticket(description: str): response = await ai.complete(f"Summarize this ticket: {description}") return {"summary": response.content}Model overrides
Section titled “Model overrides”Override the default model per call. Use whatever model ID your configured provider exposes:
response = await ai.complete( "Complex analysis task", model="anthropic/claude-sonnet-4-5", # OpenRouter-style ID)Usage tracking
Section titled “Usage tracking”Bifrost tracks all AI usage:
- Input/output tokens per call
- Cost calculation based on configured pricing
- Aggregation by workflow, conversation, and organization
View usage reports in Settings > Usage Reports.
Pricing configuration
Section titled “Pricing configuration”Configure per-model pricing in Settings > AI Pricing:
| Field | Description |
|---|---|
| Provider | OpenAI or Anthropic |
| Model | Model ID as returned by the provider |
| Input Price | Cost per 1M input tokens |
| Output Price | Cost per 1M output tokens |
Next steps
Section titled “Next steps”- Using AI in Workflows — Completions and streaming
- Knowledge Bases — RAG with vector search