Overview
Integration details
| Class | Package | Local | Serializable | JS support | Downloads | Version | 
|---|---|---|---|---|---|---|
| ChatTogether | langchain-together | ❌ | beta | ✅ | 
Model features
| Tool calling | Structured output | JSON mode | 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 programmatically to Claude, VSCode, and more via MCP for    real-time answers.