TogetherAI features and configuration options, please refer to the API reference.
Overview
Integration details
Setup
To access the legacyTogetherAI completions class, create a Together account, get an API key, and install the @langchain/together-ai integration package. For chat and instruct models, prefer ChatTogetherAI.
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 TogetherAI integration lives in the@langchain/together-ai package:
Instantiation
Instantiate the completions model:Invocation
API reference
For detailed documentation of allTogetherAI features and configurations head to the API reference.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

