Skip to main content
This page will help you get started with Together AI chat models. For detailed documentation of all ChatTogether features and configurations, head to the API reference. Together AI offers an API to query 50+ leading open-source models

Overview

Integration details

Model features

Setup

To access Together models you’ll need to create a/an Together account, get an API key, and install the langchain-together integration package.

Credentials

Head to this page to sign up to Together and generate an API key. Once you’ve done this, set the TOGETHER_API_KEY environment variable:
To enable automated tracing of your model calls, set your LangSmith API key:

Installation

The LangChain Together integration is included in the langchain-together package:

Instantiation

Now we can instantiate our model object and generate chat completions:

Invocation


API reference

For detailed documentation of all ChatTogether features and configurations, head to the API reference