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 modelsDocumentation Index
Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-srimpr-1771619406-31dcf4f.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Integration details
| Class | Package | Serializable | JS support | Downloads | Version |
|---|---|---|---|---|---|
| ChatTogether | langchain-together | beta | ✅ |
Model features
| Tool calling | Structured output | Image input | Audio input | Video input | Token-level streaming | Native async | Token usage | Logprobs |
|---|---|---|---|---|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ |
Setup
To access Together models you’ll need to create a/an Together account, get an API key, and install thelangchain-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:Installation
The LangChain Together integration is included in thelangchain-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: python.langchain.com/api_reference/together/chat_models/langchain_together.chat_models.ChatTogether.htmlConnect these docs to Claude, VSCode, and more via MCP for real-time answers.