Skip to main content
To use Together LLM models, you have to set the TOGETHER_API_KEY environment variable. You can obtain the Together API key from their Account settings page. In the TypeScript SDK, you can optionally set TOGETHER_API_BASE or pass baseURL in the config (defaults to https://api.together.ai/v1).

Usage

You can also configure the API base URL in the config:

Config

All available parameters for the together config are present in Master List of All Params in Config.