Skip to main content
The Together model provides access to Together’s language models.

Parameters

ParameterTypeDefaultDescription
idstr"meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo"The id of the Together model to use
namestr"Together"The name of the model
providerstr"Together"The provider of the model
api_keyOptional[str]NoneThe API key for Together (defaults to TOGETHER_API_KEY env var)
base_urlstr"https://api.together.xyz/v1"The base URL for the Together API
retriesint0Number of retries to attempt before raising a ModelProviderError
delay_between_retriesint1Delay between retries, in seconds
exponential_backoffboolFalseIf True, the delay between retries is doubled each time
Together extends the OpenAI-compatible interface and supports most parameters from OpenAI.