Unify AI supports the OpenAI client, allowing you to use the openai-generic provider with an overridden base_url.

See https://docs.unify.ai/universal_api/making_queries#openai-python-package for more information.

BAML
1client<llm> UnifyClient {
2 provider "openai-generic"
3 options {
4 base_url "https://api.unify.ai/v0"
5 api_key env.MY_UNIFY_API_KEY
6 model "llama-3.1-405b-chat@together-ai"
7 }
8}