Together AI offers an API to query 50+ leading open-source models in a couple lines of code. 本指南将帮助你开始使用Documentation Index
Fetch the complete documentation index at: https://nvd-54.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
ChatTogetherAI chat models。有关所有 ChatTogetherAI 功能和配置的详细文档,请前往 API 参考。
概述
集成详情
| Class | Package | Serializable | PY support | Downloads | Version |
|---|---|---|---|---|---|
ChatTogetherAI | @langchain/community | ✅ | ✅ |
模型功能
请参阅下表标题中的链接,了解如何使用特定功能。| Tool calling | Structured output | Image input | Audio input | Video input | Token-level streaming | Token usage | Logprobs |
|---|---|---|---|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
设置
要访问ChatTogetherAI models,你需要create a Together account, get an API key, and install the @langchain/community integration package.
凭证
前往 api.together.ai 注册 TogetherAI 并生成 API 密钥。完成后设置TOGETHER_AI_API_KEY 环境变量:
安装
LangChain 的 ChatTogetherAI 集成位于@langchain/community 包中:
实例化
现在我们可以实例化模型对象并生成聊天补全:调用
API 参考
有关所有ChatTogetherAI 功能和配置的详细文档,请前往 API 参考。
将这些文档连接到 Claude、VSCode 等工具,通过 MCP 获取实时答案。

