Prerequisites
- Make sure your local machine has Python installed.
- If you haven’t already, register for a Together account to get an API key.
Install the library
Launch your terminal and install or update the Together CLI with the following command:Authenticate your shell
The CLI relies on theTOGETHER_API_KEY environment variable being set to your account’s API token to authenticate requests. You can find your API token in your account settings.
To create an environment variable in the current shell, run:
Shell
Usage
Shell
Options
| Name | Option | Description |
|---|---|---|
--api-key | string | Together API Key. Defaults to environment variable TOGETHER_API_KEY |
--timeout | number | Request timeout, defaults to 5 seconds. |
--max-retries | number | Maximum number of HTTP retries. |
--version | Print version | |
--debug | Debug mode |