Together AI offers an API to query 50+ leading open-source models in a couple lines of code. This guide will help you getting started withDocumentation Index
Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-naomid-1779801766-572e290.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
ChatTogetherAI chat models. For detailed documentation of all ChatTogetherAI features and configurations head to the API reference.
Overview
Integration details
| Class | Package | Serializable | PY support | Downloads | Version |
|---|---|---|---|---|---|
ChatTogetherAI | @langchain/together-ai | ✅ | ✅ |
Model features
See the links in the table headers below for guides on how to use specific features.| Tool calling | Structured output | Image input | Audio input | Video input | Token-level streaming | Token usage | Logprobs |
|---|---|---|---|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Setup
To accessChatTogetherAI models, create a Together account, get an API key, and install the @langchain/together-ai integration package.
Credentials
Head to api.together.ai to sign up to Together AI and generate an API key. Set theTOGETHER_AI_API_KEY environment variable:
Installation
The LangChain ChatTogetherAI integration lives in the@langchain/together-ai package:
Instantiation
Now we can instantiate our model object and generate chat completions:Invocation
API reference
For detailed documentation of allChatTogetherAI features and configurations head to the API reference.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

