Unify AI
Unify AI provides a unified API for multiple LLM providers with intelligent routing.
Basic Example
client<llm> UnifyClient {
provider "openai-generic"
options {
base_url "https://api.unify.ai/v0"
api_key env.MY_UNIFY_API_KEY
model "llama-3.1-405b-chat@together-ai"
}
}
BAML-Specific Options
| Option | Type | Default | Description |
|---|---|---|---|
base_url | string | - | https://api.unify.ai/v0 |
api_key | string | env.MY_UNIFY_API_KEY | API key |
model | string | - | Model with provider suffix |
Model Format
Unify uses a model@provider format:
llama-3.1-405b-chat@together-aigpt-4o@openaiclaude-3-sonnet@anthropic
See Unify AI documentation for more information.